How pravinbalajir/gesture-based-music-player works
AeroTune is a gesture- and voice-controlled music web app. Users can search for YouTube tracks, choose results, and play them through the frontend player; gesture input and voice search provide alternate controls. The backend supplies search and stream endpoints, authentication, playlists, favorites, and analytics, with SQLite-backed account and collection data. README-described analytics and recommendation capabilities are included where source evidence supports them. The graph follows shown imports, calls, and documented capabilities; some UI and backend implementation details were not sampled.
Main entry points: App.tsx App shell · useAudioPlayer.tsx Audio playback · useVoiceSearch.ts Voice search · SearchPage.tsx Search results
Components 27
Music experience
- App shell
frontend/src/App.tsx - Search results
frontend/src/pages/SearchPage.tsx - Home discovery
frontend/src/pages/HomePage.tsx - Player controls
frontend/src/components/Player.tsx - Track cards
frontend/src/components/SongCard.tsx - Audio playback
frontend/src/hooks/useAudioPlayer.tsx - Playback state
frontend/src/store/usePlayerStore.ts - Analytics dashboard
frontend/src/pages/AnalyticsPage.tsx
Hands-free controls
- Voice search
frontend/src/hooks/useVoiceSearch.ts - Gesture detection
frontend/src/hooks/useGestureDetection.ts - Gesture state
frontend/src/store/useGestureStore.ts - Gesture overlay
frontend/src/components/GestureOverlay.tsx
Music API
- YouTube search
backend/main.py - Stream extraction
backend/main.py - Listening analytics
backend/main.py - Track suggestions
backend/suggestions.py
Accounts and collections
- Authentication
backend/auth.py - Session state
frontend/src/store/useAuthStore.ts - Playlists
backend/playlists.py - Favorites
backend/favorites.py - Library pages
frontend/src/pages/LibraryPage.tsx - Playlist page
frontend/src/pages/PlaylistPage.tsx - Favorites page
frontend/src/pages/FavoritesPage.tsx - SQLite database
backend/database.py
Other components
- Listener
- YouTube
- MediaPipe Hands
Connections 33
- Listener → App shell: uses
README.md - App shell → Search results: renders
frontend/src/App.tsx - App shell → Home discovery: renders
frontend/src/App.tsx - App shell → Player controls: renders
frontend/src/App.tsx - App shell → Gesture overlay: renders
frontend/src/App.tsx - Search results → Track cards: renders
frontend/src/pages/SearchPage.tsx - Track cards → App shell: selects track
frontend/src/App.tsx - App shell → Audio playback: loads track
frontend/src/App.tsx - Audio playback → Playback state: updates
frontend/src/hooks/useAudioPlayer.tsx - Audio playback → Stream extraction: requests stream
frontend/src/hooks/useAudioPlayer.tsx - Audio playback → YouTube: plays track
README.md - Voice search → Playback state: sets query
frontend/src/hooks/useVoiceSearch.ts - Voice search → YouTube search: searches
frontend/src/hooks/useVoiceSearch.ts - Search results → Playback state: reads results
frontend/src/pages/SearchPage.tsx - YouTube search → YouTube: searches tracks
README.md - Gesture detection → MediaPipe Hands: processes frames
frontend/src/hooks/useGestureDetection.ts - Gesture detection → Gesture state: updates
frontend/src/hooks/useGestureDetection.ts - Gesture overlay → Gesture detection: displays detection
- App shell → Session state: uses session
frontend/src/App.tsx - Authentication → SQLite database: reads and writes
backend/auth.py - Playlists → SQLite database: reads and writes
backend/playlists.py - Favorites → SQLite database: reads and writes
backend/favorites.py - Playlist page → Playlists: manages collections
- Favorites page → Favorites: manages tracks
- Library pages → Playlists: shows library
- App shell → Playlist page: renders
frontend/src/App.tsx - App shell → Favorites page: renders
frontend/src/App.tsx - App shell → Library pages: renders
frontend/src/App.tsx - Analytics dashboard → Listening analytics: views metrics
- Audio playback → Listening analytics: tracks plays
frontend/src/hooks/useAudioPlayer.tsx - Voice search → Listening analytics: tracks searches
frontend/src/hooks/useVoiceSearch.ts - App shell → Analytics dashboard: renders
frontend/src/App.tsx - YouTube search → Track suggestions: uses suggestions
backend/main.py