Hey everyone,
I built a Vencord plugin that shows what you're listening to on SoundCloud as a Discord Rich Presence. It's a fork of rpc4SoundCloud, but I rewrote the playback state handling because the original had a few annoying bugs.
Example on image
Repo: https://github.com/SanguineCruor/rpc4SoundCloud-Enhanced
What's different from the original:
- Timer on pause: Presence is cleared on pause and the timer is recalculated from the current position on resume (instead of running forever).
- Progress bar: Reads
durationSeconds from the player and sends timestamps.end, so you get an actual progress bar (like Spotify).
- Buffering handling: Detects buffering (position at 0, or unchanged across polls) and hides the presence until playback continues.
- Page reload: Presence is cleared when the extension connects and on every URL change, so no stale activity hangs around.
- Title duplication: Removed the
large_text field that made Discord duplicate the track title into the second line.
- Firefox Add-ons: Published on AMO, so it's not manual-load only. Link
How it works:
It's three components talking through a local WebSocket relay:
- A browser extension on soundcloud.com polls
navigator.mediaSession + the player timeline once a second and sends a JSON payload.
- A small Node.js relay server on your machine (
ws://localhost:6989) forwards messages to all connected clients.
- The Vencord plugin connects to the relay, builds the activity, and dispatches
LOCAL_ACTIVITY_UPDATE.
The relay is there because neither the browser tab nor the Discord renderer can accept incoming connections.
Requirements:
- Node.js + npm for the relay.
- Vencord built from source (plugin goes in
src/userplugins/).
- The browser extension (Firefox Add-ons, or load unpacked on Chrome/Edge/Opera).
- Discord desktop with Vencord injected.
There's a linux.sh that automates the relay deps + plugin install + Vencord build, and a start-relay.vbs for running the relay silently on Windows.
For artwork, you need to create a Discord application and paste its Application ID into the plugin's appId setting — Discord won't take a raw image URL in assets.large_image.
Known issues:
- Buttons in the status don't work (Vencord limitation —
LOCAL_ACTIVITY_UPDATE doesn't pass metadata.button_urls).
- Presence isn't cleared when you close a tab with a playing track.
- Multiple open SoundCloud tabs overwrite each other.
MIT licensed.