How sipbuu/lokal works
Lokal is a local-first Electron music player with a React interface. Users scan and search a local library, play tracks or discover online alternatives, manage queues and playlists, and enrich playback with lyrics, music videos, and quality information. Downloads and imported playlists bring external music into the library; listening history powers mixes, recommendations, and recaps. The graph combines documented capabilities with the sampled Electron, renderer, and server entry points. Several feature links rely on README descriptions because their implementation files were not sampled.
Main entry points: App.jsx React app · db.js Library database · player.js Player state · index.js Web server
Components 24
App and access
- React app
src/App.jsx - Desktop runtime
electron/main.js - Renderer API
src/api.js - Web server
server/index.js
Library and downloads
- Library database
electron/ipc/db.js - Library scanning
electron/ipc/scanner.js - Library search
electron/librarySearch.js - Download queue
electron/download/manager.js - Download routes
server/routes/download.js - Playlists
electron/ipc/playlists.js - Playlist routes
server/routes/playlists.js
Playback and discovery
- Online search
electron/ipc/online.js - Online sources
electron/online/sources.js - Player state
src/store/player.js - Audio output
src/audio/nativeOutput.js
Track enrichment
- Lyrics service
electron/lyrics/service.js - Music videos
electron/online/musicVideo.js - Audio quality
electron/quality/index.js
Listening and sharing
- Mixes and discovery
src/flow/engine.js - Radio
electron/radio/catalog.js - Listening recaps
server/routes/recaps.js
Other components
- Listener
- Music services
- Remote user
Connections 26
- Listener → React app: uses
README.md - React app → Renderer API: requests
- Desktop runtime → Library database: initializes
electron/main.js - Desktop runtime → Library scanning: starts scanning
electron/main.js - Library scanning → Library database: updates library
- Renderer API → Web server: calls
- Web server → Library database: reads and writes
server/index.js - React app → Library search: searches library
README.md - React app → Online search: searches online
README.md - Online search → Online sources: queries sources
electron/ipc/online.js - React app → Download queue: starts downloads
README.md - Download routes → Download queue: manages downloads
- Download queue → Library database: persists jobs
electron/download/manager.js - React app → Player state: controls playback
src/App.jsx - Player state → Audio output: feeds audio
- React app → Lyrics service: requests lyrics
README.md - React app → Music videos: plays videos
README.md - React app → Audio quality: views quality
README.md - React app → Playlists: manages playlists
README.md - Playlist routes → Library database: reads and writes
server/routes/playlists.js - React app → Playlist routes: imports playlists
README.md - Player state → Mixes and discovery: powers discovery
- React app → Radio: browses radio
README.md - React app → Listening recaps: views recaps
README.md - Online sources → Music services: fetches music
README.md - Remote user → Web server: accesses remotely
README.md