How instazdll/waveflow-server works
WaveFlow is a self-hosted music server: it scans local music into a tenant-aware SQLite catalogue, then serves playback and library features through the native API, OpenSubsonic, and an embedded web player. The graph keeps scanning, domain services, API façades, and browser client distinct, while showing major documented capabilities such as uploads, sync, scrobbling, and metadata enrichment. Some feature links are documented by the README rather than sampled implementation; those edges cite it. Unsampled details are not inferred.
Main entry points: api/mod.rs Native API · main.tsx Web application routes · services/mod.rs Domain services · database.rs SQLite database
Components 29
Server Runtime
- SQLite database
src/database.rs - Server startup
src/main.rs - Configuration
src/config.rs - Authentication and security
src/authentication.rs
Music Catalogue
- Library scanner
src/scanner.rs - Catalogue repository
src/catalog.rs - Tags and lyrics
src/tags.rs - Metadata enrichment
src/enrichment.rs
Domain Services
- Domain services
src/services/mod.rs - Playback and transcoding
src/media.rs - Scrobble queue
src/services/scrobbling.rs - Scrobble adapters
src/scrobblers/mod.rs
Client Interfaces
- Native API
src/api/mod.rs - OpenSubsonic API
src/subsonic/mod.rs - User data sync
src/sync.rs - OAuth and PKCE
src/oauth.rs
Web Player
- Web application routes
webapp/src/main.tsx - Web API client
webapp/src/api/client.ts - Music player
webapp/src/player/player.tsx - Localization
webapp/src/state/i18n.tsx - Library selection
webapp/src/state/library-scope.tsx
Other components
- Music owner
- Subsonic client
- Desktop client
- Browser user
- Music files
- FFmpeg
- Metadata providers
- Scrobble destinations
Connections 29
- Music owner → Music files: provides library
README.md - Server startup → Configuration: loads settings
README.md - Server startup → SQLite database: serves with
README.md - Library scanner → Music files: scans files
README.md - Library scanner → Catalogue repository: indexes tracks
src/scanner.rs - Library scanner → Tags and lyrics: reads tags
src/scanner.rs - Catalogue repository → SQLite database: stores catalogue
src/catalog.rs - Metadata enrichment → Metadata providers: queries providers
- Domain services → Catalogue repository: serves catalogue
- Domain services → SQLite database: reads and writes
src/services/mod.rs - Playback and transcoding → FFmpeg: transcodes with
README.md - Playback and transcoding → SQLite database: reads track data
- Scrobble queue → Scrobble adapters: dispatches jobs
src/scrobblers/mod.rs - Scrobble adapters → Scrobble destinations: sends scrobbles
README.md - Native API → Authentication and security: authenticates requests
src/api/auth.rs - Native API → Domain services: routes operations
src/api/mod.rs - OpenSubsonic API → Domain services: uses shared services
- OpenSubsonic API → Playback and transcoding: serves streams
src/subsonic/mod.rs - Native API → User data sync: supports sync
README.md - Native API → OAuth and PKCE: handles authorization
src/api/oauth.rs - Desktop client → Native API: calls API
README.md - Subsonic client → OpenSubsonic API: sends requests
README.md - Browser user → Web application routes: uses player
README.md - Web application routes → Web API client: calls resources
- Web API client → Native API: calls endpoints
webapp/src/api/client.ts - Web application routes → Music player: hosts player
webapp/src/main.tsx - Web application routes → Localization: provides translations
webapp/src/main.tsx - Web application routes → Library selection: selects library
webapp/src/state/library-scope.tsx - Music player → Web API client: requests playback
webapp/src/player/player.tsx