Skip to main content
DOCS

Core concepts

Workspaces, specs, generation, branches, obligations — the vocabulary everything else builds on.

The mental model

Everything in Codata revolves around a workspace whose behaviour is described by a spec. Change the spec (through chat, MCP, or import), regenerate, and the whole backend — endpoints, types, SDK — updates with it.

Workspace
A self-contained backend with its own schema, endpoints, data, keys, and usage. One per app, environment, or experiment.
Spec
The single source of truth: assets (entities), endpoints, relationships, and rules. The runtime reads it; agents can edit it.
Asset
A unit of the spec — a data entity (Book, Order), or a managed service (auth, storage, realtime, agent, notifications).
Generation
The process that turns a spec into a live backend with typed SDK files. Repeatable and incremental.
Branch
An isolated copy of the spec plus its own deployed infrastructure. Fork, develop, merge back with conflict resolution.
Version
An append-only snapshot recorded on every deploy. Any version can be rolled back to.
Obligation
A checklist item that gates generation or go-live — owned by Codata, your agent, or you.
Integration kit
The generated project files (typed client, types, env template) your agent writes into your codebase.

Who does what

Codata splits responsibility three ways, and tracks it explicitly through obligations:

  • Codata — runs the backend: endpoint deployment, verification, hosting, email infrastructure.
  • Your coding agent — builds the app: UI, pages, wiring the SDK, inferring auth URLs from your project.
  • You — makes decisions and holds secrets: approving schemas, pasting API keys in the browser, buying domains.

Secrets never travel through chat or MCP. Whenever a secret is needed, Codata returns a deep link to the Settings page where you paste the value directly.

The golden rule

Your Codata workspace is the single source of truth for your data. Use the generated types directly. Don't add mappers, adapters, duplicate interfaces, or a second database next to it. If the generated shape doesn't fit, update the spec and regenerate.