DEV Community

Cover image for Music Monday Spotify Open-Source Sync Bot
Mikey Dorje
Mikey Dorje Subscriber

Posted on

Music Monday Spotify Open-Source Sync Bot

I created small Ruby bot that syncs tracks from Music Monday's comments to a Spotify playlist, just in time for today's post.

Thanks to @tullis12 for the idea!

It’s live, open, and after a few tweaks seems to be boringly reliable. I started with the Spotify API, because it's a super easy setup but I have plans to expand it.

What It Does

  • Parses the MusicMonday series on music.forem.com for Spotify and YouTube links/embeds.
  • Maps YouTube → Spotify with simple heuristics; skips duplicates.
  • Runs on GitHub Actions (no servers, no DB).

Live Links

How It Runs

  • Schedule (UTC): Tue 00:00, Thu 12:00, Sun 23:00
  • Manual trigger: Actions → Run workflow (supports dry_run=true)
  • Required secrets: SPOTIFY_CLIENT_ID, SPOTIFY_CLIENT_SECRET, SPOTIFY_REFRESH_TOKEN, PLAYLIST_ID

Open to Contributors

  • YouTube playlist mirroring (keep a matching YT playlist in sync)
  • Bandcamp & SoundCloud detection/matching
  • Vibe‑based routing with Gemini (auto‑route to multiple playlists; later, fold in Spotify audio features)
  • Better matching (confidence/artist checks), fewer false positives
  • Cover art automation (explore Forem cover‑art tooling → playlist image)
  • Observability (clear logs/metrics), small DX improvements

If you want to hack on this, jump into the repo and open an issue/PR.

Have a listen!


It'd be cool to see this grow into an international community driven playlist from this platform. Seed the playlist with a comment

Top comments (0)