How simohypers/limusic works
Limusic is a native YouTube Music desktop client. The main workflow is user browse/search and selection in the Svelte UI, backend stream resolution through the YouTube API, then playback through libmpv; the app also persists library-related state and exposes lyrics, local playback, and listening-room features. The README documents several capabilities whose detailed implementations were not sampled, so those appear as subsystem nodes with only documented or clearly owned links.
Main entry points: commands.rs Command boundary · orchestrator.rs Stream resolver · state.rs Playback state · api.ts Tauri API client
Components 22
Desktop interface
- Svelte app
ui/src/routes/+layout.svelte - Search and browse
ui/src/lib/browse.ts - Player controls
ui/src/lib/player.svelte.ts - Tauri API client
ui/src/lib/api.ts
App backend
- Command boundary
src-tauri/src/commands.rs - Playback state
src-tauri/src/state.rs - App database
src-tauri/src/db.rs - Local music
src-tauri/src/local.rs
Playback pipeline
- Stream resolver
src-tauri/src/orchestrator.rs - Stream deciphering
src-tauri/src/cipher/mod.rs - PoToken generator
src-tauri/src/potoken/mod.rs - Audio engine
crates/player/src/lib.rs
Music services
- YouTube API client
crates/innertube/src/lib.rs - Lyrics sources
src-tauri/src/lyrics.rs - Listen Together
src-tauri/src/listentogether/mod.rs - Room relay
crates/sync-server/src/main.rs
Other components
- Listener
- YouTube Music
- libmpv
- Lyrics providers
- Audio files
- Room participants
Connections 21
- Listener → Svelte app: operates
- Svelte app → Search and browse: searches
- Search and browse → Tauri API client: requests results
- Player controls → Tauri API client: sends controls
- Tauri API client → Command boundary: invokes
- Command boundary → Stream resolver: resolves streams
- Stream resolver → YouTube API client: requests player data
- YouTube API client → YouTube Music: calls API
- Stream resolver → Stream deciphering: transforms stream URL
- Stream resolver → PoToken generator: requests token
- Command boundary → Playback state: controls playback
- Playback state → Stream resolver: resolves current track
- Playback state → Audio engine: loads stream
- Audio engine → libmpv: plays audio
- Command boundary → App database: reads and writes
- Command boundary → Lyrics sources: fetches lyrics
- Lyrics sources → Lyrics providers: queries sources
- Command boundary → Local music: manages local tracks
- Local music → Audio files: reads audio
- Listen Together → Room relay: synchronizes playback
- Room participants → Room relay: joins room