prism

module
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT

README

Prism

A self-hosted movie collection manager for home servers and the Beacon media stack.

License Go 1.25

Website · Bug Reports


Prism is a self-hosted movie collection manager with a React web UI and a REST API. It tracks a movie library, polls indexers for new releases, grabs them through your download client, and files the finished downloads into your media server. It runs as a single Go binary, stores state in SQLite, and is configured from the UI or through environment variables.

Prism also speaks the Radarr v3 API, so tools like Overseerr, Jellyseerr, Homepage, Home Assistant, and anything else with a "Radarr" integration can connect to it without modification.

Prism stands on its own as a Radarr alternative. It comes into its own as part of the Beacon Stack — alongside Pulse (centralized indexers + quality profiles), Pilot (TV), and Haul (BitTorrent client) — where Pulse-managed indexers, cross-service quality profiles, and stall-aware torrent blocklisting all light up.

Features

Library management

  • Full TMDB integration for search, metadata, posters, and collection tracking
  • Per-movie monitoring with automatic grab on missing
  • Wanted page covering missing movies, cutoff-unmet, and upgrade recommendations
  • Calendar view of upcoming releases by month
  • Library stats with breakdowns by quality tier, genre, decade, storage trends, and indexer performance — all with clickable drill-down
  • Collections browsing and tracking pulled from TMDB

Release handling

  • Quality profiles with resolution, source, codec, and HDR dimensions
  • Custom formats with regex matching and weighted scoring, with TRaSH Guides presets preinstalled
  • Edition-aware scoring — 15 canonical editions (Theatrical, Director's Cut, Extended, Ultimate, IMAX, Criterion, 4K Remaster, and others) parsed and scored per movie
  • Release decision explainability — every release shows exactly why it was grabbed or skipped, which custom formats matched, and where it landed against the quality profile
  • Import conflict detection — warns about dimension regressions (HDR lost, audio downgrade) before grabbing
  • Manual search across all indexers with per-release scoring breakdown
  • Title-matched release filter — releases for other movies with overlapping words in the title don't get grabbed

Automation

  • Automatic RSS sync on a configurable schedule
  • Auto-search scored against your quality profile and custom formats
  • Auto-import of completed downloads with rename and hardlink support
  • Import lists from TMDB, Trakt, Plex watchlists, MDBList, and custom URL lists
  • Library Sync — compare your media server library against Prism and import the delta
  • Activity log pruning

Integrations

  • Radarr v3 API compatibility at /api/v3/ — usable by Overseerr, Jellyseerr, Homepage, Home Assistant, LunaSea, and any other tool with a "Radarr" integration
  • Indexers: Newznab (NZBgeek, NZBFinder), Torznab (Prowlarr, Jackett), Pulse-managed indexers
  • Download clients: Haul, qBittorrent, Deluge, Transmission, SABnzbd, NZBGet
  • Media servers: Plex, Jellyfin, Emby
  • Notifications: Discord, Slack, Telegram, Pushover, Gotify, ntfy, email, webhook, custom command
  • Migration: one-click import of quality profiles, libraries, indexers, download clients, and movies from a running Radarr instance

UI

  • Command palette (Cmd/Ctrl+K) with fuzzy search for pages, movies, and actions
  • Interactive release search modal with pack-type filters, quality badges, click-to-sort columns (Size, Quality, Seeds, Age), and per-row scoring
  • Dark and light themes with 10+ presets shared across the Beacon services
  • Live queue updates over WebSocket
  • OpenAPI documentation at /api/docs

Operations

  • Single static Go binary, no runtime dependencies
  • SQLite database: no separate database server
  • Zero telemetry, no analytics, no crash reporting, no phoning home
  • Auto-generated API key on first run
  • Graceful shutdown with drain timeout

Getting started

Docker

Prism runs on its own, like Radarr: add your indexers and a download client in Settings. On first start it creates a movie library at /data/media/movies and a set of default quality profiles.

Set the two paths in the compose file:

  • /config: Prism's database and settings. Keep it on a local disk.
  • /data: your media and downloads, in one folder. Give every Beacon app the same host folder at /data: imports are then instant hardlinks, and every app sees the same paths so no path mappings are needed. It must be writable by uid 1000.

The compose file is docker/docker-compose.yml. Then:

docker compose -f docker/docker-compose.yml up -d

The web UI is at http://<this-host>:8282. Prism generates an API key on first run; find it in Settings → App Settings.

Running it with the other Beacon apps

Each app ships its own compose file; run the ones you want and connect them. beaconstack.io has larger examples, from Pilot + Haul up to the full stack with Pulse and a VPN.

Build from source

Requires Go 1.25+ and Node 22+. The default Docker image includes ffmpeg/ffprobe for media scanning; install it separately if you build locally and want that feature.

git clone https://github.com/beacon-stack/prism
cd prism
cd web/ui && npm ci && npm run build && cd ../..
make build
./bin/prism

Prism listens on port 8282 by default. If something else already owns that port, override with PRISM_SERVER_PORT.

Configuration

Most settings live in the web UI. For the ones you'll want at container-start time, use environment variables or a YAML config file at /config/config.yaml (also searched at ~/.config/prism/config.yaml and ./config.yaml).

Variable Default Description
PRISM_SERVER_PORT 8282 Web UI and API port
PRISM_DATABASE_PATH /config/prism.db SQLite database file
PRISM_AUTH_API_KEY auto API key; autogenerated on first run if unset
PRISM_PULSE_URL — Pulse URL, e.g. http://192.168.1.10:9696 (optional)
PRISM_PULSE_API_KEY — Pulse's API key, needed with PRISM_PULSE_URL
ADVERTISE_HOST container hostname Address Pulse uses to reach Prism; set it to this host's IP when the apps run as separate compose projects
PRISM_LOG_LEVEL info debug, info, warn, error
PRISM_LOG_FORMAT json json or text

Radarr v3 API

Prism exposes a Radarr v3 compatible API at /api/v3/. Point any tool that has a "Radarr" integration at Prism:

Field Value
URL http://<prism-host>:8282
API Key Your Prism API key (Settings → App Settings)

Currently known to work with Overseerr, Jellyseerr, Homepage, and Home Assistant. If you run into a tool that doesn't work, please file an issue with the tool name and the request path that's failing.

Migrating from Radarr

Prism imports from a running Radarr instance in one pass. Open Settings → Import, enter the Radarr URL and API key, preview what will be brought over, and pick the categories to bring in. Supported:

  • Quality profiles
  • Libraries (root folders)
  • Indexers
  • Download clients
  • Movies with monitoring state

Where Prism fits in the Beacon stack

┌─────────────┐     registers      ┌──────────┐
│    Pulse    │◄───────────────────┤  Prism   │
│ (control    │────managed─────────►(movies)  │
│   plane)    │  indexers + profiles│          │
└─────────────┘                    └────┬─────┘
                                        │
                                 grab torrent
                                        ▼
                                   ┌─────────┐
                                   │  Haul   │
                                   │  (BT)   │
                                   └─────────┘

If the full stack is running, Prism pulls shared indexers and quality profiles from Pulse and sends torrent grabs through Haul. Standalone is fine — Pulse and Haul are optional.

Power user notes

TRaSH custom formats. Prism ships with the commonly-used TRaSH Guides custom format presets preinstalled and scored according to their recommendations. A fresh install gets solid 1080p and 2160p releases without manual configuration. Editing, disabling, and adding formats all work the same as Radarr — the format engine is compatible, and the migration tool brings any existing custom formats along when you import from Radarr.

Edition-aware scoring. Prism's parser recognizes 15 canonical editions. Set a preferred edition per movie and matching releases score higher during the decision pass. Useful when you care about a specific cut.

Release decision explainability. Every release on the manual search page shows exactly which custom formats matched, which quality tier it landed in, and whether it was blocked by the title match, the quality floor, or a blocklist entry. Makes debugging "why didn't this grab" a two-second operation instead of a mystery.

Radarr v3 adapter. Lives in internal/api/v3/. It's a compatibility layer over Prism's native API that maps Radarr's endpoint shapes onto Prism's internal types. When a field doesn't have a direct equivalent, the adapter either returns a sensible default or omits it. If you're building or maintaining an external tool that targets Prism through this adapter and something's behaving oddly, file an issue against the specific endpoint.

API surface. Everything the UI does is available through the native /api/v1/ REST API — OpenAPI docs at /api/docs.

Privacy

Prism makes outbound connections only to services you explicitly configure: TMDB for metadata, your indexers, your download clients, your media servers, and your notification targets. No telemetry, no analytics, no crash reporting, no update checks. Credentials are stored locally and never written to logs.

Built with Claude

Prism was built by one person with extensive help from Claude (Anthropic). Architecture, design decisions, bug triage, and this README are mine. Many of the keystrokes are not. If something in the code or the docs doesn't make sense, open an issue.

Development

make build    # compile to bin/prism
make run      # build + run
make dev      # hot reload (requires air)
make test     # go test ./...
make check    # golangci-lint + tsc --noEmit
make sqlc     # regenerate sqlc code

Contributing

Bug reports, feature requests, and pull requests are welcome. Please open an issue before starting anything large.

License

MIT — see LICENSE.

Directories

Path Synopsis
cmd
prism command
internal
anthropic
Package anthropic provides a minimal Claude Messages API client.
Package anthropic provides a minimal Claude Messages API client.
api
api/v3
Package v3 provides a Radarr v3 API compatibility layer.
Package v3 provides a Radarr v3 API compatibility layer.
api/ws
Package ws implements a WebSocket hub that bridges the internal event bus to connected browser clients.
Package ws implements a WebSocket hub that bridges the internal event bus to connected browser clients.
core/activity
Package activity provides a persistent activity log that records events from the in-memory event bus so they survive restarts and are queryable.
Package activity provides a persistent activity log that records events from the in-memory event bus so they survive restarts and are queryable.
core/aicommand
Package aicommand provides AI-powered command interpretation for the command palette.
Package aicommand provides AI-powered command interpretation for the command palette.
core/autosearch
Package autosearch implements on-demand automatic search: given a movie, search all indexers, pick the best release that satisfies the quality profile, and submit it to a download client.
Package autosearch implements on-demand automatic search: given a movie, search all indexers, pick the best release that satisfies the quality profile, and submit it to a download client.
core/blocklist
Package blocklist manages the release blocklist used to skip known-bad releases.
Package blocklist manages the release blocklist used to skip known-bad releases.
core/collection
Package collection manages director/actor filmography collections.
Package collection manages director/actor filmography collections.
core/conflict
Package conflict detects quality regressions between a current file and a candidate release.
Package conflict detects quality regressions between a current file and a candidate release.
core/customformat
Package customformat implements Radarr-compatible custom format management.
Package customformat implements Radarr-compatible custom format management.
core/customformat/presets
Package presets provides built-in TRaSH-compatible custom format definitions that users can import with a single click.
Package presets provides built-in TRaSH-compatible custom format definitions that users can import with a single click.
core/dbutil
Package dbutil provides shared helpers for database-layer operations.
Package dbutil provides shared helpers for database-layer operations.
core/downloader
Package downloader manages download client configurations and orchestrates adding releases to the appropriate download client.
Package downloader manages download client configurations and orchestrates adding releases to the appropriate download client.
core/downloadhandling
Package downloadhandling provides access to download handling settings (completed/failed download automation, check interval, remote path mappings).
Package downloadhandling provides access to download handling settings (completed/failed download automation, check interval, remote path mappings).
core/edition
Package edition detects movie editions (Director's Cut, Extended, IMAX, etc.) from scene release titles and filenames.
Package edition detects movie editions (Director's Cut, Extended, IMAX, etc.) from scene release titles and filenames.
core/firstrun
Package firstrun gives a fresh install working defaults, the way Radarr ships with quality profiles and asks only for a root folder.
Package firstrun gives a fresh install working defaults, the way Radarr ships with quality profiles and asks only for a root folder.
core/health
Package health provides system health checks for Prism.
Package health provides system health checks for Prism.
core/importer
Package importer moves completed downloads into the library directory tree, creates movie_file records, and updates movie status.
Package importer moves completed downloads into the library directory tree, creates movie_file records, and updates movie status.
core/importlist
Package importlist manages import list configurations and syncs movies from external sources (TMDb, Trakt, Plex, etc.) into the library.
Package importlist manages import list configurations and syncs movies from external sources (TMDb, Trakt, Plex, etc.) into the library.
core/indexer
Package indexer manages indexer configurations and orchestrates release searches.
Package indexer manages indexer configurations and orchestrates release searches.
core/library
Package library manages Prism library records and their disk-level stats.
Package library manages Prism library records and their disk-level stats.
core/mediainfo
Package mediainfo provides ffprobe-based video file metadata scanning.
Package mediainfo provides ffprobe-based video file metadata scanning.
core/mediamanagement
Package mediamanagement provides access to global media management settings (movie naming formats, colon replacement, extra file importing, etc.).
Package mediamanagement provides access to global media management settings (movie naming formats, colon replacement, extra file importing, etc.).
core/mediaserver
Package mediaserver manages media server configurations (Plex, Emby, Jellyfin).
Package mediaserver manages media server configurations (Plex, Emby, Jellyfin).
core/movie
Package movie manages movie records in the Prism library.
Package movie manages movie records in the Prism library.
core/notification
Package notification manages notification channel configurations and dispatches test events to verify connectivity.
Package notification manages notification channel configurations and dispatches test events to verify connectivity.
core/pathutil
Package pathutil provides shared path validation for file-accepting endpoints.
Package pathutil provides shared path validation for file-accepting endpoints.
core/provider
Package provider resolves effective third-party API keys at lookup time.
Package provider resolves effective third-party API keys at lookup time.
core/quality
Package quality implements quality parsing and profile comparison for Prism.
Package quality implements quality parsing and profile comparison for Prism.
core/queue
Package queue tracks active downloads and synchronises their status with the download clients.
Package queue tracks active downloads and synchronises their status with the download clients.
core/renamer
Package renamer applies naming format templates to produce filesystem-safe filenames for imported movie files.
Package renamer applies naming format templates to produce filesystem-safe filenames for imported movie files.
core/seedenforcer
Package seedenforcer applies per-indexer seed limits to torrents after import.
Package seedenforcer applies per-indexer seed limits to torrents after import.
core/stats
Package stats provides library statistics and analytics.
Package stats provides library statistics and analytics.
core/tag
Package tag manages the tag system used to link movies with indexers, download clients, and notifications.
Package tag manages the tag system used to link movies with indexers, download clients, and notifications.
core/titlematch
Package titlematch reports whether a release title plausibly belongs to a given movie.
Package titlematch reports whether a release title plausibly belongs to a given movie.
core/watchsync
Package watchsync ingests watch history from media servers and stores it locally for watch-aware library management.
Package watchsync ingests watch history from media servers and stores it locally for watch-aware library management.
db
mediaservers
Package mediaservers wires the event bus to the media server plugin system.
Package mediaservers wires the event bus to the media server plugin system.
notifications
Package notifications wires the event bus to the notification plugin system.
Package notifications wires the event bus to the notification plugin system.
parser
Package parser implements a comprehensive, unified release name parser.
Package parser implements a comprehensive, unified release name parser.
plexsync
Package plexsync provides bidirectional library comparison between Prism and a configured Plex media server.
Package plexsync provides bidirectional library comparison between Prism and a configured Plex media server.
pulse
Package pulse integrates Prism with the Pulse control plane.
Package pulse integrates Prism with the Pulse control plane.
radarrimport
Package radarrimport fetches data from a running Radarr instance and creates matching records in Prism's database using the existing service layer.
Package radarrimport fetches data from a running Radarr instance and creates matching records in Prism's database using the existing service layer.
ratelimit
Package ratelimit provides per-key token-bucket rate limiters for indexer queries.
Package ratelimit provides per-key token-bucket rate limiters for indexer queries.
registry
Package registry holds plugin factories and instantiates plugin instances from stored JSON configuration.
Package registry holds plugin factories and instantiates plugin instances from stored JSON configuration.
safedialer
Package safedialer provides HTTP transports that protect against SSRF attacks by filtering outbound connections to sensitive network addresses.
Package safedialer provides HTTP transports that protect against SSRF attacks by filtering outbound connections to sensitive network addresses.
scheduler
Package scheduler runs recurring background jobs at fixed intervals.
Package scheduler runs recurring background jobs at fixed intervals.
scheduler/jobs
Package jobs provides the built-in scheduler job definitions.
Package jobs provides the built-in scheduler job definitions.
testutil/mock
Package mock provides hand-written mock implementations of Prism's plugin interfaces for use in unit and integration tests.
Package mock provides hand-written mock implementations of Prism's plugin interfaces for use in unit and integration tests.
trakt
Package trakt provides a minimal HTTP client for the Trakt API v2.
Package trakt provides a minimal HTTP client for the Trakt API v2.
updatecheck
Package updatecheck tells a Beacon app whether a newer image of it has been published.
Package updatecheck tells a Beacon app whether a newer image of it has been published.
pkg
plugin
Package plugin defines the public interfaces and value types for Prism's plugin system.
Package plugin defines the public interfaces and value types for Prism's plugin system.
plugins
downloaders/deluge
Package deluge implements the plugin.DownloadClient interface for the Deluge Web API (JSON-RPC over HTTP).
Package deluge implements the plugin.DownloadClient interface for the Deluge Web API (JSON-RPC over HTTP).
downloaders/haul
Package haul implements the plugin.DownloadClient interface for Beacon Haul, the native Beacon torrent download client.
Package haul implements the plugin.DownloadClient interface for Beacon Haul, the native Beacon torrent download client.
downloaders/nzbget
Package nzbget implements the plugin.DownloadClient interface for NZBGet's JSON-RPC API.
Package nzbget implements the plugin.DownloadClient interface for NZBGet's JSON-RPC API.
downloaders/qbittorrent
Package qbittorrent implements the plugin.DownloadClient interface for qBittorrent Web API v2.
Package qbittorrent implements the plugin.DownloadClient interface for qBittorrent Web API v2.
downloaders/sabnzbd
Package sabnzbd implements the plugin.DownloadClient interface for SABnzbd's REST API.
Package sabnzbd implements the plugin.DownloadClient interface for SABnzbd's REST API.
downloaders/transmission
Package transmission implements the plugin.DownloadClient interface for the Transmission RPC API.
Package transmission implements the plugin.DownloadClient interface for the Transmission RPC API.
importlists/plex_watchlist
Package plexwatchlist implements an import list plugin that fetches a user's Plex watchlist from the Plex cloud API (metadata.provider.plex.tv).
Package plexwatchlist implements an import list plugin that fetches a user's Plex watchlist from the Plex cloud API (metadata.provider.plex.tv).
indexers/newznab
Package newznab implements the Newznab indexer plugin for Prism.
Package newznab implements the Newznab indexer plugin for Prism.
indexers/torznab
Package torznab implements the Torznab indexer plugin for Prism.
Package torznab implements the Torznab indexer plugin for Prism.
mediaservers/emby
Package emby implements a Prism media server plugin for Emby.
Package emby implements a Prism media server plugin for Emby.
mediaservers/jellyfin
Package jellyfin implements a Prism media server plugin for Jellyfin.
Package jellyfin implements a Prism media server plugin for Jellyfin.
mediaservers/plex
Package plex implements a Prism media server plugin for Plex.
Package plex implements a Prism media server plugin for Plex.
notifications/command
Package command implements a Prism notification plugin that executes a user-provided script from /config/scripts/ on each event.
Package command implements a Prism notification plugin that executes a user-provided script from /config/scripts/ on each event.
notifications/discord
Package discord implements a Prism notification plugin that sends events as rich embed messages to a Discord channel via a Discord webhook URL.
Package discord implements a Prism notification plugin that sends events as rich embed messages to a Discord channel via a Discord webhook URL.
notifications/email
Package email implements a Prism notification plugin that sends events as plain-text emails via an SMTP server.
Package email implements a Prism notification plugin that sends events as plain-text emails via an SMTP server.
notifications/gotify
Package gotify implements a Prism notification plugin that sends events to a Gotify server via its REST API.
Package gotify implements a Prism notification plugin that sends events to a Gotify server via its REST API.
notifications/ntfy
Package ntfy implements a Prism notification plugin that sends events to an ntfy server (ntfy.sh or self-hosted).
Package ntfy implements a Prism notification plugin that sends events to an ntfy server (ntfy.sh or self-hosted).
notifications/pushover
Package pushover implements a Prism notification plugin that sends events via the Pushover API.
Package pushover implements a Prism notification plugin that sends events via the Pushover API.
notifications/slack
Package slack implements a Prism notification plugin that sends events to a Slack channel via an Incoming Webhook URL.
Package slack implements a Prism notification plugin that sends events to a Slack channel via an Incoming Webhook URL.
notifications/telegram
Package telegram implements a Prism notification plugin that sends events to a Telegram chat via the Bot API.
Package telegram implements a Prism notification plugin that sends events to a Telegram chat via the Bot API.
notifications/webhook
Package webhook implements a Prism notification plugin that sends events as JSON HTTP POST requests to a user-configured URL.
Package webhook implements a Prism notification plugin that sends events as JSON HTTP POST requests to a user-configured URL.
tools
obfuscate command
Command obfuscate emits go-build ldflag fragments that bake a XOR-obfuscated third-party provider key into the binary.
Command obfuscate emits go-build ldflag fragments that bake a XOR-obfuscated third-party provider key into the binary.
Package web serves the embedded Prism web UI.
Package web serves the embedded Prism web UI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL