- Rust 69.6%
- TypeScript 19.5%
- Svelte 4.9%
- Shell 4.3%
- Python 0.5%
- Other 1.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
`-map 0🅰️0` with an unlabelled `-filter_complex` graph fails in
ffmpeg 7 ("Cannot find a matching stream for unlabeled input pad"),
so no pair was ingested on Debian 13 and CI's ingest tests timed out.
The graph names its input itself now; ffmpeg 6.1 and 7.1 accept that
and measure the same values.
The server's tests pass with ffmpeg 7.1.5 and flac 1.5.0 as well; the
docs name both version lines.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
||
| .cargo | ||
| .forgejo/workflows | ||
| assets | ||
| crates | ||
| deploy | ||
| docs | ||
| frontend | ||
| scripts | ||
| .editorconfig | ||
| .flake8 | ||
| .gitattributes | ||
| .gitignore | ||
| .isort.cfg | ||
| .nvmrc | ||
| .pylintrc | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| clippy.toml | ||
| deny.toml | ||
| Justfile | ||
| LICENSE | ||
| openapi.json | ||
| README.md | ||
| rust-toolchain.toml | ||

Scoutify
Self-hosted music streaming: one static Rust binary on your Linux server, one installable web app for desktop and mobile.
Drop a <name>.wav + <name>.mp3 pair into the library directory and, within a
minute, the track is playable in the app with its title, artist, year, genre,
cover and lyrics taken from the MP3's ID3v2 tag. The WAV master is encoded once
into streaming renditions (Opus in WebM, FLAC) and offered for download as WAV,
FLAC, Opus or the original MP3.
Features
- Home / catalogue — every track, searchable and sortable, with cover art.
- Player — persistent playback with lock-screen controls, seeking, quality selection (data saver / high / lossless), loudness-aware volume.
- Metadata on demand — cover, artist, year, genre and lyrics are each toggleable; lyrics are hidden by default and highlighted in sync when timing data exists (ID3 SYLT, LRC, sidecar files, or an owner-made sync).
- Profiles without registration — an optional profile is identified by a random access key; no e-mail, no password. Save the key, log in on any device, keep and share playlists.
- Downloads — WAV (uncompressed), FLAC (lossless), Opus (small, tagged, with cover) and the original MP3, all resumable.
How it is built
| Part | Choice |
|---|---|
| Backend | Rust 1.96, axum, tokio, sqlx (SQLite, WAL), lofty (ID3v2), blake3 |
| Frontend | SvelteKit 3 / Svelte 5 static SPA, TypeScript 6, @vite-pwa/sveltekit |
| Media | ffmpeg/ffprobe 6.1 or 7.1 (libopus), flac 1.4 or 1.5 — invoked as child processes; opus-tools optional |
| Serving | one static musl binary embedding the SPA, behind nginx for TLS |
| Storage | /srv/music (your masters, read-only) and /var/lib/scoutify (database + content-addressed objects) |
The full decision record, including the audio format matrix, the access-key identity design, the data model and the HTTP API, is in docs/ARCHITECTURE.md. The phased plan with exit criteria is in docs/ROADMAP.md. What works differently on iPhone and iPad is in docs/ios-limitations.md.
Status
Pre-alpha. Phase 1 (vertical slice) is code complete: a WAV + MP3 pair copied
into the library is scanned, tagged, encoded to Opus/WebM and playable in the
web app within a minute; the catalogue and media APIs, the player bar and the
probe/status/retry commands exist; the full quality gate and the
Playwright suite pass. Still open before Phase 2: the real-device matrix in
docs/compat.md and a corpus report over the owner's library
(see docs/ROADMAP.md). Phase 2 has started: new tracks also get
the data-saver Opus stream, FLAC, the tagged Ogg Opus object, measured
loudness and waveform peaks at ingest, and every track can be downloaded as
WAV, FLAC, Opus or MP3 through the API (the download dialog in the app came
with Phase 3); lyrics are extracted from the tag, timed when it carries LRC
text or a SYLT frame, and served with the waveform and the genre list (the
lyrics panel comes with Phase 3). Phase 3 has started with the home screen
(search, sort order and genre filter over the catalogue, in the browser) and
with shuffle, repeat, the quality setting (data saver, high, lossless),
arrow-key shortcuts, the waveform scrubber, loudness normalisation
(turning loud tracks down, never up) and a now-playing sheet with the tracks
that come up and "play next" in the player; the sheet has switches for cover,
artist, year, genre and lyrics, and shows the lyrics as plain text or, when
they carry timing, line by line in sync with tap-to-seek, follow and a
timing nudge; every track can be downloaded from the list and from the sheet
(a dialog with the formats and their sizes); a banner offers the installation
once a second track has started, and a toast announces a new version without
ever reloading on its own. The browser tests run on Chromium,
Firefox and WebKit plus two phone profiles, and Lighthouse gives the home
screen a mobile performance score of 95 (scripts/lighthouse.sh). Phase 4
has started on the server: a profile can be registered, logged in with its
access key, given a new key, renamed, deleted and logged out device by
device through the API, and it can keep playlists there and share them by a
link or in public (the screens in the app follow).
Development
just verify-toolchain # rustup, musl-tools, Node 24 (nvm), pnpm, ffmpeg (libopus)/flac/sqlite3
just build && just run # backend on http://127.0.0.1:8080 serving testdata/library
just dev # frontend with hot reload on http://localhost:5173
just test && just e2e # unit/integration tests, then Playwright against the real binary
just qa # the full gate (scripts/qa.sh): what CI and the pre-commit rule run
just lists every recipe. Configuration is environment variables only; the
defaults just run uses are in the Justfile, the full list in
deploy/scoutify.env.example.
Requirements
- Server: Linux with systemd (Rocky/Alma/RHEL 9 or Debian 12/Ubuntu 24.04 are
documented in docs/runbook.md),
ffmpegwithlibopus,flac,sqlite3,zstd, nginx for TLS;opus-toolsoptional. - Development: Rust 1.96 with the
x86_64-unknown-linux-musltarget andmusl-tools, Node 24 LTS (nvm), pnpm 10,just, the same media tools as the server.
Contributing
Read CLAUDE.md for the quality gate: every commit must pass
scripts/qa.sh (zero warnings from cargo clippy with pedantic and nursery
lints, eslint --max-warnings=0, svelte-check, shellcheck) plus a code
review and a security audit, and must update CHANGELOG.md.
Licence
MIT, see LICENSE.