The web just sucks man.
ZeroNet made it look easy back in the day, but then it runs as a daemon on your machine handling the p2p stuff in the background, but worked with any browser.
Brave has native support for IPFS but IPFS is slow as balls.
Only other option I can think of right now is:
- do server side rendering of the home page (client updates the dom afterwards)
- since the server rendered that page before it should be able to fech the first 30 seconds of each video and cache that
- do some HLS wizardry to switch the streams
Actually… I guess I am reinventing the library you mentioned.
Maybe we should just reinvent zeronet with nostr and nsites and whatever more, that way one daemon can serve as a local relay for caching/redistributing the nsites you visit and handle the p2p shit.
Login to reply
Replies (1)
Good ideas. SSR plus caching the first ~30s would definitely fix the cold start, but at that point it's a CDN, and bitvid is deliberately a static client with no server. What we can do client-side: we already try the direct URL first, fall back to WebTorrent if it stalls, and play HLS via hls.js when a host provides it. Next up is smarter probing (Range requests instead of HEAD, remembering dead hosts across sessions) and warming the first few seconds on hover. A ZeroNet-style nostr/nsite daemon that acts as a local caching relay + seeder is the real fix tbh. If someone builds it, bitvid would happily talk to it. Keep the ideas coming.