Spotify AI Playlist Generator
Jan 2024 · View on GitHub →
Implemented a Go HTTP server to orchestrate API calls across Spotify and OpenAI services and serve a dynamic playlist generation interface.
Tech Stack
- Go
- Spotify API
- OpenAI API
- HTMX
I cloned spotify
Summer of 2024, after I graduated college, I spent a lot of time tinkering and learning Go. While doing this, I was also listening to a lot of new music. The way I like listening to music is based off vibes, which is an arbitrary way to group songs based on feeling, genre, patterns... really anything. So I figured, if I had a website that I could tell it my vibe, and it created playlists from songs that I had saved in my library, then I could listen to my new music while keeping the right vibes for that session.
For example, if I wanted to listen to only latin music, then I could create a playlist of the latin songs in my liked songs playlist, and export it to spotify to start a little fiesta coding session.
The project
I ended up creating a clone of Spotify's UI, and utlized their auth as well to get user data like usernames, liked songs, and allow exporting new playlists directly to your Spotify account. I also used ChatGPT's GPT 4 model to filter my music based on a prompt. Yes, this is basically a chat gpt wrapper, but with some extra goodies that made it feel more alive. I used this app many times throughout the summer, and created a few playlists that I still use today.