A browser source showing your currently playing Spotify track for use in streaming through software like OBS.
- Go to https://spotify.aryu.dev/
- Log in using your Spotify account, and click accept.
- You will now be redirected back to https://spotify.aryu.dev/ but with an access token and refresh token in the url. Copy this full url.
- Create a new browser source in OBS, paste in the link in the URL field, set width to 428, and height to 168
- Enjoy!
- Install Node.js
- Clone the repository
- Install dependencies using
npm i
- Set up an application in the Spotify developer platform, and add
https://localhost/callback
to the list of Redirect URIs - Create a certificate and private key. If running locally, using OpenSSL to create a self-signed certificate will suffice. If hosting the application online, I recommend using Let's Encrypt through certbot
- Copy
src/config.example.js
toconfig.js
and fill inclient_id
andclient_secret
found in the dashboard for your Spotify application, as well as changingprivateKeyPath
andcertificatePath
to point to the certificate and key you just created. - Done! Run using
npm start