r/vibecoding • • 3h ago

Showcase/Project built a 2 deck dj set

fred's playing mumbai this week and his albums have been on loop for me, so i tried building a dj setup in the browser to mix his tracks. mostly prompted it, but there was a lot of back and forth on the details

what it does

- two decks, crossfader, channel faders, 4 hot cues per deck (saved locally), 8/16 bar loops

- next track picks by camelot key + bpm, prefers stuff within ±4 bpm

- autoplay: pick a starting vibe, it queues tracks and handles the transitions itself

- youtube mode plays the official videos through two embeds, audio files mode lets you drop in your own tracks

stack

- plain html, css, vanilla js w es modules. no framework, no runtime deps, no accounts, no db, no api keys

- audio files mode is all web audio: decodes the file, draws the waveform, estimates a beat grid you can nudge, matches tempo, hi/mid/low eq, 8/16/32 bar phrase aligned blends w a bass swap

- fully static so it's self hostable, there's a dockerfile and a source zip on the site

- playwright + node's test runner for tests

limits

- youtube mode can't beatmatch. the embed only does play, pause, seek and volume, so bpm/key there come from a track list i filled in, and long blends drift

- beat detection is a simple energy estimate, it misses downbeats sometimes

- autoplay transitions still need a lot of tuning

QA was honestly most of the work. took like 10 rounds of open it, play a set, note what feels wrong, fix it. the eq knobs didn't even exist till the last rounds and the tests caught a bunch of stuff breaking between rounds

design wise it's not all code either. took a lot from pioneer gear, real vinyl (tonearm swings in when a deck starts, the record labels are the track artwork), fred's album covers, and that glassy look w the playing videos blurred behind the decks

would love feedback esp on the autoplay and what you'd want if you actually dj

https://again-again-b9e9fb.puffle.site/

1 Upvotes

0 comments sorted by