JamRoom works like a tiny Session View. Each column is a track (drums or synth), and each track has clip slots. Each clip is a 16-step loop (or longer).
- Click an empty slot to create a clip, then edit its steps in the editor below. Each click cycles a step through loud, soft and off. Drag to paint several steps.
- Press ▶ on a slot to launch it. Q / W / E / R launch whole rows (scenes).
- Synth rows are scale-locked to the song scale, so wrong notes are hard to hit.
- The MIX tab has volume, pan, filter, waveform, attack and release controls, plus a master limiter.
- Space plays and stops, 1–8 selects a track, Ctrl/Cmd+Z undoes only YOUR edits, and ? opens the shortcuts.
- All sounds are synthesized live with the Web Audio API, so there are no samples to load.
Every room has its own URL (?room=…). Share the link and anyone who opens it joins the same jam.
- Log in so other people can find you. Logged out, the app runs in solo mode and saves to localStorage.
- Every edit is a small operation (set_step, set_param, launch_clip…) with a revision counter. Edits to the same field are resolved last-writer-wins.
- When someone else edits a step, it flashes in their color. The ACTIVITY log shows who changed what.
- The COLLAB tab shows peers, their connection status (green = connected, yellow = connecting, red = gone) and room chat.
- "Publish jam" makes the song snapshot public. "Export" downloads it as JSON.
Browsers talk to each other directly over WebRTC DataChannels. The Berrry backend is used only as a signaling mailbox for that.
- Each peer posts a public jr-sig-{room} record that contains its id and its SDP offers and answers.
- Peers find each other through the public-data listing and read all mailboxes in a single batch request.
- After the handshake, operations, chat and cursors travel peer-to-peer (STUN: stun.l.google.com).
- Your song itself never sits on a server unless you publish it.
you ──offer──▶ Berrry mailbox ◀──answer── friend └────────── DataChannel (p2p) ──────────┘
Your own AI agent (Claude, a coding agent, a script) can join as a bandmate using the wa1 pairing protocol.
- Open CONNECT AGENT and create a pairing link. It points to SKILL.md#wa1.<token>.
- The token contains a WebRTC offer, a one-time mailbox id and a fresh AES-256 key. It sits in the URL #hash, so it is never sent to a server. It expires after 10 minutes.
- Your agent runs a small Node bridge (werift). The bridge answers the offer, signs it with a P-256 key, encrypts it with AES-GCM and drops it in the mailbox.
- Your browser decrypts the answer and checks the signature and DTLS fingerprint, then asks you: "Agent wants to connect". You choose: screen access, mouse + keyboard, or both.
- The agent controls the app through a localhost HTTP API: screenshot, state, click, key, op, chat.
POST 127.0.0.1:7878/cmd {"cmd":"op","op":{"type":"set_step",...}}
Three things keep you in control: the agent mode (drive, watch or paused), the permission toggles for notes, mix, tempo and transport, and a rate limit of 20 commands per second. You can also kick the agent from the bottom-left pill at any time.
Ideas for the future, in rough order of how much we'd like them. No promises: the roadmap was written by someone who still can't finish an 8-bar loop.
- Audio tracks & samplessoon-ish: drop in a WAV, chop it into slices and share it over the DataChannel in chunks.
- Live recording: arm a track and play notes with your keyboard, MIDI controller (Web MIDI) or phone, with quantize on input.
- Shared audio stream: the host sends a mixed audio stream to listeners, so everyone hears exactly the same timing.
- CRDT sync: replace last-writer-wins with a proper CRDT, so two people painting hats at the same moment can both win.
- Automation lanes: draw filter sweeps and volume rides per clip, and let agents perform them live.
- More devicesshipped: sidechain ducking from the kick, a bitcrusher, an arpeggiator, a chord generator and FM synthesis. They're all in the DEVICE panel.
- Agent bands: several agents in one room, each with a role (drummer, bassist, critic) and its own permissions.
- Agent "suggest" mode: agents propose edits as ghost notes, and you accept them with one click.
- Export: render to WAV/MP3 offline, export MIDI, and maybe import an Ableton .als (ambitious, bring snacks).
- Jam gallery: a public feed of published jams with remix chains, so you can see who ruined whose song.
- Mobile layout: a pad-first mode for phones, so your friend on the bus can play the clap.
Got an idea? Remix the app and build it. That's how most of these will happen anyway.