Spotify Stats Universe

TypeScript · Next.js ^16.2.4 (App Router) · React 19.2.4 · Tailwind CSS v4

A Next.js App Router web app that visualizes a user's Spotify listening statistics. The Next.js Route Handlers act as a backend-for-frontend (BFF) proxy: the React client never calls Spotify directly except for the OAuth authorize redirect, and all data calls pass through server routes that read the httpOnly access-token cookie.

Generated 4 Jun 2026 · 59 files · 12 components · 5 flows

File Architecture

The full source tree as a layered graph — every file with its role, imports, exports and reverse dependencies.

System Design

Runtime topology across the five zones — client, edge, application, data and external services.

Flow Graph

The five most significant application flows, step by step — startup, auth, write, read and error recovery.

Technology

ComponentTechnologyVersionSource of Detection
FrameworkNext.js (App Router)^16.2.4package.json
UI LibraryReact / React DOM19.2.4package.json
LanguageTypeScript^5package.json, tsconfig.json
StylingTailwind CSS^4package.json, postcss.config.mjs
Server State@tanstack/react-query^5.99.2lib/hooks/use-spotify-data.ts
Client StateZustand^5.0.12stores/*.ts
HTTP Clientaxios^1.15.1lib/services/spotify-api.ts
Spotify SDKspotify-web-api-node (types only used)^5.0.2package.json
Animationframer-motion^12.38.0app/page.tsx, components/*
Chartsrecharts^3.8.1package.json (genre-chart)
3D Visualsthree / @react-three/fiber / drei^0.184.0 / ^9.6.0 / ^10.7.7package.json
i18nnext-intl^4.9.1components/providers/intl-provider.tsx
Iconslucide-react / react-icons^1.8.0 / ^5.6.0component imports
Image Exporthtml2canvas^1.4.1package.json (share)
Class Utilsclsx / tailwind-merge / cva^2.1.1 / ^3.5.0 / ^0.7.1lib/utils/cn.ts
LintingESLint + eslint-config-next^9 / 15.3.1eslint.config.mjs
Git Hookshusky + prettier^9.1.7 / ^3.8.3package.json (devDependencies)
DeploymentVercel (region iad1)*[unresolved]*vercel.json