Most chat apps start with an account and keep your history forever. I wanted the opposite: open a link, type a code, talk, leave — and everything is gone. So I built AnonChat.
Try it: https://anonchatbd.pages.dev
Source (MIT): https://github.com/asmitsr/anonchat
How it works
- Join with a code. Pick any display name and an 8-character code (capital letters & numbers, e.g.
K7M2-9XQ4). Everyone who enters the same code lands in the same room — max 10 people. A different code is a completely separate room. - Keys come from the code. Your browser derives keys with PBKDF2 (100k iterations) + HKDF, with separate keys for chat and call signaling. Every message, file chunk and signal is AES-256-GCM encrypted before it leaves your device.
- The server stores nothing. Each room is one Cloudflare Durable Object (SQLite-backed, WebSocket Hibernation). It only relays encrypted blobs between the people currently in the room. When the last socket closes, the room is wiped.
- Leave = gone. Leaving burns your keys and messages, and everyone else's screen removes your messages too. Re-entering the same code later starts a brand-new, empty room.
Calls
Audio/video calls are peer-to-peer WebRTC (DTLS-SRTP encrypted, even when relayed through TURN):
- Adaptive quality up to 4K60, scaled down automatically to your network and device
- 128 kbps Opus voice, H.264 preferred, echo/noise control
- Group mesh calls with a video grid, screen sharing, camera flip
- Voice messages (record → encrypted chunks → playable bubble)
- Encrypted file transfer up to 10 MB in 32 KB chunks
Problems that bit me
- ICE candidates arriving before "Accept" were being dropped, so calls connected with black video. Fix: always queue candidates and flush after the remote description is set.
- Camera flip on Android failed because the new camera was requested before stopping the old track. Fix: stop first, then request, then
replaceTrack. - No time limits: a 2-hour alarm originally wiped rooms mid-call. Now the alarm only wipes empty rooms, and the client auto-reconnects with heartbeat pings so calls survive network drops.
Honest limits
- Anyone in the room can screenshot or record. No website can block a phone's hardware screenshot button (I do best-effort: blur shield on tab switch, selection/right-click blocked, PrintScreen burns the session on desktop).
- The host (Cloudflare) sees connection metadata — IP, timing, sizes — never content.
- In peer-to-peer calls, the other party sees your network IP. True for all WebRTC apps.
- The other person must have the site open to receive a call — no accounts means no push notifications.
Stack
Cloudflare Workers + Durable Objects, Cloudflare Pages, Cloudflare TURN, and a single-file vanilla JS client using Web Crypto, WebRTC and MediaRecorder. No frameworks, no trackers, no analytics.
Feedback welcome — especially on the crypto design and call quality on bad networks.

