Live data from Hacker News

Peerweb: Decentralized website hosting via WebTorrent

peerweb.lol

131–137 of 137 posts

Re: Peerweb: Decentralized website hosting via WebTorrent

#132

Earlier quoted context omitted.

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.

What I'm suggesting is more in the context of self hosting - a JS wrapper which would make it easy to host a video with plain HTML while preventing bandwith issues.

Hey, that's pretty much the project I've been thinking of doing for a while!

I really dislike the monopoly YouTube has on online video, but other options or self-hosting can become really expensive due to bandwidth (especially if your video suddenly goes viral). I think P2P (over WebRTC, for browser compatibility) has potential for creating a solution.

Roughly:

* You have a Website with some s you want to share hosted somewhere—doesn't matter if it's dynamic, static, hosted on a CDN or a VPS, as long as it imports a few scripts and embellishes the tag with a few details.

* Base case: you want to publish a video, you host the video. That means you host a server at home that is running the hosting software (maybe WebTorrent based, maybe something custom). As high-speed fiber Internet becomes more common, hosting video from a home network becomes more feasible (unless ISPs decide to cock-block it).

* A signaling server establishes a P2P connection (WebRTC datachannels) between a visitor of your Website and your video-hosting home server.

* If you have a fast enough Internet connection (100+ Mbps) and low traffic, I don't see why the base case shouldn't work (other than network connectivity problems due to complicated NATs and such). If you have a surge of simultaneous traffic, those that came earlier can offload pressure on the home server by seeding the video chunks they have already downloaded. Theoretically, infinite scalability without bandwidth or hardware bottlenecks (but likely coordination woes in practice).

But there's more!

Say there's another person on the Web hosting their videos in the same way. If I like their video, I can re-host it on my own home server and let their signaling server know about it. Now there are two "persistent" video servers hosting the video that a visitor can download from. If I trust this person, I can choose to automatically re-host all their past and future videos.

Moderation isn't a problem, because you explicitly choose which videos to re-host, or because you re-host (future) videos of people you trust.

The more people re-host videos, the better their availability, download speed, and latency if hosts are geographically distributed.

Further ideas of pooling signaling servers and home servers into networks to enable other possible niceties (though likely with a more substantial moderation burden) ...

I've tried a really basic proof of concept of the base case (across a few countries on a mobile network!), and it worked!

Currently, I'm looking to talk with anyone who is interested in any of this :)

Re: Peerweb: Decentralized website hosting via WebTorrent

#133

Earlier quoted context omitted.

http://bittorrented.com

Can't seem to find any mentions of this online from over a week ago, not much commentary either, mostly stuff that smells like advertising / astroturfing. Hmm...

huh?

Re: Peerweb: Decentralized website hosting via WebTorrent

#134
post #105

Earlier quoted context omitted.

you can't stop someone from verbally describing certain objectionable material, therefore we should regulate the medium thru which sound travels and suck up all the oxygen on the planet. it's the only way to save the children

You're so right! I had never thought of that! We should remove all moderation everywhere, everything should be legal everywhere all the time! /s

I wonder who censored my other response to another commenter (I said that if being against hosting CSA means I'm a 'n4z1' than I'm ok with that derogatory label)

Though the irony of being censored while talking about how CSA should be censored is very funny to me.

These pro-speech absolutists (who are usually libertarian) miss that NAP is clearly violated when any abuse is hosted/disseminated. Additionally while speech should never be censored.. everything must be permissible if all media is speech. You can have a society that censors multi-media but not the caption/description attached; other allowances (for other types of "speech") always leads to the most degenerate of people having a voice while everyone else is punished for calling them out.

Re: Peerweb: Decentralized website hosting via WebTorrent

#136
post #56

Earlier quoted context omitted.

Why is it called MDwiki? It's clearly not a wiki.

The idea is to host it on github, and people send changes to the content via pull requests (vs. editing like in wikipedia). There is no backend, just plain files.

I see. I would personally have counted GitHub as a backend.

Re: Peerweb: Decentralized website hosting via WebTorrent

#137
post #13

Fun! I wish WebTorrent had caught on more. I've always thought it had a worthy place in the modern P2P conversation. In 2020, I messed around with a PoC for what hosting and distributing Linux distros could look like using WebTorrent[1]. The protocol project as a whole has a lovely and brilliant design but has stayed mostly stagnant in recent years. There are only a couple of WebRTC-enabled torrent trackers that have…

Was there ever a web-based Jigdo?

This was a fun rabbit hole. Thanks for educating me!
Post reply on HN