@2lab.ai/beat-ui
Beat-synced live-code visuals as zero-dependency TypeScript patterns.
reefA beat writes its own Strudel code while three ASCII sharks circle a float and hunt on the drop. Space · D · Z. minimalA two-section beat, its code typing itself, and the beat grid — 70 lines.The patterns
- One clock for sound and picture (BeatClock)
- The score is the single source of truth (arrange, patterns)
- Code text with token ranges (LineBuilder)
- A typewriter that edits like a person (Typewriter, CodeView)
- The beat grid (beatGridHtml)
- The pitch roll (PitchRoll)
- A canvas drawn in cells (cellGrid, paintWater, causticNet)
- A spine creature (makeSpine, moveSpine, rasterSpine)
- A bait ball (swimSwarm)
- The drop and a hunt that answers it (DropState, steerHunter)
- A drum machine in plain WebAudio (Synth)
- Receipts: the page says what it shows, in numbers (exposeReceipts)