Architecture
Client surfaces, the Convex control plane, execution targets and storage boundaries.
Control plane and execution plane
Surfaces
Next.js web · Electron desktop · Expo mobile · iMessage
authenticated intent
Step 1 of 4.Convex
Work Sessions · runs · approvals · leases · project and publication policy
bounded, leased tool requests
Step 2 of 4.Executors
Unified CLI · cloud REAPER / Live · approved linked machine
receipts, native files and renders
Step 3 of 4.Durable outputs
Project revision · content-addressed dependencies · playable artifact
Step 4 of 4.
What each surface owns
| Component | Responsibility | Boundary |
|---|---|---|
| Web / Next.js | Public site, Work Session UI, history, playback and review | Browser pages and browser-facing route handlers |
| Convex | Backend for every client: transactions, actions, scheduling and realtime queries | Authorization stays server-side |
| Desktop / Electron | Local machine connection, DAW adapters, Vault collection and restore | Main process and preload isolate native capabilities |
| Mobile / Expo | Conversation, playback, review and capture interfaces | Uses the shared backend; not a separate agent |
| JUCE plug-in / AUv3 | Master-bus capture, upload and connection status | Capture is not an orchestration authority |
| Unified CLI | Claim and execute authorized tools on the selected machine | Returns execution receipts, not musical decisions |
Request and storage boundaries
The public site is served by Next.js. Installed clients use Convex HTTP actions on the Convex site origin; new machine APIs do not need a Next.js proxy. Browser UI uses Convex queries and mutations for reactive state.
Convex stores application metadata and media references. Audio and project assets have explicit storage identities; the Vault uses hashes to identify dependency bytes. Installer distribution is separate from project storage. Cold-storage paths exist for Vault assets, so a file reference is not a promise that its bytes are already hot.
Provider actions and cloud provisioning are side effects outside a database transaction. Their outcomes must be bound back to a run, revision or artifact before the interface can truthfully show delivery.
Repository map
| Path | Read for |
|---|---|
| apps/web/convex | Shared backend, schema, orchestration and policy |
| apps/web/src | Web routes, public pages and workspace interface |
| apps/desktop | Electron bridge, native integration and local Vault |
| apps/mobile | Expo app and native Audio Unit extension |
| tools/adapters | DAW Code Mode adapters and unified CLI |
| packages/domain · packages/api-contracts | Shared domain and transport contracts |
| packages/evals | Transcribe, Rebuild and runtime evidence harnesses |
| plugin | JUCE capture plug-in and native tests |
Source reference
Reviewed 2026-11-28 · repository snapshot bc569ea. Repository access may be required.