Work P2P web / WebRTC

Blink

Drop a file in one browser, open the link in another, and the file moves straight between the two. There's no upload step and no server holding your data, which is the whole point.

How it works

One side creates a room and gets a short code plus a shareable link; the other side joins with it. PeerJS is only used so the two tabs can find each other. Once they're connected, the file travels over a direct WebRTC data channel, so the bytes never pass through any host I run.

Details worth noting

  • Files are sent in 16 KB chunks, with backpressure so a big file doesn't blow up memory.
  • Google's public STUN servers handle NAT traversal; you can paste your own ICE/TURN config in the Net panel.
  • It's all static: no build step, no backend, just an HTML page, a stylesheet, and one script.
  • Different networks behind strict NATs may need a TURN server, which Blink doesn't ship by default.