How lyswhut/lx-music-mobile works
LX Music Mobile is a React Native music player. The main path is app startup and navigation into search or music-list views, followed by playback through the player service. Other major areas include charts and song lists, personal playlists, lyrics, downloads, settings, local persistence, and optional server synchronization. The graph uses sampled source and SOURCE INDEX references for evidenced links; unsampled product branches and integrations are shown only where their paths are supported, with unverified links dashed.
Main entry points: Vertical/Main.tsx Home navigation · service.ts Playback service · Setting/Main.tsx Settings · client.ts Sync client
Components 20
App and discovery
- App startup
src/app.ts - Home navigation
src/screens/Home/Vertical/Main.tsx - Music search
src/screens/Home/Views/Search/index.tsx - Charts
src/screens/Home/Views/Leaderboard/index.tsx - Online song lists
src/screens/Home/Views/SongList/index.tsx
Music and playback
- Search logic
src/core/search/search.ts - Playback service
src/plugins/player/service.ts - Player state and control
src/core/player/player.ts - Lyrics
src/core/lyric.ts - Music downloads
src/core/music/download.ts - Local music
src/core/music/local.ts - Custom music sources
src/core/userApi.ts
User data and settings
- Personal playlists
src/screens/Home/Views/Mylist/index.tsx - Settings
src/screens/Home/Views/Setting/Main.tsx - App data access
src/utils/data.ts - Persistent storage
src/plugins/storage.ts
Synchronization
- Sync client
src/plugins/sync/client/client.ts - Sync state
src/core/sync.ts - Sync server
Other components
- Listener
Connections 26
- Listener → App startup: opens app
src/app.ts - App startup → Home navigation: opens navigation
src/app.ts - App startup → App startup: initializes core
src/app.ts - Home navigation → Music search: renders view
src/screens/Home/Vertical/Main.tsx - Home navigation → Charts: renders view
src/screens/Home/Vertical/Main.tsx - Home navigation → Online song lists: renders view
src/screens/Home/Vertical/Main.tsx - Home navigation → Personal playlists: renders view
src/screens/Home/Vertical/Main.tsx - Home navigation → Settings: renders view
src/screens/Home/Vertical/Main.tsx - Music search → Search logic: calls search
src/screens/Home/Views/Search/index.tsx - Search logic → Music search: updates results
src/screens/Home/Views/Search/index.tsx - Music search → Playback service: starts playback
- Charts → Playback service: starts playback
- Online song lists → Playback service: starts playback
- Personal playlists → Playback service: starts playback
- Playback service → Player state and control: uses player
src/plugins/player/service.ts - Playback service → Lyrics: loads lyrics
src/plugins/player/service.ts - Settings → Custom music sources: configures sources
- Settings → Music downloads: configures playback
- Settings → Sync client: configures sync
- App data access → Persistent storage: reads and writes
src/utils/data.ts - Personal playlists → App data access: loads playlist data
- Local music → App data access: loads local data
- Music downloads → App data access: saves downloads
- Sync client → Sync state: updates sync status
src/plugins/sync/client/client.ts - Sync client → Sync server: connects by WebSocket
src/plugins/sync/client/client.ts - Sync client → Personal playlists: syncs playlist data