← Projects
CLI

qobuz-bridge

Background daemon that bridges Qobuz into macOS Now Playing — Control Center tile, artwork, and working media buttons

New releasev0.2.210 days ago
Started
Last change
Licence
MIT

Features

  • Control Center tile — Qobuz becomes a first-class macOS Now Playing citizen: track title, artist, album, and artwork appear in Control Center just like any native player.
  • Working media buttons — next, previous, and play/pause from Control Center (or your keyboard's media keys) are turned into system media keys, which the Qobuz desktop app already responds to.
  • Rich artwork — album art is pulled from Qobuz's CDN and pushed live to the Now Playing slot, updating as tracks change.
  • Auto-start on login — a single qobuz-bridge install builds a small Qobuz Bridge.app and registers it as a launchd agent, so the daemon starts automatically at login and restarts if it crashes.
  • Light polling — every 3 seconds the daemon asks Qobuz what is playing (client.nowPlaying() from @kud/qobuz) and only updates Control Center when the track changes; elapsed time is read once per track from Qobuz's local player-0.json state file.
  • Three-package composition — thin orchestration layer that wires @kud/qobuz, @kud/macos-nowplaying-bridge, and @kud/macos-media-keys together with no duplicated logic.

Install

npm install -g @kud/qobuz-bridge

Requires macOS and Node.js ≥ 20, with the Qobuz desktop app installed. qobuz-bridge install also needs swiftc (the Xcode command line tools) to build its launcher app. Then connect your account once:

qobuz-bridge login

This stores a Qobuz token in the macOS Keychain (service "qobuz", shared with the rest of the @kud/qobuz suite — if you've already run qobuz login from @kud/qobuz-cli, you're connected and can skip this). The token can also be passed as an argument for scripting, qobuz-bridge login <token>, at the cost of it landing in your shell history.

Media keys are intercepted with a system event tap, so the Qobuz Bridge app that install builds in /Applications needs Accessibility permission: allow it under System Settings → Privacy & Security → Accessibility when macOS asks.

Usage

$ qobuz-bridge login
Log in at https://play.qobuz.com/login, then open DevTools → Network,
click any request to www.qobuz.com/api.json, and copy its
X-User-Auth-Token request header.

X-User-Auth-Token:
✓ connected — token stored in the Keychain (service "qobuz").
Next: qobuz-bridge install

$ qobuz-bridge
now playing → Intro — The xx
qobuz-bridge running — open Control Center. Ctrl-C to quit.

$ qobuz-bridge install
built app     → /Applications/Qobuz Bridge.app
login item    → ~/Library/LaunchAgents/io.kud.qobuz-bridge.plist
logs          → ~/Library/Logs/qobuz-bridge.log

One-time step: when macOS asks, grant “Qobuz Bridge” Accessibility
access in System Settings → Privacy & Security → Accessibility.

$ qobuz-bridge uninstall
removed login item → ~/Library/LaunchAgents/io.kud.qobuz-bridge.plist
removed app        → /Applications/Qobuz Bridge.app
You can revoke its entry in System Settings → Privacy & Security → Accessibility.
CommandEffect
qobuz-bridge loginConnect your Qobuz account; stores a token in Keychain
qobuz-bridgeRun the daemon in the foreground (Ctrl-C to quit)
qobuz-bridge installBuild the app, register a launchd login item and start it now
qobuz-bridge uninstallStop the daemon now and delete the login item and the app

Logs from the background daemon are written to ~/Library/Logs/qobuz-bridge.log.

Known limitation: player-0.json exposes the playback position but not a discrete play/pause flag, so the bridge reports state as "playing" whenever a track is detected. Elapsed time is likewise captured once per track, so seeking within a track is not reflected.

Disclaimer

This is an independent, unofficial project — not affiliated with, endorsed by, or sponsored by Qobuz. "Qobuz", the Qobuz logo, and any icons derived from it are trademarks of Qobuz Music, used here only to indicate compatibility.

Also in the Qobuz family