AI.pollo - AI Mood Playlist Recommender
An AI-powered mood-based music playlist recommender using the Spotify API. Built with a React/Vite frontend and a FastAPI backend.
Project Preview
Click the image for better qualityProject Overview
AI.pollo is an AI-powered mood-based music playlist recommender that analyzes user moods manually or via text input and generates personalized Spotify recommendations based on listening history and mood profiles. It uses a curated scoring algorithm on tracks' audio features (valence, energy, tempo, danceability) to ensure optimal song matching.
My Role & Responsibilities
Main Role:
Full-Stack DeveloperKey Frontend Features
- Rich interactive dashboard using a premium, responsive glassmorphic design.
- Smooth micro-animations and page transitions using Framer Motion.
- Manual mood selector mapped to specific colors and an intuitive text input interface for sentiment analysis.
- Global state management for handling asynchronous Spotify API calls and authentication status.
Key Backend Features
- Spotify OAuth 2.0 flow for secure access and refresh token management.
- Integration with Spotify API to fetch a user's profile, top tracks, and audio features.
- Recommendation engine mapping moods to specific Spotify audio feature constraints (valence, energy, tempo).
- Dynamic scoring algorithm that sorts and filters a user's top tracks against the detected mood profile.
- Text-based sentiment analysis endpoint for mood detection from user prompts.
Challenges & Solutions
Mapping abstract moods securely to concrete Spotify audio features.
Developed scoring logic that dynamically weighs variables like valence, energy, tempo, and danceability to accurately represent different emotional profiles.
Managing Spotify's strict OAuth 2.0 token refreshes securely.
Handled the authentication flow entirely in the FastAPI backend, storing tokens securely via cookies and bridging them to the frontend context.
Creating a visually cohesive music platform theme.
Implemented a fully dynamic glassmorphic interface with vibrant neon accents and Framer Motion micro-interactions that elevate the perceived brand quality.