Ramesh Inampudi

Web apps

raVmiX: Building a Two-Deck DJ Mixer in the Browser

By Ramesh Inampudi · 2026-11-17 · 4 min read

Practicing DJ mixing usually means owning a controller, installing heavy desktop software and loading a library onto one machine. I wanted to see how much of that could be replaced by a web page. The result is raVmiX, a two-deck DJ mixer that runs entirely in the browser using the Web Audio API. Audio files never leave your computer, and no server is needed.

Why I built it

I build web apps, games and tools as side projects, and a DJ controller seemed like a good stress test for the browser's audio stack. It needs precise timing, real-time effects, low-latency scratching and a dense interface with many knobs, faders and pads. I modelled the layout on the Pioneer DDJ-FLX4, so the on-screen controls match a real piece of hardware, and so that the same page can also talk to that hardware over USB.

What it does

You press the power button, add songs (with the + ADD SONGS button or by dragging files onto the collection or a deck display), and load tracks onto deck 1 or 2. From there you mix.

Headphone cueing works three ways: a split cable (left channel is cue, right is master), the outputs 3/4 of a connected DDJ-FLX4 used as a sound card, or a second output device.

YouTube decks

You can also paste a YouTube link and load it like any song. This comes with a real limitation: YouTube plays through its official embedded player, so its audio cannot enter the mixer. On those decks you get play and cue, hot cues, loops, beat jump, tempo and volume control, but not EQ, filters, FX, scratching, waveforms, BPM detection or headphone cue. Tempo moves in 5% steps and keeps the key. The player uses privacy-enhanced mode, so it does not use your signed-in account, though YouTube may show ads. Videos whose owners disable embedding will not play.

How it works

The project is plain JavaScript, HTML and CSS, run with Vite (npm run dev serves it on port 5173, and npm run build outputs to dist). The code is split by responsibility:

The most reusable decision is putting playback in an AudioWorklet. Tempo changes, key lock using granular time-stretch, scratching, loops and slip mode all depend on deciding what sample to play next, many times per second. Doing that on the main thread, where it competes with UI rendering, would produce glitches. In the worklet it runs on the audio thread, and the UI just sends it parameters.

Separating the engine from the UI helps too. The on-screen controls, the keyboard shortcuts and the MIDI hardware all drive the same engine, so a physical button and its on-screen twin end up in the same code path.

MIDI and MIDI Learn

Clicking CONNECT MIDI connects a real DDJ-FLX4 over USB. A default map is built in. If a control does not respond, you click MIDI LEARN, click the on-screen control, then move the hardware control. Mappings are saved in the browser. Offering a learn mode is a pragmatic answer to hardware variations you cannot test everywhere. Web MIDI and output-device selection need Chrome or Edge.

What I learned

Try it

The live version is at https://ravmix.vercel.app. Press the power button, add two songs, load one on each deck and start mixing. Use Chrome or Edge for the full feature set, and press H to see the keyboard shortcuts.

To run it yourself, install dependencies with npm install and start npm run dev. Deployment to Vercel needs no environment variables, since Vercel detects Vite automatically.

Conclusion

raVmiX shows that a capable DJ mixer fits in a browser tab when the audio-thread work is handled by an AudioWorklet and the interface is kept separate from the engine. It is a side project and still has clear limits, especially on YouTube decks, but it works as a practice tool without installing anything. Feedback is welcome at hello@iramesh.com.

Live: https://ravmix.vercel.app