GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - noxaur/roarr: Super simple media management for *arr apps

BranchesTags
Open more actions menu

Latest commit

 

History

51 Commits
51 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills
.agents/skills
 
 
.claude/skills
.claude/skills
 
 
.github/workflows
.github/workflows
 
 
cmd/roarr
cmd/roarr
 
 
docs
docs
 
 
internal
internal
 
 
lab
lab
 
 
web
web
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
Dockerfile
Dockerfile
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
skills-lock.json
skills-lock.json
 
 

Repository files navigation

roarr

One fast, quiet UI on top of Sonarr, Radarr, Prowlarr, Seerr and Jellyfin.

Search anything that exists, see what your indexers have within half a second, and get exactly as much as you want: one episode, a season, a whole show, a movie or a whole collection. Let roarr pick the best release, or pick it yourself. Season packs download episode by episode, and each episode lands in Jellyfin as soon as it is done.

One Docker image, one port, one volume.

Quick start

# docker-compose.yml
services:
  roarr:
    image: ghcr.io/noxaur/roarr:latest
    restart: unless-stopped
    ports: ["3847:3847"]
    volumes: [roarr-config:/config]
    extra_hosts: ["host.docker.internal:host-gateway"]
    environment:
      PROWLARR_URL: http://prowlarr:9696
      PROWLARR_API_KEY: ...
      SONARR_URL: http://sonarr:8989        # optional: discovered from Prowlarr
      SONARR_API_KEY: ...
      RADARR_URL: http://radarr:7878        # optional: discovered from Prowlarr
      RADARR_API_KEY: ...
      SEERR_URL: http://seerr:5055          # optional
      SEERR_API_KEY: ...
      JELLYFIN_URL: http://jellyfin:8096    # optional
      JELLYFIN_API_KEY: ...
      QBIT_URL: http://qbittorrent:8080     # optional (watch-first)
      QBIT_PASSWORD: ...
volumes:
  roarr-config:
docker compose up -d                          # run
docker compose pull && docker compose up -d   # update

Open http://<host>:3847. Put roarr on the same Docker network as the rest of the stack so container names resolve. Apps that are only published on the host's ports work too: a localhost / 127.0.0.1 URL (yours, or one roarr discovers in Prowlarr or Sonarr) is retried on the Docker host (host.docker.internal, then the default gateway) when nothing answers inside the container. Release links handed to Sonarr/Radarr are rewritten to the Prowlarr address they use, so the apps do not need to resolve the same names as roarr. Settings, connections included, can also be changed under Admin (account menu) and are saved in /config. A setting given as an environment variable is locked there.

Configuration

Variable Default
PROWLARR_URL, PROWLARR_API_KEY — Required. All searching goes through Prowlarr's indexers.
SONARR_URL, SONARR_API_KEY from Prowlarr Shows. Read from Prowlarr's Apps if unset.
RADARR_URL, RADARR_API_KEY from Prowlarr Movies. Same.
SEERR_URL, SEERR_API_KEY — Fast TMDB search with posters, request inbox. Works with Seerr, Jellyseerr and Overseerr.
JELLYFIN_URL, JELLYFIN_API_KEY — Sign in with Jellyfin accounts; refresh the library right after each import.
QBIT_URL, QBIT_USERNAME, QBIT_PASSWORD host/user from Sonarr Watch-first packs and "download anyway". Sonarr hides the password, so set QBIT_PASSWORD.
AUTH_MODE jellyfin if JELLYFIN_URL set, else none jellyfin, password (with AUTH_PASSWORD), or none.
JELLYFIN_ADMIN_ONLY true Only Jellyfin admins may sign in.
TRUSTED_PROXIES — Reverse proxies (IPs or CIDRs, comma separated) whose X-Forwarded-For roarr believes when it throttles failed sign-ins. Without it, every client behind the proxy shares one limit.
WATCH_FIRST true Download packs in episode order and import as each finishes.
PREFETCH true Start searching a show as soon as its page opens.
SEERR_AUTO_FETCH false Grab newly approved Seerr requests automatically. Turn on Seerr's "prevent search" for its Sonarr/Radarr servers so they don't search too. Always on when roarr runs the library.
IMPORT_MODE arr arr: Sonarr/Radarr download and import. native: roarr sends torrents to qBittorrent and imports them itself. See Native import.
TV_ROOT, MOVIES_ROOT — Native mode: library folders, as roarr sees them.
IMPORT_TRANSFER hardlink Native mode: hardlink (copies when a link is impossible), copy or move.
QBIT_PATH_MAP — Native mode: qbit-path=roarr-path pairs, comma separated, when the containers mount downloads at different paths.
QBIT_CATEGORY roarr Native mode: qBittorrent category for roarr's torrents.
QBIT_SAVE_PATH qBittorrent default Native mode: save path for roarr's torrents.
MISSING_SEARCH_HOURS 24 Native library: every N hours, search for monitored episodes and movies that aired but are not on disk, and get the best releases. 0 turns it off. New episodes are searched as they air either way.
IMPORT_STANDALONE false Native mode: roarr runs the library and does not use Sonarr or Radarr, even when they are configured. Take over under Admin → Import sets it.
INDEXER_TIMEOUT 30 Seconds before giving up on a slow indexer.
CACHE_MINUTES 20 How long indexer answers are reused.
PORT 3847
VERIFY_MEDIA auto Check finished downloads with ffprobe/ffmpeg. auto is on when ffprobe is installed (FFPROBE_PATH, FFMPEG_PATH override the lookup, for the AV1 converter too).
VERIFY_PATH_MAP — client=roarr path prefixes, comma-separated, when roarr sees qBittorrent's files under another path (/downloads=/data/downloads).

AV1 converter (optional, off by default)

roarr can convert finished downloads to AV1 with ffmpeg (SVT-AV1; libaom only if the ffmpeg has no SVT-AV1), in a low-priority background queue.

Variable Default
TRANSCODE false Turn the converter on.
TRANSCODE_CONCURRENCY 1 Files converted at once (1-8).
TRANSCODE_NICE 10 CPU niceness of ffmpeg (0-19).
TRANSCODE_CRF auto Quality (lower is better, 0-63). Auto: 26 for SD, 28 for 720p, 30 for 1080p, 32 for 1440p, 34 for 4K.
TRANSCODE_PRESET 8 Speed (SVT-AV1 0-13; higher is faster, with a little less quality per byte). 8 is about 1.5x faster than 6 for about 0.3 less VMAF at the same size; use 6 on a fast CPU, 10 only on a very slow one.
TRANSCODE_FILM_GRAIN 0 Film-grain synthesis level (0 = off, 1-50). Try 8-12 for grainy film sources.
TRANSCODE_MIN_SAVINGS 15 Keep the original unless the result is at least this many percent smaller.
TRANSCODE_PATH_MAP — Only if roarr sees the media under other paths than Sonarr/Radarr: /tv=/media/tv,/movies=/media/movies.

How it works:

  • A file is queued when Sonarr or Radarr records its import (their own, or a watch-first import). Only imports made after you turn it on are converted; nothing from your existing library.
  • Video becomes 10-bit AV1. All audio, subtitle and attachment streams, chapters and metadata are copied, and HDR colour tags are kept. .mkv and .mp4 files only. Files that are already AV1, or that carry Dolby Vision (the Dolby layer would be lost), are skipped.
  • The result is written next to the original under a temporary name and checked with ffprobe: duration within 1 s, same number of video, audio and subtitle streams, same chapters, AV1 video. Only then is it swapped in: the original is moved aside, the result is put in its place without overwriting anything, and the original is deleted last. If roarr stops in the middle, it puts the original back at the next start. If anything fails, or the result is not TRANSCODE_MIN_SAVINGS smaller, the original stays as it was.
  • Afterwards roarr asks Sonarr/Radarr to rescan and Jellyfin to refresh.
  • GET /api/transcode shows the queue, progress and bytes saved.

Pause and schedule (Admin → AV1):

  • Pause holds the queue. A file that is being converted is suspended where it is (ffmpeg is stopped, not killed) and continues on Resume, so no work is lost. The pause stays on across restarts. On Windows, ffmpeg cannot be suspended: the file goes back to the queue and starts again later.
  • Schedule limits conversion to weekly windows, for example Mon-Fri 22:00-07:00 and all of Saturday and Sunday. A window that ends at or before its start time runs past midnight. Outside the windows, running files are suspended the same way. Times are the server's local time: set TZ on the container (for example TZ: Europe/Oslo). No windows means any time.
  • POST /api/transcode/pause and POST /api/transcode/resume do the same as the buttons.

roarr needs read/write access to your media folders, at the same paths Sonarr/Radarr use (mount them into the roarr container like you do for Sonarr; with user: set to a uid that may write to them). Without these mounts every job fails with "cannot read file". If you add user: to an existing install, give the config volume to that uid once: docker run --rm -v <project>_roarr-config:/c alpine chown -R 1000:1000 /c. The torrent's own hard-linked copy is not touched, so seeding goes on, but the old data stays on disk until that torrent is removed.

The image includes a static ffmpeg and ffprobe, which are most of its size. Leave them out with docker build --build-arg FFMPEG=false .; the converter then reports itself as unavailable.

Bind-mounting a host folder on /config instead of a named volume? The image runs as uid 65532. Add user: "1000:1000" (your uid) to the service.

What it does

Search anything. Press ⌘K (or /) on any page. Typing filters your library instantly; the whole library is sent to the browser once, so it needs no requests. Everything else comes from TMDB through Seerr in about 250 ms, or from Sonarr/Radarr lookups. Titles that are not in Sonarr/Radarr yet can be browsed and searched, and are added (unmonitored, no automatic search) the moment you grab something. Movies can be fetched straight from the search list with ⌘↵.

See what indexers have, fast. roarr talks to Prowlarr one indexer at a time in parallel and streams each answer to the page as it arrives. A slow or dead indexer never blocks the others. Every release is parsed and scored on arrival. It is labelled as an episode, multi-episode, season pack, multi-season pack or complete series, and mapped to the exact episodes it contains.

One question, one button. A show page asks what do you want?: missing episodes, a season, the whole show, or the episodes you tick. A movie page asks the same about its collection. Missing is picked for you, and the show is already being searched, so the usual case is a single press of Get.

roarr picks, or you do. Best pick always shows what Get will grab: the cheapest set of releases covering your selection. It prefers one season pack over ten equal singles, and better singles over a worse pack. Once every indexer has answered, Get grabs exactly that plan. Before then, roarr waits until the plan is stable, without waiting for the slowest indexer once every wanted episode is covered. Choose release myself opens the full list, re-ranked for your selection so a 60-episode pack drops below the single episode you asked for.

Watch-first packs. When a pack goes to qBittorrent, roarr:

  1. Downloads its files in episode order: a rolling priority window plus sequential pieces.
  2. Skips episodes you already have.
  3. Imports each finished episode into Sonarr right away, by copy/hardlink so the torrent keeps seeding.
  4. Has Jellyfin refresh that show.

Episode 1 is watchable long before the pack is done. Sonarr's own import at the end recognises the episodes that are already imported.

Manage what you already have. Every episode shows the file on disk (quality, codec, size, release group) and a bookmark for monitoring. The ⋯ menu on an episode or season can:

  • Replace it: delete the current file and get roarr's best pick, or a release you choose.
  • Delete the file, optionally unmonitoring it so Sonarr leaves it alone.
  • Hand the search to Sonarr instead.

Tick episodes (shift-click ticks a run, Esc clears) and a bar offers the same for all of them at once. Manage on a show or movie toggles monitoring, moves it to another quality profile, rescans the disk, or removes it from Sonarr/Radarr with or without its files. Movies get the same replace and delete controls. Everything destructive asks first.

Grabbing stays with the *arrs (default IMPORT_MODE=arr). Releases are pushed to Sonarr/Radarr (/release/push), so their download clients, categories, history, blocklist and import pipeline all apply. If the *arr declines a release you explicitly chose, roarr shows the reason and offers Download anyway. That sends it to qBittorrent in the *arr's category, and the *arr still imports it.

Requests. The Seerr inbox: Approve & get approves a request and fetches it in one go, or approve and decline as usual. With SEERR_AUTO_FETCH on, every approved request is fetched automatically with roarr's search and planner.

Fakes are caught. Each download is checked once its files are on disk; a pack is checked as soon as its first episode is complete. roarr:

  1. Rejects payloads with executables, only archives, or only a sample or trailer, and lengths far from the episode or movie runtime.
  2. Samples 7 frames across the file and fails black, flat or one static slate.
  3. Compares the release name with the streams: resolution, codec, HDR, 10-bit, audio languages (MULTi, GERMAN DL, VFF) and subtitles (ENG SUBS, VOSTFR), including subtitle tracks that are empty.
  4. Fails a file whose audio is all in languages you did not pick, or that lacks full subtitles in a language you need. The defaults are under Admin → Release rules (English audio, no subtitles needed out of the box); a show or movie can pick its own next to Get.

A failed download is blocklisted, deleted with anything it imported, and replaced with the next best release at once. GET /api/verify lists verdicts; POST /api/verify/{hash}/regrab does the same for a download you want gone. Needs ffmpeg in the container and the download folder mounted.

Native import

By default Sonarr and Radarr download and import everything roarr grabs. With IMPORT_MODE=native roarr does it itself:

  1. Get sends the torrent straight to qBittorrent (category roarr).

  2. roarr maps every file in the torrent to an episode (or picks the main movie file). Samples, extras (featurettes, trailers, behind the scenes) and episodes already in the library are not downloaded.

  3. Each finished file is hardlinked (copied if that is impossible) into a Jellyfin-style library, while the torrent keeps seeding:

    TV_ROOT/Show Name (2019)/Season 01/Show Name - S01E02.mkv
    TV_ROOT/Show Name (2019)/Season 01/Show Name - S01E03-E04.mkv
    TV_ROOT/Show Name (2019)/Season 01/Show Name - S01E02.en.forced.srt
    MOVIES_ROOT/Movie Name (2010)/Movie Name (2010).mkv
    
  4. Jellyfin refreshes the title. Sonarr/Radarr rescan it too, if they are still configured and know it.

Packs still download watch-first, in episode order. A better release replaces the old file and its subtitles. An equal or worse release is skipped, unless you picked it for those episodes. roarr remembers what it imported in /config/library.json. Its torrents are in /config/native.json. GET /api/imports shows both.

Metadata comes from Sonarr/Radarr when they are configured, otherwise from TMDB through Seerr. Native mode needs Prowlarr and qBittorrent. It also needs Seerr, Sonarr/Radarr, or both, for metadata.

services:
  roarr:
    # ...
    volumes:
      - roarr-config:/config
      - /srv/data:/data            # same host folder as qBittorrent's
    environment:
      IMPORT_MODE: native
      TV_ROOT: /data/media/tv
      MOVIES_ROOT: /data/media/movies
      QBIT_URL: http://qbittorrent:8080
      QBIT_PASSWORD: ...
      # qBittorrent mounts /srv/data/torrents as /downloads:
      QBIT_PATH_MAP: /downloads=/data/torrents

Hardlinks only work inside one filesystem and one Docker volume. Mount one parent folder that holds both downloads and library (for example /data/torrents and /data/media) in roarr. Otherwise roarr copies. IMPORT_TRANSFER=move saves the space but stops the torrent from seeding.

Without Sonarr and Radarr, roarr also keeps the library itself. The library list, the show and movie pages, Delete (episode, season, movie or the whole title) and Search use /config/library.json. A delete removes only files that roarr knows, and only inside TV_ROOT and MOVIES_ROOT. On its own, roarr also:

  • grabs new episodes of monitored shows after they air, and searches for everything monitored that is missing once a day (MISSING_SEARCH_HOURS);
  • upgrades files below your first preferred resolution or from a source weaker than WEB-DL, once a week per title;
  • replaces a download that is dead, stalls for an hour, fails verification or holds nothing usable: it blocklists the release, removes the torrent and grabs the next best one;
  • grabs Seerr requests once they are approved.

Releases packed in ZIP archives are unpacked before the import. RAR and 7-Zip archives are not.

Leaving Sonarr and Radarr

Admin → Import → Take over moves an existing library to roarr in one pass. Each series and movie in Sonarr and Radarr, with its monitoring and files, goes into /config/library.json. So do title folders on disk that neither knows, which roarr identifies through Seerr. Nothing on disk moves: folders keep their names, and new episodes go into the season folders that are there. roarr then switches to native mode and stops using Sonarr and Radarr, so you can turn them off. Before it starts, the page checks what roarr needs: qBittorrent, Seerr, library folders that roarr can write and that hold Sonarr's and Radarr's root folders, and a download folder that roarr can see.

See docs/native-import.md for how it works and what it does not cover.

Why it is fast (measured)

Measurements come from lab/: real Sonarr 4, Radarr 6, Prowlarr 2 and qBittorrent 5 in Docker, with 7 fake Torznab indexers that have realistic latency, including a slow one and one that hangs 35% of the time. Full write-up in docs/experiments.md.

Episode search, 7 indexers (median of 5) first results everything
Sonarr interactive search (what roarr used at first) 6.97 s 6.97 s
Prowlarr aggregated search 6.49 s 6.49 s (48 s when an indexer hangs)
roarr 0.52 s streamed as indexers answer
roarr, after opening the show page (prefetched) 0.01 s cached

Main tricks:

  • One request per indexer, streamed to the browser over SSE.
  • A priority queue per indexer: Prowlarr serializes requests to an indexer 2 s apart, so the query for what you clicked jumps ahead of background prefetch.
  • Show-wide prefetch when a page opens.
  • Shared in-flight requests and a 20-minute result cache.
  • Failed indexers are remembered for 90 s instead of costing their full timeout on every search.

Development

make lab        # real *arr stack + fake indexers on localhost (needs Docker)
make build      # web UI + binary -> bin/roarr
make test
make bench      # search strategy benchmark against the lab
make swarm      # watch-first download strategy experiment

The UI is React + Vite (web/), built into internal/webui/dist and embedded in the Go binary. cd web && ROARR_API=http://localhost:3847 npm run dev gives hot reload against a running roarr. Without one, node mock/server.mjs (in web/) serves a fake API with a small library, a release list that exercises the language and subtitle columns, and a queue with stuck items.

cmd/roarr          entry point
internal/release   title parser, scoring, coverage, planner
internal/search    per-indexer prioritised fan-out + cache
internal/app       library, titles, search sessions, grab, watch-first, activity
internal/server    HTTP API, SSE, auth, static UI
internal/transcode AV1 conversion queue (ffmpeg, ffprobe, verify)
internal/importer  native import: naming, file matching, hardlink/copy, library.json, hooks
internal/{arr,seerr,jellyfin,qbit}  upstream clients
lab/               docker lab, mock indexers, benchmarks, experiments

About

Super simple media management for *arr apps

Resources

Readme

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.