josafath.dev
← All projects

~/Spotify-React-App · Since 2021

Jossify

Your Spotify top tracks and artists, ranked.

Your top 40 tracks and artists from the last 4 weeks, the last 6 months and all time, and how they move between those ranges. A demo mode lets anyone try it without an account.

FirebaseGitHub ActionsReactTanStack QueryTypeScriptVite

Versions

  1. v12021

    JavaScript with Create React App and the Implicit Grant flow, since retired by Spotify.

  2. v22026

    React 19 and strict TypeScript, PKCE sign-in and a demo mode.

What changed

AspectBeforeAfter
LanguageJavaScript→ Strict TypeScript
Sign-inImplicit Grant, since retired→ Authorization Code + PKCE with token refresh
Data fetchingSix sequential axios calls→ Typed fetch client, TanStack Query cache, parallel requests
StatesCrashed on empty data→ Loading, empty, error, expired session and rate limit