I think nostr:npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr wanted to do something like this, forever, but somehow he just couldn't get around to it. Perhaps too much complexity, for little gain
So... p2p file sharing over webrtc over nostr is here. This is the PoC.
https://github.com/abh3po/NRTC-File-Sharing
Will share a hosted version that you can seamlessly use soon, we are still better-ing the UI.
Also we might not want to fully commit to a hosted version because I dont want to handle DMCA and CSAM complaints, and i cannot commit to a moderation UI at this moment. We will however try to make the open source code as easy to run as possible.
The Readme is the spec.
Thanks to nostr:nprofile1qyt8wumn8ghj7etyv4hzumn0wd68ytnvv9hxgtcprpmhxue69uhkv6tvw3jhytnwdaehgu3wwa5kuef0qqs2ytd7283uwxdd3vkdc0j0lsshdusrw0esy7m858wxcm5hd77ddkqc0epzd who's shared my excitement about being able to build this and contributed code to help make this real.
Discussion
I think the gain is tremendous. Large files over webrtc are little work, but nostr relays work well so far for holding references to chunks. I'm not sure how far I'm willing to go with this. But if i can make it work for p2p document uploads on formstr. It would have been worth it.