How comp-alex/mixifystats works
MixifyStats is a browser-based Spotify listening-stats dashboard with a DJ-style mixer. A user connects Spotify through PKCE authentication; the frontend exchanges or refreshes tokens, requests profile and top-track/artist data, and presents stats and mood analytics. Users can also adjust mixer controls or apply a mood prompt. The backend serves the static app and proxies token requests to Spotify. Source excerpts show the token and data requests, but not all rendering and mood-handler internals, so those links are left unverified.
Main entry points: index.html Dashboard UI · script.js Stats retrieval · token.js Token exchange · server.js App server
Components 9
Dashboard
- Dashboard UI
index.html - Stats retrieval
script.js
Spotify Auth
- PKCE sign-in
script.js
Mood Mixer
- Mood analytics
script.js - DJ mixer
index.html
Backend
- Token exchange
api/token.js - App server
server.js
Other components
- Listener
- Spotify Web API
Connections 12
- Listener → Dashboard UI: uses
README.md - App server → Dashboard UI: serves static app
server.js - Dashboard UI → PKCE sign-in: starts sign-in
README.md - PKCE sign-in → Token exchange: exchanges code
script.js - PKCE sign-in → Stats retrieval: loads after sign-in
script.js - Stats retrieval → Spotify Web API: requests profile and tops
script.js - App server → Token exchange: routes POST
server.js - Token exchange → Spotify Web API: exchanges or refreshes token
api/token.js - Listener → DJ mixer: adjusts controls
README.md - DJ mixer → Mood analytics: applies mood prompt
- Mood analytics → DJ mixer: updates mix
- Stats retrieval → Dashboard UI: updates displayed stats