How wes10645/spotify_listenerstats_app works
Spotiboard is a React and Express application for viewing personal Spotify listening statistics. A user opens the landing page, starts Spotify OAuth, and returns with an encrypted session cookie; the frontend then requests profile and chart data. Backend routes fetch Spotify profile, top artists and tracks, and recent plays, with caching and genre/hour analytics before returning JSON for chart rendering. The README also lists trend, forecasting, and audio-feature analysis as in-development capabilities; no implementation paths for those are evident in the supplied tree. Relationships reflect the sampled source and documented frontend/backend setup.
Main entry points: app.js Auth and data routes · App.js Dashboard state · LandingPage.jsx Animated landing · api.js API client
Components 13
Frontend experience
- Dashboard state
src/App.js - Animated landing
src/LandingPage.jsx - API client
src/api.js - Bar charts
src/components/BarChart.js
Backend API
- Local server entry
server/index.js - Vercel entry
api/index.js - Auth and data routes
server/app.js
Spotify integration
- OAuth and Spotify API
server/spotify.js
Session and analytics
- Encrypted sessions
server/session.js - Response cache
server/cache.js - Listening analytics
server/analytics.js
Other components
- Listener
- Spotify services
Connections 13
- Listener → Dashboard state: uses
src/App.js - Dashboard state → Animated landing: renders
src/App.js - Animated landing → Dashboard state: starts login
src/LandingPage.jsx - Dashboard state → API client: requests data
src/App.js - Dashboard state → Bar charts: renders
src/App.js - API client → Auth and data routes: calls API
README.md - Local server entry → Auth and data routes: loads
server/index.js - Vercel entry → Auth and data routes: exports
api/index.js - Auth and data routes → OAuth and Spotify API: calls
server/app.js - OAuth and Spotify API → Spotify services: requests
server/spotify.js - Auth and data routes → Encrypted sessions: seals sessions
server/app.js - Auth and data routes → Response cache: reads and writes
server/app.js - Auth and data routes → Listening analytics: computes charts
server/app.js