How ganapatinaik1/mumu works
Mumu is a music listening and library app with playlists, search, offline playback, social features, synchronized listening, and account/admin screens. The main user flow is browsing or searching for music, selecting a song, and controlling playback and its queue; authenticated users can also manage playlists and favorites. The graph includes the documented-by-source-index product areas, but the README is only a Vite template and most page and service implementations were not sampled, so their internal connections are intentionally limited.
Main entry points: SyncContext.tsx Listening sync · usePlayer.ts Playback hook · Search.tsx Search screen · usePlaylists.ts Playlist queries
Components 26
App shell
- React entry
src/main.tsx - App and routes
src/App.tsx - Home
src/pages/Home.tsx
Music listening
- Playback state
src/contexts/PlayerContext.tsx - Playback hook
src/hooks/usePlayer.ts - Player controls
src/components/player/MusicPlayer.tsx - Full-screen player
src/components/player/FullScreenPlayer.tsx - Playback queue
src/components/player/QueueDrawer.tsx - Offline cache
src/services/offlineCache.ts
Library and discovery
- Search screen
src/pages/Search.tsx - Search query
src/hooks/useSearch.ts - Search service
src/services/search.ts - Library screen
src/pages/Library.tsx - Playlist queries
src/hooks/usePlaylists.ts - Playlist service
src/services/playlists.ts - Song service
src/services/songs.ts - Playlist details
src/pages/PlaylistDetails.tsx
Social listening
- Listening sync
src/contexts/SyncContext.tsx - Sync screen
src/pages/Sync.tsx - Friend features
src/services/friends.ts
Account and settings
- Authentication
src/context/AuthContext.tsx - Profile screens
src/pages/Profile.tsx - Settings
src/pages/Settings.tsx - Admin tools
src/pages/Admin.tsx
Other components
- Listener
- Supabase backend
Connections 16
- Listener → React entry: opens app
src/main.tsx - React entry → App and routes: renders
src/main.tsx - Search screen → Search query: queries
src/pages/Search.tsx - Search query → Search service: calls
src/hooks/useSearch.ts - Search screen → Playback hook: starts playback
src/pages/Search.tsx - Search screen → Library screen: renders favorites
src/pages/Search.tsx - Library screen → Playlist queries: manages playlists
src/pages/Library.tsx - Playlist queries → Playlist service: calls
src/hooks/usePlaylists.ts - Playlist queries → Supabase backend: uses client
src/hooks/usePlaylists.ts - Playback queue → Playback hook: reads and updates
src/components/player/QueueDrawer.tsx - Playback hook → Playback state: exposes state
- Playback state → Offline cache: reads and caches
src/contexts/PlayerContext.tsx - Listening sync → Authentication: reads identity
src/contexts/SyncContext.tsx - Listening sync → Playback hook: controls playback
src/contexts/SyncContext.tsx - Listening sync → Playback state: uses audio
src/contexts/SyncContext.tsx - Listening sync → Supabase backend: broadcasts and queries
src/contexts/SyncContext.tsx