This is pretty interesting! I think serving video is a particularly interesting use of Webtorrent. I think it would be good if you could add this as a front end to basically make sites DDOS proof. So you host like a regular site, but with a JS front end that hosts the site P2P the more traffic there is.
I think it is very difficult (and dangerous to the host) to serve user-uploaded videos at scale, particularly from a moderation standpoint. The problem is even worse if everyone is anonymous. There is a reason YouTube has such a monopoly on personal video hosting. Maybe developments in AI moderation will make it more palatable in the future.
Peerweb: Decentralized website hosting via WebTorrent
121–130 of 137 posts
Re: Peerweb: Decentralized website hosting via WebTorrent
#122This is pretty interesting! I think serving video is a particularly interesting use of Webtorrent. I think it would be good if you could add this as a front end to basically make sites DDOS proof. So you host like a regular site, but with a JS front end that hosts the site P2P the more traffic there is.
There is PeerTube for video content.
Re: Peerweb: Decentralized website hosting via WebTorrent
#123The key difference is the approach: it uses a Service Worker as an embedded HTTP server in the browser. This means files are loaded on-demand rather than requiring full downloads upfront. The SW intercepts fetch requests and streams chunks directly from the torrent swarm.
Live demos using some PeerWeb demo sites:
- Chess: https://gate.distribyted.com/?tid=1e14b1ba7fcd03e5f165d53ed8...
- Functionality test page: https://gate.distribyted.com/?tid=90c020bd252639622a14895a0f...
Code: https://github.com/distribyted/gate
Caveat: This is a proof of concept, so stability varies and it works best on Chromium-based browsers.
Re: Peerweb: Decentralized website hosting via WebTorrent
#124Re: Peerweb: Decentralized website hosting via WebTorrent
#125What a pity that although webtorrent support is already merged in the libtorrent master branch years ago, it's not merged into the stable branch yet, therefore not working out of the box in clients like qBittorrent.
Re: Peerweb: Decentralized website hosting via WebTorrent
#126This is meant to work with PeerWeb App which is more secure and stripped down torrent desktop client, that you can use to share your websites and host them through peerweb.lol. Still haven't released the dektop client but might do it.
Point of this is for everyone to host their content without needing servers, and as a great learning experience. Security is very big caviat here, so in no way is this final secure version.
Re: Peerweb: Decentralized website hosting via WebTorrent
#127No Javascript https://github.com/Omodaka9375/peerweb https://github.com/Omodaka9375/peerweb/releases/expanded_ass... If the address is a hash perhaps it could contain a public key
Re: Peerweb: Decentralized website hosting via WebTorrent
#128Earlier quoted context omitted.
I'm planning to eventually launch an open source platform with the same name (peerweb.com) that I hope will be vastly more usable, with a distributed anti-abuse protocol, automatic asset distribution prioritization for highly-requested files, streaming UGC APIs (e.g. start uploading a video and immediately get a working sharable link before upload completion), proper integration with site URLs (no ugly uuids etc. vis…
This sounds really interesting, do you have any more info or a repo to follow?
Re: Peerweb: Decentralized website hosting via WebTorrent
#129I'm glad to see this was not unexpectedly fast to load. Would not want to upset those distributed expectations! I wonder if there's a business model in selling speed on a robust network that is on average too slow. Is there anyway to incentivize more nodes through micropayments distributed from people who pay for their site to be served faster? Ultimately I guess the distributed web is felled by economics thus far.
Re: Peerweb: Decentralized website hosting via WebTorrent
#130No Javascript https://github.com/Omodaka9375/peerweb https://github.com/Omodaka9375/peerweb/releases/expanded_ass... If the address is a hash perhaps it could contain a public key
Design decisions