garv.
back

Moodify

AI playlist generator · 2025

type a mood, get a Spotify playlist. 30s down to 4 to 6s.

Moodify home screen: a box where you type a mood, with example prompts under it

You describe a mood in plain words. An LLM expands that into precise search terms, Spotify search fills a playlist, and you get a shareable link with an embedded player. This is the piece of work I point people to when they ask what I can do with AI.

83%

lower response time

4 to 6s

per playlist, from 30s+

what was hard

The first version took over 30 seconds per playlist. Every request hit the LLM cold and then hammered Spotify's search once per expanded term. The fix was three things: a token-bucket rate limiter in front of Spotify so bursts queue instead of failing, a JSON cache for audio features so repeat tracks never refetch, and UUID-keyed playlists so a repeated query returns instantly. It now lands in 4 to 6 seconds.

what i built

  • LLM query expansion: vague mood in, exact Spotify search terms out
  • Token-bucket rate limiter on outbound Spotify calls
  • UUID-based playlist sharing with an oEmbed player
  • JSON caching for audio features

stack

Groq LLaMA 3·Python / Flask·React / Vite·Spotify Web API·Netlify