&derpnet ported to JavaScript - https://github.com/mmozeiko/derpnet/blob/main/web

  • implements exactly same protocol as C code, with same encryption guarantees
  • now you can communicate between browser and native code "without running" any extra servers!
  • JS uses websocket to talk to Tailscale DERP server, which relays messages between your peers
  • comes with two examples, one showing basic usage to send & receive messages, and one for exchanging files - both directions, upload to browser and download from browser supported