Skip to content

Architecture

Client surfaces, the Convex control plane, execution targets and storage boundaries.

Control plane and execution plane

  1. Surfaces

    Next.js web · Electron desktop · Expo mobile · iMessage

    authenticated intent

    Step 1 of 4.
  2. Convex

    Work Sessions · runs · approvals · leases · project and publication policy

    bounded, leased tool requests

    Step 2 of 4.
  3. Executors

    Unified CLI · cloud REAPER / Live · approved linked machine

    receipts, native files and renders

    Step 3 of 4.
  4. Durable outputs

    Project revision · content-addressed dependencies · playable artifact

    Step 4 of 4.
A client submits intent; the backend owns orchestration; an executor owns DAW actions.

What each surface owns

ComponentResponsibilityBoundary
Web / Next.jsPublic site, Work Session UI, history, playback and reviewBrowser pages and browser-facing route handlers
ConvexBackend for every client: transactions, actions, scheduling and realtime queriesAuthorization stays server-side
Desktop / ElectronLocal machine connection, DAW adapters, Vault collection and restoreMain process and preload isolate native capabilities
Mobile / ExpoConversation, playback, review and capture interfacesUses the shared backend; not a separate agent
JUCE plug-in / AUv3Master-bus capture, upload and connection statusCapture is not an orchestration authority
Unified CLIClaim and execute authorized tools on the selected machineReturns 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

PathRead for
apps/web/convexShared backend, schema, orchestration and policy
apps/web/srcWeb routes, public pages and workspace interface
apps/desktopElectron bridge, native integration and local Vault
apps/mobileExpo app and native Audio Unit extension
tools/adaptersDAW Code Mode adapters and unified CLI
packages/domain · packages/api-contractsShared domain and transport contracts
packages/evalsTranscribe, Rebuild and runtime evidence harnesses
pluginJUCE capture plug-in and native tests

Source reference

Reviewed 2026-11-28 · repository snapshot bc569ea. Repository access may be required.