02 / Real-time collaborative DAW
DAWble
A browser-based digital audio workstation with a step sequencer, piano roll, arrangement and mixer, where producers edit the same beat live. Edits reach the other browser in about 200 ms.
- Built with
- TypeScript · React · Yjs (CRDT) · Cloudflare Durable Objects · Web Audio
- On this page
- OverviewHow it works
01 / Overview
One beat, two producers.
DAWble is a digital audio workstation that runs in the browser. Producers share a room and edit the same project at once: each sees the others' pointers and edits as they happen, and they can play the beat together with a shared playhead. The screenshots show a demo song, Night Shift: 140 BPM in F minor, with 9 channels, 8 patterns and a 32-bar arrangement.
- Step sequencer and piano roll
- 32-bar arrangement with audio clips and automation
- Mixer with EQ, compression, reverb and delay
- Live multiplayer editing and shared playback
02 / How it works
Shared state
The project is a Yjs (CRDT) document, so concurrent edits merge without conflicts. Edits reach the other browser in about 200 ms.
03 / How it works
Per-person undo
A 3-peer fuzz test (300 runs of 20–120 random edits) showed that Yjs's built-in undo could erase a collaborator's concurrent edits. It was replaced with per-person undo, so undo only reverses your own changes.
04 / How it works
Audio scheduling
A look-ahead scheduler (25 ms tick, 200 ms window) queues Web Audio events ahead of time, and reschedules at once when a collaborator edits during playback.
05 / How it works
Mixer
Each channel feeds a mixer track with its own effect slots (EQ, compression, reverb and delay) and sends to shared reverb and delay tracks.
06 / More detail
Under the hood.
- Sync server
- Rooms run on Cloudflare Durable Objects, with server-side validation and repair of shared data, hibernation between edits, hourly backups and per-connection rate limits.
- Testing
- Covered by 933 unit, 16 server and 99 browser tests, including two-browser multiplayer runs.