wasm-capability-contract
TLDR: The contract layer (SEA L1) for the capability pattern — zero implementation, just the
CapabilityEngine/CapabilityRegistry/CapabilityDispatcher/ComponentValidatortraits and the component/capability types they're expressed in terms of.
| Trait | Role |
|---|---|
CapabilityRegistry |
Resolves a capability name to its dispatch descriptor |
CapabilityDispatcher |
Executes one granted capability call |
CapabilityEngine |
Loads and invokes a validated Wasm component's handler export |
ComponentValidator |
Checks a component before its route is ever registered |
Most consumers won't depend on this crate alone. For CapabilityRegistry, see the
sibling wasm-capability-core crate
in this same repository for a real, default implementation. A technology-specific
implementation of the other three traits (wrapping wasmtime, wasmparser, an HTTP/gRPC/MCP
transport, etc.) belongs in its own downstream consumer crate instead -- this repo has no
dependency on, or knowledge of, any of them.
Documentation
| Document | Description |
|---|---|
| Overview | WHAT + WHY |
| Architecture | Component diagram, crate boundaries |
| ADR-001 | Full design record for this contract/core split |
License
MIT OR Apache-2.0