P2

P2Party – Encrypted WebRTC Room URLs

Hacker News

P2Party – Encrypted WebRTC Room URLs

Hi HN, I’ve been working for the past 10 months on p2party, a TypeScript/C/WASM library which you can find at https://github.com/p2party/p2party-js and demo at https://p2party.com , that lets you spin up an encrypted peer-to-peer mesh with nothing more than a shared URL. Why I built it: I wanted something between https://file.pizza and “ephemeral Signal chat”, but with my custom cryptographic idea (I know I know... WebRTC is already encrypted and it is easy to go wrong etc.). The project started as a toy for sharing large DAW files with my bandmates (and to flex some applied crypto skills), then grew into a general toolkit. It is also a nice side project to test LLMs as companion coders and to know where the world is at right now regarding this subject (personal opinion - super small and well-defined tasks ok). The cryptography: The messages, either strings or files, get split and included into isomorphic chunks of 64kb which are stored in IndexedDB until they are sent. Each chunk has some metadata like file hash, name, Merkle proof etc., the actual information and then padding left and right with noisy data. The real info starts at random positions on each chunk. The whole thing is then e2e encrypted with ChaChaPoly1305 with sender ephemeral keys and sent in random order. Inspiration: To an observer of the message traffic, every chunk is isomorphic and contains a lot of useless info and some real ones. But to analyze it they need to store all the junk. The inspiration came from a principle of counter-surveillance that I learned from the adblock tool https://adnauseam.io . Caveat: Before sending the message, all the chunks need to be created so that the Merkle proofs can be calculated and the browser can send the chunks in random ordering. The p2p: I could not find a good example online of how to create a WebRTC mesh network so I built a tool for myself. It works acceptably now so that's why I uploaded it here after 10 months of working on it (on and off) :D The WASM: I had experience with compiling C to WASM when I developed this project in the past https://github.com/deliberative/crypto and I wanted the same efficiency gains here. Status: It works, but it is not security-audited yet → don’t trust it with your deepest secrets. API is stable enough to embed in your own apps. Open-source under AGPL-3.0. Try it here: https://p2party.com (open in two browsers or devices). Code is here: https://github.com/p2party/p2party-js . I'd love your feedback on everything! Enjoy!

Share card

Actual performance

8points
1comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: created, started · Missing: supports, reddit linkedin, podcasting
86%86% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: apps, tasks, code · Missing: mac, agents, macos
68%68% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: ide, io · Missing: https docs, excited, just released
66%66% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
48%48% predicted probability of success on AppSumo, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: personal, apps, month · Missing: mobile apps, ios, entrepreneurs
35%35% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
11%11% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat, crypto · Missing: web3, cryptocurrency, make money
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Waybash
Waybash63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Crawling URLs for Targets from Wayback Implementation in Bas

Indie Hackers1$10,000/moanalytics
En
Encrypted Pastebin61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Encrypted Pastebin

Hacker News1
Picteto
Picteto29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Encrypted by default. Yours alone.

Product Hunt+2
Cr
Craftle – Furnish room under $2k61%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Craftle – Furnish room under $2k

Hacker News3
Th
The Gorilla in the Room:Exploring RedisTimeSeries Optimizations53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The Gorilla in the Room:Exploring RedisTimeSeries Optimizations

Hacker News1
Ro
Room Treatment49%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Room Treatment

Hacker News4
RoomAI
RoomAI17%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Your room desgin inspirations

Indie Hackers
Boardroom
Boardroom38%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

War Room for M&A Due Diligence

Product Hunt+8
1Secret
1Secret33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Share encrypted messages and documents via short-lived URLs

Indie Hackers1b2b
Se
Send browser-encrypted messages over self-destructing read-once URLs62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Send browser-encrypted messages over self-destructing read-once URLs

Hacker News9