How echomusicapp/desktop works
Echo Music Desktop is a native YouTube Music client. Users navigate Home, Explore, Library, podcasts, and downloads or search for music; they can then play tracks, manage the queue, and use playback features such as lyrics, EQ, and full-screen artwork. The app also supports offline listening, history and stats, desktop media surfaces, and optional integrations. The excerpts show route loaders calling YouTube client methods and identify several internal services, but do not expose all runtime wiring; README-documented capability links are cited as such.
Main entry points: player.go Audio player · playback.go Playback controls · client.go YouTube Music client · main.go Desktop entry
Components 21
Desktop experience
- Desktop entry
main.go - App coordinator
internal/app/app.go - Navigation routes
internal/app/routes.go
Music discovery
- Search
internal/app/search.go - YouTube Music client
internal/youtube/client.go - Catalog browsing
internal/youtube/browse.go - Downloads library
internal/offline/offline.go
Playback and media
- Playback controls
internal/app/playback.go - Audio player
internal/player/player.go - Stream resolution
internal/ytdlp/ytdlp.go - Audio cache
internal/audio/cache.go - Artwork cache
internal/artwork/artwork.go - Lyrics lookup
internal/danklyrics/danklyrics.go
Local state and integrations
- Preferences
internal/settings/settings.go - Listening history
internal/history/history.go - Queue state
internal/playstate/playstate.go - Browser sign-in
internal/cookies/discover.go - Local MCP control
internal/mcpcontrol/control.go - Discord presence
internal/discordrpc/rpc.go - System media surfaces
internal/systemmedia/media.go
Other components
- Listener
Connections 20
- Listener → Desktop entry: launches
main.go - Desktop entry → App coordinator: starts
main.go - Listener → Navigation routes: navigates
README.md - Navigation routes → YouTube Music client: loads catalog
internal/app/routes.go - Listener → Search: searches
README.md - Search → YouTube Music client: queries
internal/app/search.go - Listener → Playback controls: starts playback
README.md - Playback controls → Audio player: controls
- Audio player → Stream resolution: resolves streams
- Audio player → Audio cache: uses cache
- Listener → Downloads library: downloads tracks
README.md - Listener → Artwork cache: views artwork
README.md - Listener → Lyrics lookup: views lyrics
README.md - Listener → Preferences: configures
README.md - Listener → Listening history: reviews stats
README.md - Playback controls → Queue state: persists queue
- YouTube Music client → Browser sign-in: uses sign-in
- Listener → Local MCP control: controls locally
README.md - Audio player → Discord presence: reports playback
- Audio player → System media surfaces: updates media