Comment by ajnavarro

Comment by ajnavarro 15 hours ago

0 replies

I built something similar a while back: Distribyted Gate: it turns any magnet link into a browsable webpage.

The 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.