How barypia/barymusic works
BaryMusic is a web app for managing a song library and setlists, then presenting lyrics and display settings to connected screens through channels. Users work in the browser; its frontend covers song editing, setlist organization, channel control, and output display, while a Node.js service provides HTTP/WebSocket behavior and SQLite-backed multi-user data. The graph preserves documented import, sheet-music, search, and access-control capabilities. Some frontend wiring and server route details were not sampled, so uncertain links are omitted or marked dashed.
Main entry points: barymusic.js HTTP and channels · song.js Song library · settings.js Display settings · websocket.js Channel connection
Components 23
Browser interface
- App initialization
frontend/js/core/init.js - Navigation
frontend/js/core/navigation.js - Display settings
frontend/js/core/settings.js - Settings storage
frontend/js/core/settings-store.js - Localization
frontend/js/core/i18n.js
Song content
- Song library
frontend/js/song/song.js - Song search
frontend/js/core/songs-fetch.js - Lyrics and chords
frontend/js/song/lyrics.js - Song metadata
server/song-metadata.js - Sheet music
frontend/js/song/sheets.js - MusicXML import
frontend/js/rest/musicxml-parser.js - Song import
frontend/js/rest/add-song.js - Setlist editor
frontend/js/setlist/setlist-editor.js - Setlist management
frontend/js/setlist/setlists.js
Live presentation
- Channel connection
frontend/js/ws/websocket.js - Lyrics output
frontend/js/output/output.js - Song audio
frontend/js/song/audio.js
Service and data
- Accounts and access
frontend/js/rest/auth.js - HTTP and channels
server/barymusic.js - SQLite data
server/barymusic.js - Library transfer
frontend/js/rest/transfer.js
Other components
- Presenter or editor
- External screen
Connections 22
- Presenter or editor → App initialization: uses
README.md - App initialization → Song library: manage songs
- Song library → Song search: searches
README.md - Song library → Lyrics and chords: edits lyrics
README.md - Song library → Sheet music: attaches sheets
README.md - Song import → MusicXML import: imports MusicXML
- HTTP and channels → Song metadata: uses
server/barymusic.js - Song library → Song metadata: uses metadata
- Presenter or editor → Setlist editor: organizes
README.md - Setlist editor → Setlist management: manages items
- Accounts and access → HTTP and channels: requests auth
frontend/js/rest/auth.js - HTTP and channels → SQLite data: reads and writes
server/barymusic.js - Library transfer → HTTP and channels: transfers library
- Presenter or editor → Channel connection: connects
README.md - Channel connection → HTTP and channels: exchanges channel data
- HTTP and channels → Lyrics output: sends live lyrics
- Lyrics output → External screen: displays lyrics
README.md - Presenter or editor → Display settings: configures display
README.md - Display settings → Settings storage: persists settings
- Display settings → Channel connection: syncs settings
README.md - Presenter or editor → Song audio: plays song audio
- Presenter or editor → Localization: chooses language
README.md