MANUAL · 14
SUB/WAVE plays from your own library: Navidrome, Jellyfin, Plex, a source plugin, or a demo library while you get started. Pick it on one page, and switching later keeps your tags and likes.
WHERE IS YOUR MUSIC?
Open Admin → Music source (or the first step of the setup wizard) and choose a card:
Everything but direct Navidrome is served by the music router, a small service in the stack (router) that speaks the same API from a source plugin. On a Navidrome station it sits idle. Under Advanced: route Navidrome through the router, or combine libraries you can serve your own Navidrome through the router, starting from the connection the station already has and keeping every track id, or merge two sources into one station. Nothing is de-duplicated, so an album both servers hold appears twice.
SWITCHING
Pick a card, fill in its settings and press Switch to …. SUB/WAVE first tests the connection: a wrong key or a server that does not answer stops it there, with the reason, and the station stays on what it plays now. Then it asks you to confirm, since a switch changes every track id, and the station starts playing from the new library at once.
In the background SUB/WAVE walks the new library and re-links your mood tags, acoustic analysis, likes and blocklist by matching each track’s artist, title, album and length. Its progress shows on the Source tab. A server you set up minutes ago may still be reading its files; SUB/WAVE carries what already matches and finishes the move once that scan ends.
Not every server offers every signal — Plex has no lyrics, a folder of files has no genres. A missing capability never stops the music; the DJ just has fewer discovery signals. The Music source page’s Source channels, Signal path and Service matrix tabs show each source’s health and speed, every request the station makes to it, and what it supports.
PINNING FROM .ENV
The built-in sources accept their settings from the root .env, which locks the field in the admin form:
JELLYFIN_URL=http://host.docker.internal:8096
JELLYFIN_API_KEY=…
PLEX_URL=http://host.docker.internal:32400
PLEX_TOKEN=…docker compose up -d routerPLUGINS
A server SUB/WAVE doesn’t know yet can be added as a source plugin: a folder with a manifest (subwave-source.json, which names the plugin and describes its settings form) and one JavaScript file that answers the router’s questions — find a song, list albums, stream a track. The router does the rest, so a plugin only has to talk to its own backend.
A plugin runs inside the router with network access. It never sees the station’s other settings or keys, but install only plugins you have read and trust.
INSTALL A PLUGIN
Plugins other people have written and shared are listed in the plugins directory, each with what it plugs into, the plugin API it targets and its conformance result. A plugin is code that runs in your station’s router, so read its source before you install it.
On a compose install the CLI does steps 1 and 3 for you. It shows the plugin’s manifest and files, asks before installing, copies it in as root, rescans, and tells you whether the router loaded it, undoing the copy if it didn’t:
subwave source add https://github.com/someone/subwave-emby
subwave source add ./my-plugin
subwave source list
subwave source remove embyBy hand, or on the all-in-one image and Unraid:
1. Copy the plugin’s folder into your station’s plugins folder, as root. The folder belongs to root, so plugin code can never rewrite a plugin.
| Install | Plugins folder |
|---|---|
| Compose (the CLI, raw compose, a clone) | state/router/plugins/, or $STATE_DIR/router/plugins/ if you set it |
| All-in-one image | router/plugins/ in the folder you mount at /var/sub-wave |
| Unraid | router/plugins/ in the Appdata path, e.g. /mnt/user/appdata/subwave/router/plugins/ |
2. Mount any files it reads. A plugin that reads music from the host needs it mounted into the router, read-only: a volumes: line on the compose router service, or an extra path on the all-in-one container (on Unraid, Add another Path, Port, Variable…). The plugin’s README says what it needs.
3. Rescan. In Admin → Music source, open Don’t see your server? and press Rescan plugins. The plugin appears as a card tagged installed, with its settings form. One that fails to load says why there, and the Doctor lists it.
4. Switch. Pick its card, fill in the settings and press Switch to …: the same test and confirmation as any source.
SUB/WAVE ships one example plugin, Music folder, which plays audio files straight from a folder laid out as Artist/Album/01 Title.flac. It lives in the repository’s docs/examples/sources/folder (a CLI install doesn’t include it, so clone or download that folder). On a compose install, copy it in, mount your music and restart the router, then Rescan, choose Music folder and set Folder to /music.
sudo cp -r docs/examples/sources/folder state/router/plugins/
# docker-compose.yml, under the router service's volumes:
# - /path/to/your/music:/music:ro
docker compose up -d routerWRITE A PLUGIN
A plugin implements ten required functions (song, album, artist, genres, album lists, songs by genre, random songs, search, stream and cover art) and any optional ones its backend supports: stars, playlists, lyrics, similar songs, play counts. It returns its backend’s own ids and whatever fields it knows; the router namespaces the ids and fills in the rest. A missing optional function never stops the music, and the Service matrix shows what a source supports.
A conformance kit checks a plugin against everything the station relies on, from stable ids to real audio and range requests:
npx @subwave/source-sdk conformance ./my-source --config url=http://server:8096 --config apiKey=…The full contract, the manifest fields and a walkthrough of the example are in the plugin guide.