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.
Blogmantle-web composes content and SEO; the site's templates render HTML on request using the shared Hono JSX shell.
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 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 cover an unreleased development snapshot. The site's SDK is source-packed from Core 3ed5b7f, retaining the 0.1.0-alpha.17 label; it is not the npm alpha.17 release artifact. The footer links to the pinned 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.