Skip to content

Describe the workflow. Ship the service. ​

Mantle turns a YAML Manifest into a typed service. Core compiles your data model and operations into a RuntimePlan; your chosen adapter connects it to storage and exposes supported APIs.

AtomPurpose
SchemaStored data, indexes and lifecycle.
ViewA named read over a Schema.
ProcedureBusiness logic with typed inputs and outputs.
TriggerAn entry point to a Procedure: HTTP, MCP or a lifecycle hook.

Choose your runtime ​

Mantle runs on Cloudflare, Bun, Vercel Functions and in the browser. Their integrations differ; choosing an adapter does not enable every Mantle feature.

Host / adapterStorageWhat you get
Cloudflare WorkersD1REST and HTTP Triggers, plus integrations for Admin, Auth, MCP, public web and cache. Optional R2 and Queues.
BunYour bun:sqlite databaseRuntime, REST and HTTP Triggers. Your app owns the server, auth and other integrations.
Vercel FunctionsAn injected storage adapter; optional libSQL / Turso driverRuntime, REST and HTTP Triggers, with platform waitUntil. Your app owns auth and route composition.
Browser / IndexedDBAn application-owned browser databaseDirect runtime calls for local apps and previews. No mounted HTTP, Admin, Auth or MCP endpoints; SQL Views are unsupported. Sync is application-owned.

Core shares the Manifest model and execution pipeline across these adapters. Check the capability matrix and setup examples before choosing a host. The Worker quickstart below follows the Cloudflare path.

Start building ​

You own the project files and manifests/. mantle generate compiles existing manifests; it does not scaffold a project or fetch a Starter.

Find the details ​

NeedRead
Model a workflowThe four atoms, reads, writes and hooks
Control accessAuthorization, MCP and agents
Ship on CloudflareWorker composition, authentication, deploy and operate
Build public pagesTemplates, SEO and cache
Follow an exampleIntake, publication, reservation, commerce
Look up syntax or APIsManifest reference, HTTP, MCP, CLI and packages

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 Builder and Admin previewReact loads when needed. Builder projects and preview data stay in browser IndexedDB.
DocumentationVitePress generates static pages from the Core handbook, the Core examples hub, 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 source-pinned to the Core revision in apps/web/core.json, which is the published 0.1.5-alpha.1 release. The footer links to that exact handbook revision. Use version-matched guidance for npm installs.

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