streamable-httpMITupdated 8d ago
A multiplayer step sequencer with polyrhythmic patterns, built for real-time collaboration.
What can you do with Keyboardia?
Keyboardia
A multiplayer step sequencer with polyrhythmic patterns, built for real-time collaboration.
Features
- Real-time Multiplayer - Up to 10 players can jam together on the same session
- Polyrhythmic Patterns - Each track can have 3-128 step counts (26 options including triplet-friendly values)
- 70 Sound Generators - 32 Web Audio synths, 11 Tone.js FM/AM synths, 27 sampled instruments
- 27 Sampled Instruments - Grand piano, 808 kit, acoustic drums, Hammond organ, kalimba, steel drums, strings, guitars, sax, and more
- Effects Chain - Reverb, delay, chorus, and distortion with limiter (full multiplayer sync)
- Parameter Locks - Per-step pitch, volume, and tied notes automation
- Chromatic Grid - Two view modes: "Events" (key intervals + used pitches) and "All" (49 pitches from -24 to +24)
- Scale Lock - Constrain chromatic grid to selected musical scale with out-of-scale warnings
- Scale Sidebar - Visualize scale notes with root/fifth emphasis and active usage highlighting
- Per-track Swing - Global and per-track swing settings for groove control
- Session Sharing - Share links, remix others' work, publish immutable sessions
- QR Code Sharing - Mobile-friendly session sharing
- Agent Rhythm Editing (Experimental) - Co-edit, create, remix, publish, export, and analyze sessions through stateless MCP
Use with an agent
Configure your MCP client with:
https://keyboardia.dev/mcp
To co-edit music you already have, open a session and give the agent the UUID
from its https://keyboardia.dev/s/{session_id} URL. Agents can read the
current rhythm, add a track, assign specific steps, and change tempo. Their
edits use the same live session as connected browsers, and published sessions
stay read-only.
Agents can also start from nothing: create a new session and hand back its link, remix a published session into an editable copy without touching the original, publish the current result as an immutable snapshot when you ask, and export the session as a MIDI file for a DAW.
They can explain music too ā ask what key a session is in, how its rhythms sit against each other, or what chord a moment forms, and the answer comes from the same music-theory module the Key Assistant uses, with its uncertainty stated rather than hidden.
See the stateless MCP rhythm-slice specification for the exact tool contract and current limitations. Directory maintainers can use the canonical MCP listing record, and hosted data handling is described in the MCP privacy notice.
Tech Stack
- Frontend: React 19, TypeScript, Vite
- Audio: Web Audio API, Tone.js
- Backend: Cloudflare Workers, Durable Objects, KV Storage
- Real-time: WebSockets with Hibernation API
Getting Started
cd app
# Install dependencies
npm install
# Start development server
npm run dev
# Run tests
npm run test:all
# Build for production
npm run build
Development
Debug Mode
Add ?debug=1 to the URL to enable debug features:
- Event tracing
- Audio state debugging
- Persistent log storage
- Bug pattern detection
See docs/DEVELOPMENT-TOOLS.md for comprehensive debugging documentation.
Project Structure
app/
āāā src/
ā āāā audio/ # Audio engine, synths, effects, scheduling
ā āāā components/ # React UI components
ā āāā hooks/ # React hooks (useSession, useMultiplayer, etc.)
ā āāā state/ # State management (grid reducer)
ā āāā sync/ # Multiplayer synchronization
ā āāā worker/ # Cloudflare Worker (Durable Objects, API routes)
ā āāā utils/ # Logging, debugging, utilities
ā āāā debug/ # Debug overlay and context
āāā e2e/ # End-to-end tests (Playwright)
āāā test/ # Integration tests
āāā scripts/ # Development and debugging scripts
Key Files
| File | Description |
|---|---|
app/src/audio/engine.ts |
Main audio engine - coordinates all audio subsystems |
app/src/audio/scheduler.ts |
Drift-free lookahead scheduling (25ms timer, 100ms lookahead) |
app/src/audio/synth.ts |
16-voice polyphonic synthesizer with voice stealing |
app/src/audio/toneSynths.ts |
Tone.js synth manager (FM, AM, Membrane, etc.) |
app/src/audio/toneEffects.ts |
Effects chain (reverb, delay, chorus, distortion) |
app/src/sync/multiplayer.ts |
WebSocket client for real-time sync |
app/src/worker/live-session.ts |
Durable Object for session state |
Testing
cd app
npm run test:unit # Unit tests (vitest)
npm run test:integration # Integration tests (Cloudflare Workers)
npm run test:all # All tests
npm run analyze:bugs # Static bug pattern analysis
Architecture
Audio Signal Chain
Source (Oscillator/Sample)
ā Track Gain (per-track volume)
ā Master Gain
ā Effects Chain (Tone.js: reverb ā delay ā chorus ā distortion)
ā Limiter
ā Compressor
ā Destination
Synth Engines
- SynthEngine (
synth.ts) - Native Web Audio oscillators, 40+ presets - ToneSynthManager (
toneSynths.ts) - Tone.js FM/AM/Membrane synths - AdvancedSynthEngine (
advancedSynth.ts) - Dual-oscillator with filter envelope and LFO - SampledInstrument (
sampled-instrument.ts) - Sample-based playback (piano)
Multiplayer Architecture
Client A āā Durable Object āā Client B
ā
DO Storage (immediate)
ā
KV Storage (on disconnect)
- Each session is a single Durable Object instance
- WebSocket connections use Hibernation API for cost efficiency
- State changes broadcast to all connected clients
- Hybrid persistence: Mutations saved immediately to DO storage, KV updated on disconnect
Documentation
- ROADMAP.md - Implementation phases and status
- SYNTHESIS-ENGINE.md - Audio architecture spec
- SHARING-AND-PUBLISHING.md - Session persistence spec
- DEVELOPMENT-TOOLS.md - Debug tools reference
- UI-PHILOSOPHY.md - Design principles
- LESSONS-LEARNED.md - Debugging war stories
License
Bundled instrument samples are third-party content with their own licenses (CC0, public domain, and similar free-use terms), documented in app/public/instruments/LICENSE.md.
Install
Add Keyboardia to your client. Pick the one you use.
claude mcp add --transport http keyboardia https://keyboardia.dev/mcpcodex mcp add keyboardia --url https://keyboardia.dev/mcp{
"mcpServers": {
"keyboardia": {
"url": "https://keyboardia.dev/mcp"
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"servers": {
"keyboardia": {
"type": "http",
"url": "https://keyboardia.dev/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
{
"mcpServers": {
"keyboardia": {
"url": "https://keyboardia.dev/mcp"
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"keyboardia": {
"serverUrl": "https://keyboardia.dev/mcp"
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
Score
39 / 100
Incomplete
- Documentation21/25
- Maintenance19/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 1 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 6 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint ā no local install
Version history
| Versions | Published |
|---|---|
| 1.1.0Latest | Jul 31, 2026 |