magnet-watcher.md
Open in GitHub

Magnet Watcher

Paste a magnet link and watch the video while it downloads.

Paste a magnet link, pick a video from the torrent’s folder tree, and it starts playing while the pieces are still arriving. Pieces are fetched in order from a movable front that follows the player, so seeking just moves where the download continues. Every piece is checked against its SHA-1 in the browser.

Browsers can’t open TCP connections to peers, so a small VPS service probes the swarm and serves the torrent metadata, and a Cloudflare Worker fetches the pieces from peers. Videos are saved in the browser as they arrive, so a partial download can be resumed later.