DEV Community

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

Posted on • Edited on

Music Monday Spotify Open-Source Sync Bot

I created small Ruby utility that syncs tracks from Music Monday's comments to a Spotify playlist.

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 (9)

Collapse
 
art_light profile image
Art light

This is a clean, pragmatic automation—using GitHub Actions instead of standing up infra is exactly the right call for this scope, and the “boringly reliable” framing is a good sign. Expanding matching confidence and observability first would pay dividends before adding new sources, especially as community volume grows.

Collapse
 
mikeydorje profile image
Mikey Dorje

Thanks! Yes, matching confidence and observability first makes sense.

Collapse
 
art_light profile image
Art light

😎

Collapse
 
shahrouzlogs profile image
Shahrouz Nikseresht

This Spotify sync bot is such a cool idea! 🎧

It makes Music Monday feel even more like a community playlist, where everyone’s picks automatically collected and shared.

I’ve saved the playlist on Spotify already.

Thanks for building and open-sourcing this.

Collapse
 
mikeydorje profile image
Mikey Dorje • Edited

Glad you like it! Yes, a shared community playlist is the idea!

Collapse
 
ehsanpo profile image
Ehsan Pourhadi

Nice! i like it! i may add Soundcloud integration!

Collapse
 
mikeydorje profile image
Mikey Dorje

Cool! Soundcloud integration would be awesome!

Some comments may only be visible to logged-in visitors. Sign in to view all comments.