Lace examples

Examples are runnable companions to the human-facing getting-started guides. They keep one runtime or application shape easy to run and copy; the guides carry the conceptual journey. Larger experiments live in incubator/.

Start with the central operation

first-interlace is the smallest complete two-participant example, with equivalent JavaScript, Python, and Rust companions. Each converges two selected records while one unrelated record stays at the source. Read it through the first-interlace tutorial.

Runtime companions

Example Shows
quickstart-local Local Record and store/list/get porcelain in JavaScript and Rust; no two-participant interlace
shared-todo-list Browser app with durable OPFS records and a laced WebSocket endpoint
rust-tokio-tcp-fs Rust app with filesystem-backed laces over TCP/ILTP
request-response-service Exact-hash-linked request and response records

For policy learning, begin with the Interlang policy guide, then use the scenario workbench for smaller executable cases. Good starting points are shared-todo-list, trusted-members, and private-review-conditional-notice.

Browser and JavaScript examples require the generated JS/WASM artifacts:

rustup target add wasm32-unknown-unknown
npm --prefix js/crates/lace-js run build

Applications should pin or self-host the exact artifacts they test.