A self-hosted dashboard for your entire Spotify listening history: top tracks, artists and albums for any date range, a Wrapped-style Rewind for every year, forgotten favorites, and one-click playlists. Everything stays on your machine in SQLite.
| Insights | Rewind |
|---|---|
![]() |
![]() |
| Artist pages | Rediscover |
![]() |
![]() |
Just want to look around? Run bun install && bun run demo to open it with generated data. No Spotify account needed.
You need Bun 1.4+ and a Spotify Premium account (Spotify requires Premium for Dev Mode apps).
Spotify's API only returns your last 50 plays, so your full history comes from Spotify's privacy export.
- Go to spotify.com/account/privacy.
- Check Extended streaming history and click Request data, then confirm via the email Spotify sends you.
- Wait for a second email with
my_spotify_data.zip. Spotify says it can take up to 30 days, but it's usually a few days.
You can set up and use the app while you wait. It starts tracking new plays right away.
- Open the Spotify Developer Dashboard and click Create app.
- Under Redirect URIs, add
http://127.0.0.1:44100/auth/spotify/callback. Use127.0.0.1, notlocalhost. - Under Which API/SDKs are you planning to use?, check Web API, then save.
- Copy the Client ID and Client secret.
- (Optional) To let other people sign in, add their Spotify emails under User Management. Dev Mode allows up to 5 users.
git clone https://github.com/cephalization/spotify-insights.git
cd spotify-insights
bun install
bun run setup # paste your Client ID/secret; writes .env and generates a session secret
bun run dev # open http://127.0.0.1:44100 and sign in with SpotifyFor a long-running install, use bun run start instead of dev. It syncs your recent plays every 10 minutes while it's running.
When the export arrives, upload my_spotify_data.zip on the Data & Sync page, or run:
bun run import ~/Downloads/my_spotify_data.zipA decade of history imports in seconds. Album art and artist photos then fill in gradually in the background, and Data & Sync shows the progress. Re-importing the same export is safe because duplicate plays are skipped.
Spotify only allows plain-HTTP redirects for 127.0.0.1. To use the app from your phone or another computer, run bun run lan. It serves HTTPS on your LAN IP with a generated certificate and prints the redirect URI to add to your Spotify app.
- Playlist transfers to Apple Music, TIDAL and YouTube Music (optional, extra credentials needed), plus CSV/JSON/XSPF export.
- docs/details.md: the full feature list, how the app works around the 2026 Spotify API limits, transfer setup, and stack notes.
bun run sync # one-off sync (e.g. from cron/launchd)
bun test
bun run typecheckOAuth tokens are encrypted at rest with a key derived from SESSION_SECRET. Changing the secret signs everyone out.



