Skip to content

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

TorrentGlide

Chrome Web Store Firefox Add-ons Website

TorrentGlide: click a magnet link, watch it while it downloads
Footage: Big Buck Bunny © Blender Foundation, CC BY 3.0

A browser extension that catches magnet links and links to .torrent files and offers to open them in its own page instead. The page is range-player: it plays the torrent's file while it downloads, streamed by the rqbit client running on this computer. Built with WXT.

┌──────────────────────┐        ┌──────────────────┐         ┌────────────────────┐
│ content script       │ open ─▶│ background       │ new tab │ player.html        │
│  catches the click,  │        │  storage.session │ ─────▶  │  header            │  HTTP API
│  asks (the card),    │ ◀─ menu│  + tabs.create   │ ?open=id│  rqbit status      │──────────▶ rqbit :3030
│  fetches the .torrent│        │  context menu    │         │  range-player      │──▶ stream/{file}
└──────────────────────┘        └──────────────────┘         │   <movi-player>    │
                                                              └────────────────────┘

What's in this repo

  • range-torrent-extension — TorrentGlide, the extension (Chrome, Edge, Firefox). Catches the clicks, shows the card, opens the page.
  • range-player — the page the extension opens. Plays the file in the browser with movi-player, streamed by rqbit.

Running it

You need Bun and a running rqbit server (9.x), started by hand (rqbit server start ~/Downloads).

bun install
bun run dev              # range-player dev server; load .output/chrome-mv3-dev once
bun run build            # .output/chrome-mv3
bun run build:firefox    # .output/firefox-mv3
bun run test             # unit tests for both projects
bun run typecheck        # tsc --noEmit

Load the output folder as an unpacked extension: chrome://extensions → Developer mode → Load unpacked (Chrome, Edge, Brave), or about:debugging#/runtime/this-firefox → Load Temporary Add-on → its manifest.json (Firefox).

See range-torrent-extension/README.md for the full picture: what it catches, how it talks to rqbit, and how the page works.

Releases

Packages

Contributors

Languages