šŸŽµ Just shipped: AI-powered Spotify Playlist Generator (built with AI SDK + OpenAI)

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

:link: Try it out: https://spotify-playlist-generator-ai.vercel.app

Curious to hear from the AISDK community! Please try it out!

ai-sdk ai nextjs typescript ai

2 Likes

Nice! Looking forward to trying this out :smiley:

1 Like