Examples¶
Learn Calimero by exploring working examples. All examples include source code, README files, and Merobox workflow configurations.
Core Apps Examples¶
Core Apps Examples — Reference implementations from core/apps demonstrating SDK patterns and CRDT usage.
These examples live in calimero-network/core/apps:
- kv-store - Basic CRDT operations, key-value storage
- blobs - File/blob management with content addressing
- collaborative-editor - Text collaboration with RGA CRDT
- private-data - Private storage patterns
- team-metrics - Nested CRDT structures
- xcall-example - Cross-context communication
Quick start:
$: cd core/apps/kv-store && chmod +x build.sh && ./build.sh
> ...
> Finished `app-release` profile [optimized] target(s) in 14.04s
$: meroctl --node node1 app install --path res/kv_store.wasm
> ╭───────────────────────────────────────────────────────────────────────────────────╮
> │ Application Installed │
> ╞═══════════════════════════════════════════════════════════════════════════════════╡
> │ Successfully installed application 'A1fKrY7kkbqiJJU9oaG65NPRw2MCvrNESs31ERqg7gLo' │
> ╰───────────────────────────────────────────────────────────────────────────────────╯
Application Examples¶
For complete applications, see:
- Battleships - Multiplayer game -
battleshipsrepository - KV Store - Template app - Created via
npx create-mero-app
By Complexity¶
Examples organized by difficulty:
- Starter: Basic CRDT usage (kv-store, counters)
- Intermediate: Event handling, blob management, nested structures
- Advanced: Cross-context calls, complex state machines
Getting Started with Examples¶
- Clone or browse the repository
- Read the README for setup instructions
- Run
./build.shorpnpm run logic:build - Install on a local node using
meroctl - Explore the code and adapt patterns to your app
See Getting Started for installation and setup.