How ybycom/lx-music-desktop works
LX Music Desktop is an Electron/Vue music player. Users find music through online music sources, manage lists and downloads, then play tracks with lyrics and audio controls. The desktop main process hosts the windows and coordinates renderer communication; separate capabilities include desktop lyrics, local Open API, scheme URLs, and client/server data synchronization. The README establishes these product capabilities, while the excerpts show application startup and window wiring. Many feature modules were not sampled, so uncertain internal calls and storage flows are not asserted.
Main entry points: App.vue Player interface · app.ts Electron startup · main.ts Renderer bootstrap · index.js Online sources
Components 22
Desktop runtime
- Electron startup
src/main/app.ts - Main window
src/main/modules/winMain/main.ts - Renderer bootstrap
src/renderer/main.ts - Lyric window
src/main/modules/winLyric/main.ts
Music experience
- Player interface
src/renderer/App.vue - Playback engine
src/renderer/core/player/index.ts - Music operations
src/renderer/core/music/index.ts - Online sources
src/renderer/utils/musicSdk/index.js - Music lists
src/renderer/store/list/action.ts - Lyric display
src/renderer-lyric/App.vue
Local data
- Settings
src/renderer/store/setting.ts - Local database
src/main/worker/dbService/db.ts - Downloads
src/renderer/core/music/download.ts
Data synchronization
- Sync client
src/main/modules/sync/client/client.ts - Sync server
src/main/modules/sync/server/server/server.ts - Sync authentication
src/main/modules/sync/server/server/auth.ts
Other components
- Listener
- External callers
- Music services
- Sync service
Connections 18
- Listener → Player interface: uses
README.md - Electron startup → Main window: initializes
src/main/app.ts - Renderer bootstrap → Player interface: mounts
src/renderer/main.ts - Player interface → Renderer bootstrap: starts via
src/renderer/App.vue - Listener → Online sources: finds music
README.md - Online sources → Music services: requests music
README.md - Listener → Playback engine: plays tracks
README.md - Listener → Music lists: manages lists
README.md - Listener → Downloads: downloads music
README.md - Player interface → Lyric display: shows lyrics
- Electron startup → Lyric window: opens window
- Listener → Settings: configures
README.md - Listener → Sync client: syncs data
README.md - Sync client → Sync service: exchanges data
README.md - Listener → Sync server: hosts sync
README.md - Sync server → Sync authentication: authenticates
src/main/modules/sync/server/server/server.ts - External callers → Open API: calls locally
README.md - External callers → User API: integrates