How avncharlie/spotify3ds works
Spotify3DS is a Nintendo 3DS Spotify remote, with a companion desktop setup app. The main workflow is account setup, then 3DS input through the player/library/lyrics screens, background Spotify and LRCLIB work, and updated displays. The graph preserves the README’s library browsing, search, artwork, synchronized lyrics, and volume features. Edges follow explicit README statements or the shown import/reference evidence; unsampled implementation details are not assumed.
Main entry points: worker.c Worker snapshots · main.c App loop · main.go Setup wizard · http.c HTTP client
Components 27
Account setup
- Setup wizard
cmd/spotify3ds-setup/main.go - Setup OAuth
internal/setupoauth/oauth.go - QR generation
internal/setupqr/setupqr.go
3DS interface
- App loop
source/main.c - Setup QR scan
source/setup/setup_scanner.c - Credential parser
source/setup/setup_qr.c - Player screen
source/ui/screen_player.c - Library screen
source/ui/screen_list.c - Track browsing
source/ui/screen_tracks.c - Lyrics screen
source/ui/screen_lyrics.c - Search popover
source/ui/search_popover.c
Background work
- Worker snapshots
source/worker.c
Spotify services
- Spotify auth
source/spotify/auth.c - Playback control
source/spotify/player.c - Library data
source/spotify/recents.c - Track search
source/spotify/tracks_search.c - Search index
source/spotify/searchindex.c - Artwork retrieval
source/spotify/art.c - Artwork cache
source/spotify/artcache.c - Lyrics retrieval
source/spotify/lyrics.c
Network transport
- HTTP client
source/net/http.c - TLS connection
source/net/tls.c - Network runtime
source/net/net.c
Other components
- 3DS user
- Spotify Web API
- LRCLIB API
- 3DS SD card
Connections 32
- 3DS user → Setup wizard: configures account
- Setup wizard → Setup OAuth: authorizes
cmd/spotify3ds-setup/main.go - Setup wizard → QR generation: creates setup QR
cmd/spotify3ds-setup/main.go - Setup OAuth → QR generation: passes credentials
internal/setupoauth/oauth.go - 3DS user → App loop: uses remote
- App loop → Setup QR scan: opens setup scan
source/main.c - Setup QR scan → Credential parser: parses QR payload
- Credential parser → 3DS SD card: installs credentials
- App loop → Worker snapshots: starts background work
source/main.c - App loop → Player screen: shows player
- App loop → Library screen: shows library
- App loop → Track browsing: shows tracks
- App loop → Lyrics screen: shows lyrics
- Player screen → Worker snapshots: requests playback
- Library screen → Worker snapshots: requests collections
- Track browsing → Worker snapshots: requests tracks
- Lyrics screen → Worker snapshots: requests lyrics
- Search popover → Worker snapshots: supports library search
- Worker snapshots → Spotify auth: uses credentials
source/worker.c - Worker snapshots → Playback control: coordinates playback
- Worker snapshots → Library data: loads library data
source/worker.c - Worker snapshots → Track search: searches tracks
- Worker snapshots → Search index: builds cached corpus
source/worker.c - Worker snapshots → Artwork retrieval: loads artwork
source/worker.c - Worker snapshots → Artwork cache: uses artwork cache
source/worker.c - Worker snapshots → Lyrics retrieval: fetches lyrics
source/worker.c - Spotify auth → HTTP client: sends API requests
source/spotify/auth.c - HTTP client → TLS connection: exchanges encrypted data
source/net/http.c - TLS connection → Network runtime: uses network runtime
source/net/tls.c - HTTP client → Spotify Web API: calls API
- Lyrics retrieval → LRCLIB API: queries lyrics
- Worker snapshots → 3DS SD card: persists search cache
source/worker.c