How usaikiran8978/spotify-clone works
This is a demo music-streaming stack: an admin panel manages a shared catalogue, a Node backend serves catalogue and room APIs, and a mobile app lets listeners discover and play music. The main listener flow is browsing or searching, selecting songs, and playing them; related features include offline downloads, playlists, synchronized listening rooms, and room voice calls. Edges follow the sampled calls, imports, and README statements; unsampled screen and room-server details are represented conservatively.
Main entry points: App.js Mobile app shell · server.js HTTP API · LibraryScreen.js Library · PlayerContext.js Playback state
Components 30
Catalogue backend
- HTTP API
backend/src/server.js - Catalogue and state store
backend/src/store.js - Category definitions
backend/src/categories.js - Catalogue importer
backend/src/importer.js - Seed catalogue
backend/src/seedData.js - Room server
backend/src/rooms.js
Admin panel
- Song manager
admin/src/App.jsx - Admin API client
admin/src/api.js
Mobile discovery
- Mobile app shell
mobile/App.js - Mobile API client
mobile/src/api.js - Home feed
mobile/src/screens/HomeScreen.js - Category browsing
mobile/src/screens/BrowseScreen.js - Category songs
mobile/src/screens/CategoryScreen.js - Music search
mobile/src/screens/SearchScreen.js - iTunes search
mobile/src/itunes.js - Saavn search
mobile/src/jiosaavn.js
Playback and library
- Library
mobile/src/screens/LibraryScreen.js - Playback state
mobile/src/context/PlayerContext.js - Offline downloads
mobile/src/context/DownloadsContext.js - Playlists
mobile/src/context/PlaylistsContext.js - Now playing
mobile/src/screens/NowPlayingScreen.js - Background controls
mobile/src/services/playbackService.js
Listening together
- Room screen
mobile/src/screens/RoomScreen.js - Synchronized rooms
mobile/src/context/RoomContext.js - Room voice calls
mobile/src/context/CallContext.js - WebRTC peer connections
mobile/src/webrtc.js
Other components
- Listener
- Administrator
- Audio playback engine
- External music search
Connections 35
- Administrator → Song manager: manages songs
README.md - Song manager → Admin API client: requests data
admin/src/App.jsx - Admin API client → HTTP API: calls API
README.md - Listener → Mobile app shell: uses app
README.md - Mobile app shell → Home feed: opens screen
mobile/App.js - Mobile app shell → Category browsing: opens screen
mobile/App.js - Mobile app shell → Category songs: opens screen
mobile/App.js - Mobile app shell → Music search: opens screen
mobile/App.js - Mobile app shell → Library: opens screen
mobile/App.js - Mobile app shell → Now playing: opens screen
mobile/App.js - Home feed → Mobile API client: fetches feed
mobile/src/screens/HomeScreen.js - Mobile API client → HTTP API: calls API
mobile/src/api.js - Music search → iTunes search: searches songs
mobile/src/screens/SearchScreen.js - Music search → Saavn search: searches catalogue
mobile/src/screens/SearchScreen.js - iTunes search → External music search: queries provider
- Saavn search → External music search: queries provider
- Library → Mobile API client: fetches songs
mobile/src/screens/LibraryScreen.js - Library → Playback state: starts playback
mobile/src/screens/LibraryScreen.js - Now playing → Playback state: controls playback
mobile/src/screens/NowPlayingScreen.js - Playback state → Audio playback engine: controls audio
mobile/src/context/PlayerContext.js - Playback state → Offline downloads: resolves local audio
mobile/src/context/PlayerContext.js - Library → Offline downloads: shows offline songs
mobile/src/screens/LibraryScreen.js - Library → Playlists: uses playlists
mobile/src/screens/LibraryScreen.js - Background controls → Audio playback engine: handles media controls
mobile/src/services/playbackService.js - Room screen → Synchronized rooms: uses room state
mobile/src/screens/RoomScreen.js - Room screen → Room voice calls: uses call state
mobile/src/screens/RoomScreen.js - Room voice calls → Synchronized rooms: subscribes to messages
mobile/src/context/CallContext.js - Room voice calls → WebRTC peer connections: creates peer links
mobile/src/context/CallContext.js - Synchronized rooms → Mobile API client: calls room API
mobile/src/context/RoomContext.js - Synchronized rooms → HTTP API: synchronizes via backend
- HTTP API → Catalogue and state store: reads and writes
backend/src/server.js - HTTP API → Category definitions: computes categories
backend/src/server.js - HTTP API → Catalogue importer: imports catalogue
backend/src/server.js - HTTP API → Room server: attaches room service
backend/src/server.js - Catalogue and state store → Seed catalogue: initializes from
backend/src/store.js