Skip to content

About

Your own spotify wrapped, every minute of every day

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

Spotify Insights

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
Insights dashboard Year in review
Artist pages Rediscover
Artist page Forgotten favorites and on this day

Just want to look around? Run bun install && bun run demo to open it with generated data. No Spotify account needed.

Quick start

You need Bun 1.4+ and a Spotify Premium account (Spotify requires Premium for Dev Mode apps).

1. Request your Spotify data (do this first)

Spotify's API only returns your last 50 plays, so your full history comes from Spotify's privacy export.

  1. Go to spotify.com/account/privacy.
  2. Check Extended streaming history and click Request data, then confirm via the email Spotify sends you.
  3. 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.

2. Create a Spotify app

  1. Open the Spotify Developer Dashboard and click Create app.
  2. Under Redirect URIs, add http://127.0.0.1:44100/auth/spotify/callback. Use 127.0.0.1, not localhost.
  3. Under Which API/SDKs are you planning to use?, check Web API, then save.
  4. Copy the Client ID and Client secret.
  5. (Optional) To let other people sign in, add their Spotify emails under User Management. Dev Mode allows up to 5 users.

3. Run it

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 Spotify

For a long-running install, use bun run start instead of dev. It syncs your recent plays every 10 minutes while it's running.

4. Import your history

When the export arrives, upload my_spotify_data.zip on the Data & Sync page, or run:

bun run import ~/Downloads/my_spotify_data.zip

A 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.

Using it from other devices

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.

More

  • 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 typecheck

OAuth tokens are encrypted at rest with a key derived from SESSION_SECRET. Changing the secret signs everyone out.

License

MIT

About

Your own spotify wrapped, every minute of every day

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Contributors

Languages