DEV Community

CharlieLZ
CharlieLZ

Posted on

Building a <100 KB Zero-Login 8-Track Web Audio Beat Sequencer & 16-Bit WAV Stem Exporter on Cloudflare Workers

Disclosure: I work on Sprunki.com, where we built the browser-based 16-step Beat Maker Studio (/mix) discussed below.

When we looked at how people actually sketch beats in a browser in 2026, two bottlenecks stood out immediately in our funnel metrics:

  1. Heavy audio bundles kill mobile retention — forcing visitors on cellular data or 4 GB school Chromebooks to download 30–50 MB of uncompressed samples causes massive pre-play drop-off.
  2. Account walls kill first-minute experimentation — requiring an email login before someone can share a 4-bar groove breaks creative flow.

Architectural Choices Behind sprunki.com/mix

Instead of shipping megabytes of static WAV samples to cold visitors, we built a deterministic, <100 KB Web Audio API synthesizer covering 8 rhythmic and melodic lanes (pitch-swept 808 kick, filtered noise snap/hat, saturated sub-bass, chord pad, lead hook, formant choir, and 16th-note FX arpeggiator):

  • Lookahead Scheduling: Using AudioContext.currentTime lookahead queues rather than raw setInterval ticks eliminates JavaScript main-thread jitter on low-power Chromebooks and mobile Safari.
  • Scale-Locked Dual Modes: A single toggle switches melodic quantization between C-major pentatonic (Sunlit Normal) and C-Phrygian (Dark Horror / Phonk), making it nearly impossible for beginners to write clashing notes.
  • Immutable Forkable Shortlinks on Cloudflare D1: Clicking Create Share Link serializes the 8×16 step grid, BPM, and mode into a compact 8-character shortlink (sprunki.com/mix/<id>). Opening a friend's link and editing steps never mutates their original track—saving mints a brand-new fork.
  • Client-Side 16-Bit 44.1 kHz WAV Stem Rendering via OfflineAudioContext: Rather than burning server CPU to render DAW stems, we render all 8 tracks and the stereo master locally in the browser and encode standard PCM RIFF WAV headers on the client.

2026 Benchmarks & Curated Open List

If you are comparing zero-install Web Audio music tools, you can test our sequencer with zero login at sprunki.com/mix, read our incognito side-by-side benchmark against Chrome Music Lab, BeepBox, and BandLab in 7 Best Free Online Beat Makers With No Sign-Up (2026), or browse our open curated directory on GitHub: awesome-browser-beat-makers.

Happy to share implementation notes on iOS Safari AudioContext.resume() quirks, lookahead scheduling drift, or MediaRecorder 9:16 canvas capture in the comments!

Top comments (0)