Deno + JavaScript for Automation (JXA) Discord Rich Presence Client for the macOS Apple Music app (Catalina and later) and legacy iTunes.
Works with local tracks and Apple Music streaming service.
- Can start in background at login
- No status bar icon clutter
- Small and (quite) easy to understand script
- Presence is only enabled when actually playing something
- Apple Music matching (#5)
- MusicBrainz artwork fallback (#66)
![](https://private-user-images.githubusercontent.com/20094890/386850291-b9ff2727-ed47-4ba7-8c0a-6b3876715f71.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzQ1NjkyODksIm5iZiI6MTczNDU2ODk4OSwicGF0aCI6Ii8yMDA5NDg5MC8zODY4NTAyOTEtYjlmZjI3MjctZWQ0Ny00YmE3LThjMGEtNmIzODc2NzE1ZjcxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMjE5VDAwNDMwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYxNGMyYTkzOTc1MjNiNjZhMjc4MGU5YzBkMGYwMzg4ZTYyMjFmOWYzN2E5MTE4YjM3MDZjNzc5NDI1MzFmZWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.IgoSFpdnvSWJgCBMpTz0ZJWw9u66Bv8i0fnDWgj-7UQ)
Follow one of the two sections below to download the script and enable the macOS launch agent that will start it at login.
After installing Homebrew, execute the following commands:
brew tap nextfire/tap
brew install apple-music-discord-rpc
brew services restart apple-music-discord-rpc
These commands
- add this tap to Homebrew,
- install its
apple-music-discord-rpc
formula (and Deno), - enable the launch agent and start it immediately.
The music-rpc.ts
executable is now also in PATH
.
brew services stop apple-music-discord-rpc
brew remove apple-music-discord-rpc
brew untap nextfire/tap
Install Deno (v2+), clone the repository and execute
install.sh
:
git clone https://github.com/NextFire/apple-music-discord-rpc.git
cd apple-music-discord-rpc/
./scripts/install.sh
It will copy the launch agent into
~/Library/LaunchAgents/
and edit it accordingly.
cd apple-music-discord-rpc/
./scripts/uninstall.sh
cd ../
rm -rf apple-music-discord-rpc/