How realcgcristi/rpvlc works
rpvlc is a Node CLI that turns VLC playback into Discord listening activity, with a TUI and optional Last.fm scrobbling. Its main workflow polls or launches VLC, resolves track metadata and artwork, then updates Discord and records eligible scrobbles; users can also control playback and change settings in the TUI. The README documents provider matching, art caching, notifications, and headless operation. Some wiring is unsampled, so uncertain links are omitted; README-backed capability links cite the README.
Main entry points: index.js Runtime coordinator · meta.js Track resolution · vlc.js VLC HTTP control · settings.js Settings overlay
Components 18
Runtime orchestration
- Runtime coordinator
src/index.js - Configuration and history
src/config.js - Secret encryption
src/secrets.js - Artwork cache
src/config.js
VLC playback
- VLC HTTP control
src/vlc.js
Metadata and artwork
- Track resolution
src/meta.js - iTunes search
src/providers/itunes.js - Deezer search
src/providers/deezer.js - MusicBrainz search
src/providers/musicbrainz.js
Presence and scrobbling
- Discord IPC presence
src/rpc.js - Last.fm scrobbling
src/lastfm.js
User interface and settings
- Playback terminal UI
src/tui.js - Settings overlay
src/settings.js
Other components
- CLI user
- VLC player
- Discord client
- Last.fm service
- Metadata providers
Connections 28
- CLI user → Runtime coordinator: starts
readme.md - Runtime coordinator → Configuration and history: loads settings
src/index.js - Configuration and history → Secret encryption: encrypts secrets
src/config.js - Runtime coordinator → VLC HTTP control: polls and controls
src/index.js - VLC HTTP control → VLC player: reads playback
src/vlc.js - VLC HTTP control → VLC player: sends commands
src/vlc.js - Runtime coordinator → VLC HTTP control: launches player
src/index.js - Runtime coordinator → Track resolution: resolves track
src/index.js - Track resolution → iTunes search: searches candidates
readme.md - Track resolution → Deezer search: searches candidates
readme.md - Track resolution → MusicBrainz search: searches candidates
readme.md - Track resolution → Artwork cache: reads or saves art
src/meta.js - MusicBrainz search → Metadata providers: fetches cover art
src/providers/musicbrainz.js - iTunes search → Metadata providers: queries catalog
src/providers/itunes.js - Deezer search → Metadata providers: queries catalog
src/providers/deezer.js - MusicBrainz search → Metadata providers: queries recordings
src/providers/musicbrainz.js - Runtime coordinator → Discord IPC presence: connects and updates
src/index.js - Discord IPC presence → Discord client: speaks IPC
src/rpc.js - Runtime coordinator → Last.fm scrobbling: submits scrobbles
src/index.js - Last.fm scrobbling → Last.fm service: sends API requests
src/lastfm.js - Runtime coordinator → Playback terminal UI: updates playback view
src/index.js - CLI user → Playback terminal UI: controls playback
readme.md - Playback terminal UI → VLC HTTP control: routes playback actions
- CLI user → Settings overlay: opens settings
readme.md - Settings overlay → Configuration and history: saves changes
src/settings.js - Settings overlay → Last.fm scrobbling: starts authentication
src/settings.js - Settings overlay → Playback terminal UI: uses accent colors
src/settings.js - Runtime coordinator → CLI user: notifies track changes
readme.md