Skip to content

API Reference

TypeDoc-generated documentation for all internal modules. Useful if you're contributing to the CLI or building on top of its internals.

Modules

ModuleDescription
api/clientHTTP client for Spotify Web API
api/playerPlayback control endpoints
api/tracksTrack and saved-track endpoints
api/albumsAlbum and saved-album endpoints
api/playlistsPlaylist CRUD and track management
api/searchSearch across Spotify's catalog
api/userUser profile and top items

Auth

ModuleDescription
auth/flowOAuth 2.0 PKCE login flow
auth/token-storeToken persistence and refresh
auth/pkcePKCE challenge/verifier generation
auth/serverLocal OAuth callback server

Schemas

Zod schemas used for Spotify API response validation.

ModuleDescription
schemas/trackTrack objects
schemas/albumAlbum objects
schemas/playerPlayer state and device objects
schemas/playlistPlaylist and playlist-track objects
schemas/searchSearch result objects
schemas/userUser profile objects
schemas/artistArtist objects
schemas/commonShared types (pagination, images)

Utilities

ModuleDescription
errorsStructured error codes and error classes
configCLI configuration and paths
outputJSON output formatting
parseArgument parsing utilities

MIT Licensed. Not affiliated with or endorsed by Spotify AB.