Drop
Send a file to any device on the same Wi-Fi. It goes device to device over WebRTC; the server only brokers the handshake and never sees a byte.
- Year
- 2026
- Role
- Solo. Design, build, release
- Stack
- JavaScript, WebRTC, Cloudflare Workers, Durable Objects, Vite, Capacitor
- Ships as
- Web app, with a Capacitor build for iOS and Android

The problem
The file only needs to travel three feet. Today it goes to a data centre and back.
AirDrop is Apple only, Nearby Share is Android only, chat apps crush the quality and email caps the size. I wanted two devices in the same room to open one page, see each other and send at local speed, with no account and no install.
What I built
A static web app and a signaling Worker on one origin.
Devices behind the same router land in the same room automatically, shown as a colour and an animal name. Tap one, pick files, and the other side holds to accept. The bytes flow over an RTCDataChannel in 64KB chunks with backpressure, so a 4GB send never fills memory.
- transfer.jsThe wire protocol: offer, accept, chunks, per-file skip, resume. No DOM or WebRTC inside, so it is tested with a fake channel.
- net.jsSignaling client and peer connections. Queues ICE candidates that arrive before the connection can take them.
- workerA Cloudflare Worker and Durable Object that group devices into rooms and relay handshake messages.
- nativeCapacitor build that appends incoming bytes straight to the device filesystem.
What the server sees
The Worker is busy for the handshake and idle for the transfer.
| Step | What happens | What crosses the server |
|---|---|---|
| Find | The Worker hashes your public IP (the /64 prefix on IPv6) into a room name | Your colour, animal name and a server-assigned id |
| Pair by code | A code points at the room you are already in and expires after 10 minutes | The code |
| Handshake | WebRTC offer, answer and ICE candidates are relayed to one peer | Connection details, no file data |
| Transfer | Chunks flow over a direct data channel | Nothing |
| Resume | The receiver reports how many bytes of each file it kept | Nothing |
Hard decisions
The calls that shaped it.
A code is a pointer, not a room
Early codes created their own room, so both devices had to leave automatic discovery to use one. Now a code resolves to the room you are already in. Showing one costs nothing, and the QR on the front screen works whether or not IP grouping does.
Trust the server's id, not the name
Auto-accept first trusted a device by colour and name, which the sender picks, so anyone on shared Wi-Fi could copy them. Trust is now keyed on the server-assigned peer id and dies with the tab.
LAN only, no relay
There is no TURN server. If two devices cannot reach each other directly, the connection fails and says why, and peers on another network are marked before you tap. Going cross-network would mean relaying every byte: a bandwidth bill, and slow.
Three sinks for big files
Received bytes go to a file you chose (File System Access), then to the browser's private disk, and only then to memory. The receiver is warned before a transfer that will not fit the limit that actually applies, not when the tab is killed.
Where it is now
Live on Cloudflare, public code.
- One deployApp and signaling on one Workers origin, no CORS
- ResumeA dropped connection keeps the bytes already moved
- 9 test filesByte-exact round trips, truncation, overrun, pairing and screens
- 60 commitsOn GitHub