This widget is a simple OBS widget that displays the current song playing in your OBS scene. It uses the Last.fm API to get the current song playing on your Spotify account.
- Clone the repository
- Run
npm install
(or in my casebun install
) - Create a
.env
file in the root of the project with the following content:
VITE_LAST_FM_API_KEY=your_lastfm_api_key
VITE_LAST_FM_USERNAME=your_lastfm_username
VITE variables are used to expose the variables to the client side.
You can create your account here. You can get your Last.fm API key here.
-
Run
npm run dev
(or in my casebun run dev
) or deploy the project to Vercel or Netlify. -
Add the URL of the deployed project to OBS as a browser source.
-
Enjoy! 📻 🎶