r/madeinrust • u/azj4t • 1h ago
AI Assisted nori: an open-source music player sharing one Rust core across Android, desktop (Slint), terminal (ratatui), and iPod touch
GitHub: https://github.com/norifm/nori | Website: https://norifm.com
We just shipped nori 1.0 (AGPL-3.0), a music player for Navidrome/Subsonic servers — plus YouTube Music and SoundCloud via plugins — built around one shared Rust workspace.
Every playback, queue, DSP, lyrics, download, and sync decision lives once in Rust. Each client is just a thin UI shell over it:
- Desktop (Linux, macOS, Windows): Slint +
cpal+ MPRIS - Terminal:
ratatui - Android / Android TV: Kotlin/Compose over UniFFI, with raw JNI (
@CriticalNative/@FastNativeon direct buffers) for the hot audio path - iPod touch (iOS 12): Swift over a static C ABI crate (mostly as an excuse to buy one)
Interesting Rust parts
- Zero-alloc burst audio pipeline: Decodes ahead into a deep buffer so the CPU sleeps between refills, with
no_alloctests guarding the audio path and hardware offload on Android. - Deterministic virtual-clock testing: The player and engine run end-to-end tests against a virtual clock (
nori-time), so playback, AutoMix transitions, and buffering are tested withoutthread::sleep. - Pure-Rust DSP & AutoMix: Includes a pure-Rust port of Signalsmith Stretch (checked against the C++ reference in tests) for beat-matched transitions, alongside a parametric EQ, compressor, and ~6,000 AutoEQ curves.
- Wasmtime plugin host: Extra music providers (YouTube Music, SoundCloud), custom audio stages, and headphone ANC/battery controls run as sandboxed WebAssembly plugins defined with WIT (
plugin-sdk). - LAN / relay handoff & Jams: Hand playback between devices or host a Jam via link/QR code over a shared wire protocol, plus SQLite/FTS5 offline indexing and synced lyrics across 11 services.
Downloads for Android (APK), Linux (AppImage, Flatpak, .deb), macOS (.dmg), Windows, Terminal, and iPod touch (.ipa) are on GitHub Releases and norifm.com. Happy to dig into any part of the Rust architecture in the comments.


