I built a web app that generates personalized movie soundtrack playlists based on your mood ā and creates the playlist directly in Spotify.
How it works
ā You describe your mood in natural language
ā OpenAI curates 5 tracks from iconic 90sā2010s movie soundtracks
ā One click ā playlist is created in your Spotify account
Tech stack
⢠Next.js 16 + TypeScript
⢠OpenAI (via AI SDK) for intelligent curation
⢠Spotify Web API for playlist creation
⢠Vercel KV for rate limiting
⢠Tailwind CSS for UI
Key learnings
⢠Implementing OAuth 2.0 with httpOnly cookies
⢠Enforcing structured LLM output using Zod schemas
⢠Designing resilient AI flows when external APIs (Spotify) fail
⢠Building accessible, responsive UIs around AI features
Try it out: https://spotify-playlist-generator-ai.vercel.app
Curious to hear from the AISDK community! Please try it out!