I built an ephemeral P2P chat with WebRTC, without servers
zRinexD
15 points
12 comments
March 16, 2026
Related Discussions
Found 5 related stories in 722.5ms across 14,015 title embeddings via pgvector HNSW
- I built a browser-based P2P file transfer tool using WebRTC SamOkampo · 11 pts · July 19, 2026 · 65% similar
- P2P local file transfer based on WebRTC halb · 46 pts · July 15, 2026 · 62% similar
- SimpleX Chat Cider9986 · 23 pts · March 27, 2026 · 57% similar
- GTA 2 ported to JavaScript, with WebRTC P2P multiplayer possiblelion · 14 pts · July 04, 2026 · 54% similar
- Show HN: Pion/handoff – Move WebRTC out of browser and into Go Sean-Der · 93 pts · April 07, 2026 · 54% similar
Discussion Highlights (8 comments)
zRinexD
I wanted to be able to talk to anyone in the world without relying on any company's servers. No censorship, no rules, no limits except the ones I set in my own room. So I built this. No signup, no registration. Just create a room with a password, share the code, and anyone can join directly. Everything is peer-to-peer, ephemeral, and disappears when you close the tab. Would love to hear what you think. Code is open source. Link: https://ephemchat.vercel.app/ Source code: https://github.com/zzrinexd/EphemChat
atmanactive
This is great, thanks! Would you accept a Github pull request to translate it to English and several other languages?
michaelsbradley
What about use of TURN, entirely avoided?
elwebmaster
You should mention that it uses PeerJS. That's not without servers. PeerJS runs their own signaling server which you are relying on to connect your peers.
indigodaddy
- does the room vanish after the last user exits? Seems like it? - can the room code be tacked on to the url/slug?
nikisweeting
THis is not without servers, you still use a signaling server for TURN. If you want true serverless you need a side channel to copy the offer/response, e.g. tell the user's to copy paste them as base64 thorugh whatsapp manually or something ( https://github.com/pirate/webrtcchat ).
iamnothere
Matrix was once working on something similar, I wonder what the latest status is. In general, things like this are a great way around current pushes for age verification and mandatory surveillance. Give your friends a link to this, or even a web archive via USB stick, and chat directly without intermediaries. No need to run a server. (Others pointed out you still need a TURN server. True but hopefully there’s a P2P solution for this.)
villgax
Lol do your DD properly before posting