edit: So blocking XHR requests seems to do the trick.
Serverless Sync in Web Apps Using Bit Torrent
31–40 of 57 posts
Re: Serverless Sync in Web Apps Using Bit Torrent
#32Earlier quoted context omitted.
S3 can serve over the Bittorrent protocol though. In fact, there are several viable configurations to bridge between WebTorrent, Bittorrent, and S3. For example, you can have S3 directly serve over Bittorrent and use Amazon as a tracker; or you can have the HTTP URL to S3 serve as a BEP19 webseed, which is now supported in recent WebTorrent.
/me runs to learn more.
Re: Serverless Sync in Web Apps Using Bit Torrent
#33So I only kind of understand magnet links. But it seems like I could create a Chrome plugin that took every page I visited and turned the assets into magnet links and started request/seeding them on pageload. Is that analogous to what they're doing?
You need access to the Blob data to seed that. You could get that by making HTTP requests to each of the resources on the page and then to seed that (however, as soon as you navigate away from the page there are no more seeders so the data is no longer available)
Re: Serverless Sync in Web Apps Using Bit Torrent
#34Why not use IPFS, which is specifically designed for this sort of usage and will be more resilient?
Seems js-ipfs[0] is not quite ready for prime time (though it's close) and the author had a requirement to do everything from a browser. https://github.com/ipfs/js-ipfs/
Bittorrent DHT doesn't actually run in the browser yet either [2], so WebTorrent in the browser currently only has access to the tracker infrastructure, and thus isn't as decentralized as one might think.
Re: Serverless Sync in Web Apps Using Bit Torrent
#35Earlier quoted context omitted.
You mean something like this? :) https://zeronet.io/
Where is the anonymity? It is unreasonable to use TOR in my opinion because despite being only a few exit nodes, it's not truly P2P then (and therefore can be slow). Tribler tried something similar. Someone needs to build an onion router of peers without defined relays or exit nodes (think of it as everyone-is-a-relay TOR, it's one of my future ideas[0]). This will speed things up substantially and can definitely wor…
Re: Serverless Sync in Web Apps Using Bit Torrent
#36Re: Serverless Sync in Web Apps Using Bit Torrent
#37Neat use of web torrent. Now if only we could do it with live data instead of persistent data, have built in encryption, and anonymize the peers we'd have the perfect decentralized internet :-)
Feross is awesome, I've met him several times and WebTorrent is driving the future forward. I have a complementary Open Source project ( https://github.com/amark/gun ) for live data sync - it is already decentralized and anonymous by default (other than a session-ID). Adding encryption is pretty easy, now with WebCrypto! The future is looking exciting, between WebTorrent, IPFS, and other projects!
Re: Serverless Sync in Web Apps Using Bit Torrent
#38Earlier quoted context omitted.
Where is the anonymity? It is unreasonable to use TOR in my opinion because despite being only a few exit nodes, it's not truly P2P then (and therefore can be slow). Tribler tried something similar. Someone needs to build an onion router of peers without defined relays or exit nodes (think of it as everyone-is-a-relay TOR, it's one of my future ideas[0]). This will speed things up substantially and can definitely wor…
From what you've described, it seems like i2p would satisfy the requirements of your first paragraph and Freenet would satisfy the requirements of the second. Both of these networks have been around for over a decade, so they're not as in vogue as newer projects.
Re: Serverless Sync in Web Apps Using Bit Torrent
#39Earlier quoted context omitted.
Feross is awesome, I've met him several times and WebTorrent is driving the future forward. I have a complementary Open Source project ( https://github.com/amark/gun ) for live data sync - it is already decentralized and anonymous by default (other than a session-ID). Adding encryption is pretty easy, now with WebCrypto! The future is looking exciting, between WebTorrent, IPFS, and other projects!
Against what threat models does Gun protect peer anonymity?
Re: Serverless Sync in Web Apps Using Bit Torrent
#40It's great to share data, however, how can a torrent solution support services like web API?