Architecture Overview
Dalang is organized into four primary subsystems:
- Core Engine (
product/crates/dalang-core) — Wasmtime host, WIT binding, Kelir boundary - Edge Runtime (
product/crates/dalang-edge) — Scale-to-zero, memory pooling, shadow instances - Mesh Runtime (
product/crates/dalang-mesh) — Embedded LibSQL, Raft consensus, Gamelan router - Plugin Runtime (
product/crates/dalang-plugin) — Capability proxy, VFS, hot-swapping
WIT Contracts
All inter-component communication is defined in product/wit/. See the WIT Reference for full specifications.
Architecture Diagram
┌─────────────────────────────────────────────────────────────┐│ CLI / SDK │├─────────────────────────────────────────────────────────────┤│ Plugin Runtime ││ (capability proxy, VFS, hot-swap) │├─────────────────────────────────────────────────────────────┤│ Mesh Runtime │ Edge Runtime ││ (LibSQL, Raft, Gamelan router) │ (scale-to-zero, memory ││ │ pooling, shadow inst.) │├─────────────────────────────────────────────────────────────┤│ Core Engine ││ (Wasmtime host, WIT binding, Kelir) │└─────────────────────────────────────────────────────────────┘Next Steps
- CLI Reference — commands and flags
- WIT Contracts — interface definitions
- Contributing — how to build and test