Haiku
A native multi-source desktop music player built with Native Shell (NSH) in TypeScript and Rust, featuring a Symphonia streaming engine, synced word-by-word lyrics, Material You dynamic artwork palettes, CRDT playlists, and an isolated QuickJS plugin runtime.
Haiku
Haiku is a native, multi-source desktop music player built with Native Shell (NSH). It uses a single-process hybrid architecture: screens and navigation are authored in TypeScript / TSX, while audio decoding, playback orchestration, local library management, CRDT storage, and plugin execution run in-process in Rust.

Highlights
- Discover and Command Palette: Switch seamlessly across multiple music sources, browse recommendations and categories, organize aggregated and plugin-backed playlists in the sidebar, and jump to tracks or actions through the global search and command palette.
- Native Rust Audio Engine: Streams and decodes audio on the fly with Symphonia and rodio, backed by bounded memory and disk prefix caching, gapless track transitions, a multi-band equalizer, loudness normalization, and a sleep timer.
- Rich Lyrics Experience: Parses LRC, KRC, YRC, and TTML lyrics with word-by-word karaoke highlighting in the Now Playing view, floating desktop lyrics overlays, macOS menu bar lyrics, multi-source online lyric matching, and local AI word-level lyric generation.
- Dynamic Artwork Styling: Automatically extracts Material You palettes from album artwork to theme the immersive Now Playing view and tint playlist headers with decorative character textures.
- Local Library and Cross-Device Sync: Scans local music folders with audio tag reading, writing, and metadata scraping; manages playlists and favorites on Loro CRDT documents; supports GitHub Gist synchronization, batch offline downloads, and portable backup and restore archives.
- Isolated TypeScript Plugin Runtime: Runs each music source in its own QuickJS runtime with declarative authentication, cursor pagination, background tasks, and a built-in developer inspector. Includes built-in plugins for Subsonic / OpenSubsonic servers (such as Navidrome and Gonic) and fnOS music libraries.
- Native Desktop Integration: Pairs a frosted-glass bottom playback bar, system media center controls, media keys, menu bar lyrics, and global shortcuts on macOS with cross-platform desktop lyrics overlays on Windows and Linux.

Architecture
Haiku keeps all domain state and high-frequency rendering on the Rust side of the NSH bridge. Playback clocks, seek bars, virtualized track lists, and word-by-word karaoke lines subscribe directly to Rust signals without crossing the JavaScript boundary on every frame, keeping scrolling and playback responsive even across large libraries.

Learn More
Visit the Haiku GitHub repository to explore the source code, architecture documentation, and plugin SDK.