Knowledge Base updated: 2026-11-17
Spotifast knowledge base
Spotifast is a Rust desktop Spotify client. Its runtime owns process startup, application state, native-window lifecycle, Spotify connectivity, and local configuration.
The app coordinates Spotify API and playback services with a stateful desktop UI. Player state, backend commands, settings, and UI views form the principal user-facing state boundary.
Appearance and media presentation are extensible through skins, Winamp-compatible UI components, and a separate Milkdrop visualization runtime.
flowchart TD
Entry[Executable entrypoints] --> Runtime[Application runtime]
Runtime --> AppState[App state and backend]
AppState --> Settings[Settings and local state]
AppState --> API[Spotify API client]
API --> Spotify[Spotify services]
AppState --> Player[Player and audio output]
Player --> Devices[Local and network devices]
AppState --> UI[Desktop UI]
UI --> Library[Library and discovery views]
UI --> Player
UI --> Platform[Platform window controls]
UI --> Skins[Skin and Winamp system]
Skins --> Milkdrop[Milkdrop runtime]
Glossary
- Spotifast: the desktop application and Rust workspace documented here.
- Backend: the application-facing layer that coordinates service work and user-visible state.
- Player: the playback subsystem that tracks playback state and drives audio output.
- Skin: a configurable themed UI package, including Winamp-compatible assets and layouts.
- Milkdrop: the visualization engine and its host/child-process rendering runtime.
Codebase-wide invariants
- Application lifecycle ownership remains centralized at the crate runtime boundary (src/lib.rs), including startup and shutdown coordination.
- User-facing application state is coordinated through the app, backend, and settings layers (src/app.rs, src/backend.rs, src/settings.rs) rather than isolated UI state alone.
- Spotify service transport remains behind the API client boundary (src/…/client.rs and
src/api/**). - Playback commands and output state flow through the player subsystem (src/player.rs) and are surfaced by UI controls rather than directly by arbitrary views.
- Shared UI behavior belongs in the UI module and reusable widget/navigation patterns (
src/ui/**, especially src/…/widgets.rs).
Routing table
- src/lib.rs -> docs/application-runtime.md
- src/main.rs -> docs/application-entrypoints.md
tests/**-> docs/application-entrypoints.md- src/app.rs -> docs/application-state-orchestration.md
- src/backend.rs -> docs/application-state-orchestration.md
src/models/**-> docs/application-state-orchestration.md- src/settings.rs -> docs/application-state-orchestration.md
- src/power.rs -> docs/application-state-orchestration.md
src/api/auth/**-> docs/authentication-and-credentials.mdsrc/credentials/**-> docs/authentication-and-credentials.md- src/…/client.rs -> docs/spotify-service-integration.md
src/api/**-> docs/spotify-api-client-and-gateway.md- src/player.rs -> docs/music-playback-and-devices.md
src/devices/**-> docs/music-playback-and-devices.mdsrc/player/**-> docs/player-control-and-audio-output.mdsrc/audio/**-> docs/player-control-and-audio-output.mdsrc/cast/**-> docs/casting-and-network-devices.mdsrc/sonos/**-> docs/casting-and-network-devices.mdsrc/zeroconf/**-> docs/casting-and-network-devices.mdsrc/ui/library/**-> docs/content-discovery-and-library.mdsrc/ui/search/**-> docs/library-search-and-releases.mdsrc/ui/library/**-> docs/library-search-and-releases.mdsrc/ui/radio/**-> docs/radio-and-recommendations.mdsrc/ui/recommendations/**-> docs/radio-and-recommendations.mdsrc/ui/**-> docs/desktop-ui-and-interaction.md- src/…/home.rs -> docs/ui-navigation-and-shared-components.md
- src/…/sidebar.rs -> docs/ui-navigation-and-shared-components.md
- src/…/topbar.rs -> docs/ui-navigation-and-shared-components.md
- src/…/widgets.rs -> docs/ui-navigation-and-shared-components.md
- src/…/login.rs -> docs/ui-navigation-and-shared-components.md
- src/…/settings.rs -> docs/ui-navigation-and-shared-components.md
src/platform/**-> docs/platform-window-controls.mdsrc/window/**-> docs/platform-window-controls.mdsrc/ui/skins/**-> docs/skins-and-visualizations.mdsrc/ui/winamp/**-> docs/skin-engine-and-winamp-compatibility.mdsrc/skin/**-> docs/skin-engine-and-winamp-compatibility.mdsrc/milkdrop/**-> docs/milkdrop-visualization-runtime.md