A music application with two distinct systems:
- 3D Visualizer - Local MP3 player with real-time 3D audio visualization
- AI Playlist Generator - Natural language → AI → YouTube playlists
npm install
npm run devNote: AI playlist generation requires Vercel deployment (see below).
npm run deployAfter deployment, configure environment variables in Vercel Dashboard:
GROQ_API_KEY- Your Groq AI API keyYOUTUBE_API_KEY- Your YouTube Data API v3 keyYOUTUBE_API_KEY_2- Second YouTube API key (optional)
- 16 local MP3 files from
/public/directory - 3D audio visualizer with Three.js
- Real-time frequency analysis
- Simple song list with search
- Type natural language prompts (e.g., "frolicking in a field")
- Groq AI generates ~30 song suggestions
- YouTube Data API searches for songs
- AI filters out compilations
- Plays via YouTube IFrame API
POST /api/ai-suggest- Get AI song suggestionsPOST /api/ai-filter- Filter compilationsPOST /api/youtube-search- Search YouTubeGET/POST /api/library-proxy/*- Backend proxy (HF Spaces)
npm run dev # Start dev server (MP3s only)
npm run build # Build production bundle
npm run preview # Preview production build
npm run deploy # Deploy to Vercel- The TypeScript warning about
/api/tsconfig.jsonis harmless - AI features only work when deployed to Vercel
- Local dev only supports the MP3 player system
- See DEPLOYMENT.md for detailed deployment instructions