UsenetStreamer is a Stremio addon that bridges a Usenet indexer manager (Prowlarr or NZBHydra) and NZBDav. It hosts no media itself; it simply orchestrates search and streaming through your existing Usenet stack. The addon searches Usenet indexers through the manager, queues NZB downloads in NZBDav, and exposes the resulting media as Stremio streams.
If this project saves you time or money, please consider supporting it: buymeacoffee.com/gaikwadsank.
- ID-aware search plans (IMDb/TMDB/TVDB) with automatic metadata enrichment.
- Direct TVDB-prefixed Stremio IDs are accepted without Cinemeta lookups—requests translate straight into
{TvdbId:...}searches. - Parallel Prowlarr/NZBHydra queries with deduplicated NZB aggregation.
- Direct WebDAV streaming from NZBDav (no local mounts required).
- Configurable via environment variables (see
.env.example). - Fallback failure clip when NZBDav cannot deliver media.
- Optional shared-secret gate so only authorized manifest/stream requests succeed.
- Flags already-downloaded NZBs as ⚡ Instant so you know which streams will start immediately.
- Optional NNTP-backed NZB health triage to surface playable releases first and highlight broken uploads.
-
Copy
.env.exampleto.envand fill in your indexer manager (Prowlarr or NZBHydra), NZBDav credentials, and addon base URL. -
Install dependencies:
npm install
-
Start the addon:
node server.js
The image is published to the GitHub Container Registry. Pull it and run with your environment variables:
docker pull ghcr.io/sanket9225/usenetstreamer:latest
docker run -d \
--name usenetstreamer \
-p 7000:7000 \
-e INDEXER_MANAGER=prowlarr \
-e INDEXER_MANAGER_URL=https://your-prowlarr-host:9696 \
-e INDEXER_MANAGER_API_KEY=your-prowlarr-api-key \
-e INDEXER_MANAGER_INDEXERS=-1 \
-e ADDON_SHARED_SECRET=super-secret-token \
-e NZBDAV_URL=http://localhost:3000 \
-e NZBDAV_API_KEY=your-nzbdav-api-key \
-e NZBDAV_WEBDAV_URL=http://localhost:3000 \
-e NZBDAV_WEBDAV_USER=webdav-username \
-e NZBDAV_WEBDAV_PASS=webdav-password \
-e NZBDAV_CATEGORY=Stremio \
-e ADDON_BASE_URL=https://myusenet.duckdns.org \
ghcr.io/sanket9225/usenetstreamer:latestIf you prefer to keep secrets in a file, use --env-file /path/to/usenetstreamer.env instead of specifying -e flags.
Need a custom build? Clone this repo, adjust the code, then run
docker build -t usenetstreamer .to create your own image.
Using NZBHydra instead? Set INDEXER_MANAGER=nzbhydra, point INDEXER_MANAGER_URL at your Hydra instance, and provide comma-separated indexer names via INDEXER_MANAGER_INDEXERS if you want to limit the search scope. Leave INDEXER_MANAGER_INDEXERS blank to let Hydra decide.
When ADDON_SHARED_SECRET is set, every request must include the token as the first path segment (e.g. https://your-domain/super-secret-token/manifest.json). Stream URLs emitted by the addon automatically include the same /super-secret-token/ prefix.
INDEXER_MANAGER,INDEXER_MANAGER_URL,INDEXER_MANAGER_API_KEY,INDEXER_MANAGER_STRICT_ID_MATCH,INDEXER_MANAGER_INDEXERSNZBDAV_URL,NZBDAV_API_KEY,NZBDAV_WEBDAV_URL,NZBDAV_WEBDAV_USER,NZBDAV_WEBDAV_PASSADDON_BASE_URL,ADDON_SHARED_SECRETNZBDAV_CATEGORYNZBDAV_HISTORY_FETCH_LIMIT,NZBDAV_CACHE_TTL_MINUTESNZB_TRIAGE_*
INDEXER_MANAGER defaults to prowlarr. Set it to nzbhydra to target an NZBHydra instance.
INDEXER_MANAGER_STRICT_ID_MATCH defaults to false. Set it to true if you want strictly ID-based searches (IMDb/TVDB/TMDB only). This usually yields faster, more precise matches but many indexers do not support ID queries, so you will receive fewer total results.
INDEXER_MANAGER_INDEXERS accepts a comma-separated list. For Prowlarr, use indexer IDs (e.g. 1,3,9; -1 means “all Usenet indexers”). For NZBHydra, provide the indexer names as displayed in its UI. The addon logs the effective value on each request.
INDEXER_MANAGER_CACHE_MINUTES (optional) overrides the default NZBHydra cache duration (10 minutes). Leave unset to keep the default. Prowlarr ignores this value.
ADDON_SHARED_SECRET locks access behind a shared token. Anyone visiting the manifest or stream endpoints must prefix the URL with /<your-secret>/ (e.g. /super-secret-token/manifest.json). Stremio supports this out of the box—just add the manifest URL with the token included.
NZBDAV_CATEGORY optionally overrides the target NZBDav categories. When set (e.g. Stremio), movie jobs are queued to Stremio_MOVIE, series to Stremio_TV, and everything else to Stremio_DEFAULT. Leave unset to keep the per-type categories (NZBDAV_CATEGORY_MOVIES, NZBDAV_CATEGORY_SERIES, etc.).
NZBDAV_HISTORY_FETCH_LIMIT controls how many completed NZB history entries we scan when looking for instant playback matches (default 400, capped at 500). NZBDAV_CACHE_TTL_MINUTES controls how long stream metadata stays cached in memory (default 1440 minutes = 24 hours). Set NZBDAV_CACHE_TTL_MINUTES=0 to disable expiration entirely if you want previously mounted NZBs to remain marked as ⚡ Instant until the process restarts.
NZB_TRIAGE_* toggles the optional NNTP-backed health check. Enable it with NZB_TRIAGE_ENABLED=true, provide NNTP credentials (NZB_TRIAGE_NNTP_HOST, NZB_TRIAGE_NNTP_USER, etc.), and fine-tune the time budget, candidate count, download concurrency, and preferred release size. When enabled, the addon downloads a small batch of candidate NZBs, samples the archive headers over NNTP, and moves verified releases to the top of the stream list while flagging broken uploads.
See .env.example for the authoritative list.
ADDON_BASE_URL must be a public HTTPS domain that points to your addon deployment. Stremio refuses insecure origins, so you must front the addon with TLS before adding it to the catalog. DuckDNS + Let's Encrypt is an easy path, but any domain/CA combo works.
-
Grab a DuckDNS domain (free):
- Sign in at https://www.duckdns.org with GitHub/Google/etc.
- Choose a subdomain (e.g.
myusenet.duckdns.org) and note the token DuckDNS gives you. - Run their update script (cron/systemd/timer) so the domain always resolves to your server’s IP.
-
Serve the addon over HTTPS (non-negotiable):
- Place Nginx, Caddy, or Traefik in front of the Node server.
- Issue a certificate:
- Let’s Encrypt with certbot, lego, or Traefik’s built-in ACME integration for a trusted cert.
- DuckDNS also provides an ACME helper if you prefer wildcard certificates.
- Terminate TLS at the proxy and forward requests from
https://<your-domain>tohttp://127.0.0.1:7000(or your chosen port). - Expose
/manifest.json,/stream/*,/nzb/*, and/assets/*. Stremio will reject plain HTTP URLs.
-
Update
.env: setADDON_BASE_URL=https://myusenet.duckdns.organd restart the addon so manifests reference the secure URL. Stremio will only load the addon whenADDON_BASE_URLpoints to a valid HTTPS domain.
Tips:
- Keep port 7000 (or whichever you use) firewalled; let the reverse proxy handle public traffic.
- Renew certificates automatically (cron/systemd timer or your proxy’s auto-renew feature).
- If you deploy behind Cloudflare or another CDN, ensure WebDAV/body sizes are allowed and HTTPS certificates stay valid.
- Finally, add
https://myusenet.duckdns.org/super-secret-token/manifest.json(replace with your domain + secret) to Stremio’s addon catalog. Use straight HTTPS—the addon will not show up over HTTP.