Build Calimero Apps
A Calimero app is a sandboxed WebAssembly component that defines a
shared, replicated state machine — its data types and the methods that mutate
them. You write it in Rust against calimero-sdk, build it with
meroctl app build into a component of the calimero:app world, and ship it as a
signed .mpk package. Each running copy of it (an app instance) lives in an
organization and has its own Raft log: the cluster runs each call once on the
instance’s leader, on wasmtime, and replicates what it wrote.
Start here
Section titled “Start here”- Quickstart — build an example app, run a local cluster, call a method, pack a release.
- Build your first app — scaffold → state → methods → test → build → run → share, end to end.
- Ship the next release — change the state, test it against what you shipped, upgrade.
- Pick a how-to guide for the task in front of you.
- Keep the Reference open as you go.
Get started
Section titled “Get started”QuickstartFrom an example's source to a call on a local cluster.
Build your first appThe full guided walkthrough.
How-to guides
Section titled “How-to guides”All guidesTask-focused recipes.
Example appsAnnotated walkthroughs of real apps.
Testing your appTestApp on the real engine, and shared JSON scenarios.
Packaging & signingFrom a component to a signed .mpk a cluster installs.
Reference
Section titled “Reference”SDK macrosThe app macros, with examples.
Tables & CollectionsTables, collections, pages, costs and limits.
The env APIThe caller, the org, time, ids, events, cross-app calls, and the WIT imports underneath.
App interface (ABI)What the component declares and the node enforces.
Error handlingApp errors, SDK errors, traps, and what a client receives.
Deep dives
Section titled “Deep dives”Upgrades & stateWhat an upgrade keeps, and how to keep the state readable.
Access controlWho may call what, and write rules as data shapes.
Gotchas & sharp edgesThe non-obvious things that bite.