Weave
08 · Build surface

weave-sdk

The fastest way to ship on Weave. Boot a node, mount a drive, publish to WOVEN, replicate over the swarm — in a few lines. Identity adapters, capability proxying, agent-friendly defaults.

Concepts
  • 01Compose identity, storage, and networking into a single node.
  • 02Identity adapters: Ed25519, DID, custom.
  • 03Capability proxying for delegated agents.
  • 04Sensible defaults — production-ready in a few lines.
Code
use weave_sdk::{Node, NodeConfig, woven, locus};

let node = Node::builder()
    .config(NodeConfig::production("weave-node-01"))
    .with_dht().with_swarm().with_locus()
    .open().await?;

node.locus().mount("team/notes").await?
    .write("hello.md", b"# Off-chain").await?;
node.woven().publish(woven::Event::post("hello, peers")).await?;