r/coolgithubprojects • u/JonathanNet • 5d ago
NordTorrent - a headless rTorrent/ruTorrent replacement with a modern web UI, Android TV app and Chrome extension
galleryBackground: My setup was rTorrent + ruTorrent for downloads, a separate media server for playback, and a browser extension to push .torrent files around. Three moving parts for one job.
So I wrote NordTorrent: a self-hosted torrent client in Rust (librqbit under the hood) that keeps the rTorrent workflow but modernises the surface.
The workflow bits I actually use
- Mount several disks under
/downloadsand NordTorrent lists them by name (series2,movies,music). The folder picker browses subfolders and searches the current level, like ruTorrent. - Labels: assign on add or later, filter the list by label, see counts in the sidebar.
- Move a torrent to a different disk: it is paused, the files are moved (also across Docker mounts), the torrent is re-added on the new path and resumed.
- Per-file Normal/Skip, pause/resume, delete with or without data, live peers and tracker list per torrent.
Automation
- RSS feeds with a destination folder plus include/exclude filters; active feeds are checked every 15 minutes.
- Global download/upload limits in KB/s.
- Seeding rules: keep seeding after completion, stop at ratio or after N minutes.
- DHT can be turned off entirely.
Security
- Argon2id passwords, HMAC-signed sessions, HttpOnly SameSite=Strict cookies.
- CSRF token header, Origin checks, login rate limiting.
- TOTP 2FA per account with a QR code; logins from private/local addresses skip it so a lost phone does not lock you out of the LAN.
- Admin/viewer roles, session list with revoke, no CORS and no third-party CDNs.
Watching
- The server indexes every video/audio file across all torrents into one library.
- ffmpeg-generated thumbnails cached in
/data. - HTTP Range streaming, so you can seek inside an unfinished download.
- Native Android TV app (Kotlin, Media3/ExoPlayer, D-pad focus, resume playback, token in Android Keystore). Same APK works on a phone.
Chrome extension
Downloading a .torrent opens a small NordTorrent window, cancels Chrome's own download and uploads the torrent to the server with the label and folder you pick. Copying a magnet link opens the same window with the link filled in.
Runs in Docker
Multi-stage image, non-root, read-only root filesystem, healthcheck, dropped capabilities. The web UI is embedded in the binary, so there is no Node toolchain anywhere.
