Systems & Audiov1.4.2

Meduza Music

Ultra-low memory, zero-telemetry native YouTube Music client engineered in Rust & Kotlin Multiplatform.

RustKotlinCompose MultiplatformSQLiteTokio
Meduza Music
Interactive System Preview
Rodio Audio Pipeline
Native 48kHz PCM • 32MB RAM
8.4ms

Architecture

Meduza splits responsibilities between a headless native Rust audio daemon (built with Rodio, Symphonia decoders, and Tokio async runtime) and an ultra-light Kotlin Compose Multiplatform GUI. Inter-process communication operates via zero-copy shared memory and fast binary protocols, ensuring 120 FPS buttery UI render loops without ever interrupting audio decoding threads.

Key Decisions

01Native Rodio / Symphonia Engine vs Web Audio

Bypassed standard web/CEF audio pipelines in favor of direct ALSA, PipeWire, and CoreAudio drivers through Rust.

Impact: Reduced end-to-end audio buffer latency to 8.4ms with zero frame drops during heavy CPU load.

02Zero-Copy Memory-Mapped Audio Cache

Cached decoded audio chunks directly on NVMe/SSD using memory-mapped files (`memmap2`) instead of SQLite blobs.

Impact: Instantaneous track scrubbing and seeking without memory reallocation spikes.

03Zero-Telemetry Architecture

All YouTube metadata queries are proxied and cleansed locally; zero outbound analytics or fingerprinting.

Impact: Guaranteed user privacy and completely offline metadata playback capabilities.

Benchmarks

MetricMeduza MusicStandard / Competitor
Idle Memory Usage32 MB492 MB (Spotify Desktop (Electron))
Cold Boot Time142 ms2,150 ms (YouTube Music Web App)
Audio Decode CPU Cost0.8%4.6% (Electron Audio Pipeline)

Installation & Setup

cargo install meduza-music
# or on macOS via Homebrew:
brew tap akilaisadev/tap
brew install meduza