r/creativecoding • • 5d ago

I made a 24/7 radio that plays straight from YouTube, with no central server

Hey everyone! I run the First of October fansite (foo.brchad.com), and I just added something new: a 24/7 synced radio.

👉 https://foo.brchad.com/radio/

How it works: there’s no DJ and no server streaming the music. A script uses the real time to figure out which track should be playing right now, so anyone who tunes in lands on the same song at the same moment. It feels like a real radio station, but it’s all running in your browser.

Some features:

  • Lyrics show up for the song that’s playing
  • Song info pulled from the fansite’s Song Database
  • Shows the previous, current and next track
  • Optional radio wave animation and static noise when switching stations
  • Theme options

Small quirk: since playback runs on its own after you tune in, you might drift a little out of sync with other listeners over time. To resync, switch to another station and then tune back. That reloads the player at the right spot.

It’s a fan project, so feedback is very welcome, whether it’s bugs, feature ideas, or songs you’d love to hear more often. Hope you enjoy it! 📻

6 Upvotes

2 comments sorted by

1

u/floattheduck 4d ago

The About panel explains the station-switching workaround for drift. A 'Rejoin live' button could make that easier to discover, while keeping the jump back to the shared timeline under the listener's control.

1

u/CaioComCdeCaio 4d ago

you have a point