YourSpotify polls the Spotify API and serves a web dashboard where you explore personal listening history and stats.
Overview
YourSpotify is a self-hosted stack for tracking Spotify playback. A backend server periodically calls the Spotify API to record what you listen to, and a React web application presents charts and statistics drawn from that data.
Setup requires creating a Spotify developer application and supplying its public and secret keys plus endpoint URLs for the client and API. Docker Compose is the documented hosting path; a MongoDB instance stores listening events. Environment variables control timezone, CORS, import cache size, logging, and optional Prometheus auth.
By default only recent history is captured after registration, but you can import older listening data from Spotify privacy exports—either standard account data or the extended streaming history archive. Imports can be retried from settings if they fail, and admins can disable new signups.
Users connect through Spotify OAuth; per-user timezone overrides are available in settings. The project positions itself as a private alternative to relying on Spotify’s own stats pages while keeping data on infrastructure you control.
Key features
- Spotify API polling backend
- Web statistics dashboard
- Docker Compose deployment
- MongoDB data store
- Historical import from privacy exports
- Per-user timezone settings
- Admin registration controls
- Spotify reconnect from settings
Use cases
- Personal listening habit analytics
- Private Spotify history archive
- Homelab music tracking dashboard
- Importing years of streaming history