Skip to content

Describe the workflow. Ship the service. ​

Mantle compiles YAML manifests into native SQL and typed TypeScript for SQLite/D1 and PostgreSQL. Applications own routing, identity and migrations, and compose REST, MCP, web pages and Admin around the generated operations.

AtomPurpose
SchemaStored rows, scope, indexes and lifecycle.
ViewOne SQL SELECT over declared Schemas.
ProcedureBusiness logic with typed inputs and outputs, as SQL or a handler.
TriggerHTTP or MCP exposure of a Procedure. Schedules and lifecycle hooks stay in app code.

Start building ​

You own the project files, manifests and service entry. mantle generate produces the target SQL and typed bindings; the application composes and deploys the service.

Find the details ​

NeedRead
Model a workflowThe four atoms, reads, writes and hooks
Control accessAuthorization, MCP and agents
Ship on CloudflareThe service and its entry, authentication, deploy and operate
Follow an exampleExamples
Look up syntax or APIsManifest reference, HTTP, MCP and Admin surfaces

The sidebar contains the full handbook.

How mantle-home is built ​

This site combines renderers according to the page's needs:

SurfaceRendering
Homepage and Builder shellHono JSX generates HTML at build time.
Interactive BuilderReact loads when needed. Builder projects stay in browser IndexedDB until saved to Mantle Cloud.
DocumentationVitePress generates static pages from the Core handbook and this site's introduction.

Hono JSX keeps the public shell renderable without loading the editor; React handles the interactive workspace. Shared styles and header/footer components keep them consistent. Kiwa supplied some copied components, not the site's runtime framework.

These are mantle-home's choices. Mantle Core does not require Hono JSX, React or VitePress; your application owns its frontend and templates.

Versions and agent access ​

These docs are the handbook shipped inside @aotter/mantle 0.2.0, the Core version pinned in apps/web/core.json; the footer links to its source commit. A project should read the copy in its own node_modules/@aotter/mantle/docs/, which matches the version it installs (agent setup).

Every page has a Markdown mirror, including this page. Agents can start from the documentation index.