Detailed listening stats inside Spotify — listening time, track and artist counts, skipped tracks and top lists in one place.
Statswin is a Spicetify CustomApp plus a small extension that records what you listen to locally. Nothing leaves your machine.
- New storage engine. Detailed sessions are kept for 90 days; older days are compacted into daily totals, so history no longer fills up Spotify's storage. Existing data is migrated on first launch and the legacy reset flag is deleted.
- Accurate time tracking. Listening time is measured by the player clock; pauses, seeks and background tabs no longer add or drop minutes.
- Album covers in the top lists, resolved from the current Spotify client.
- Reworked interface: one-row header with a period menu, themed dropdowns, permission-aware settings dialog, sticky header.
- Auto language. Statswin follows the Spotify client language until you pick one explicitly in Settings → General.
- Safer import/export with merge/replace modes and duplicate skipping.
| Today | Year |
|---|---|
![]() |
![]() |
| Top lists | Settings |
|---|---|
![]() |
![]() |
| Period menu | Custom range |
|---|---|
![]() |
![]() |
Screenshots are generated with Playwright from the production bundle — see docs/screens/README.md.
Windows — open PowerShell:
iwr -useb "https://raw.githubusercontent.com/korovagg/Statswin/main/install_windows.ps1" | iexmacOS / Linux — open a terminal:
curl -fsSL "https://raw.githubusercontent.com/korovagg/Statswin/main/install_linux.sh" | bash-
Download the latest
statswin-v*.zipfrom Releases. -
Extract the
statswinfolder into your SpicetifyCustomAppsdirectory:- Windows:
%APPDATA%\spicetify\CustomApps - macOS / Linux:
~/.config/spicetify/CustomApps - Not sure?
spicetify config-dirprints the root folder.
- Windows:
-
Activate the app and restart Spotify:
spicetify config custom_apps statswin spicetify apply
-
Open Statswin from the Spotify navigation bar.
Re-run the one-click installer, or replace CustomApps/statswin with the contents of
the newest release zip and run spicetify apply. Existing statistics are migrated
automatically and kept.
- Everything is stored locally in Spotify's browser
localStorage. - Detailed sessions are kept for 90 days; older days are compacted into daily totals (listening time remains complete, track/artist counts only cover the last 90 days).
- Playback is recorded by wall-clock time; a track counts as skipped when it was listened to for less than 10 seconds.
The settings dialog (gear icon) offers:
- Backup — downloads a JSON file with sessions, the track registry and daily totals.
- Import — validated import with Merge / Replace modes and an option to skip duplicates. Both v3 backups and legacy v2 exports are accepted.
- Download diagnostics — exports the in-memory debug log (no track metadata).
- Reset statistics — wipes all stored listening data.
Requirements: Node.js 18+ (Node 20 recommended).
npm ci # install dependencies
npm run typecheck # tsc --noEmit
npm run build-local # build dist/ (index.js, extension.js, style.css, manifest.json)
npm run build-release # package release/statswin + release/statswin-v<version>.zip
npm run test:counters # counter arithmetic checks (plays, skips, ranges)
npm run screenshots # optional: regenerate docs/screens (needs playwright)npm run watch builds into your Spicetify folder on change.
For manual testing, copy dist/* into %APPDATA%\spicetify\CustomApps\statswin
(~/.config/spicetify/CustomApps/statswin on Linux/macOS) and run spicetify apply.
Tagging v* (for example v2.0.0) triggers
.github/workflows/release.yml, which builds the zip and
publishes it as a GitHub release. Pull requests run typecheck + build-local via
.github/workflows/ci.yml.
- Close Spotify.
- Delete
CustomApps/statswin. - Run
spicetify config custom_apps statswin-andspicetify apply. - Relaunch Spotify.
Statistics live in Spotify's localStorage; clearing that storage (or using the reset
button in the app beforehand) removes them.
Bug reports and pull requests are welcome: issues.
MIT © 2025 Korowin





