/guide . 14 chapters . 0.3.0 UTC 2026.06.26 . UPLINK OK •
GUIDE
The framework, one chapter at a time. Each chapter is reconciled
against a doc in the bytesandbrains repository and
stamped with the source path at the top of the page. Read in order
for the first pass, jump in by surface after that.
- Chapter 01 Introduction What bytesandbrains is, what a Module records, and where the framework sits in the stack.
- Chapter 02.1 Install Toolchain requirements, cargo add bytesandbrains, the 0.3 crate family, and the contributors source build.
- Chapter 02.2 Getting Started One example, end to end. From Module body to a polled Node in a single file.
- Chapter 03 The IR and the DSL How the Graph recorder fills the ONNX ModelProto that the rest of the framework reads.
- Chapter 04 Syscalls Reference Every framework syscall: domain, op type, inputs, outputs, attributes, firing behavior.
- Chapter 05 Authoring Modules and Components Defining a Module, declaring ports, and registering concretes with the inventory.
- Chapter 06 Roles and Contracts The eight Contract roles the engine dispatches against and the trait family behind them.
- Chapter 07 Dependencies #[depends(...)] on bb::Concrete and the compile-time wiring between sibling components.
- Chapter 08 Types and Storage The hierarchical type lattice the compiler solves and the metadata it stamps onto the IR.
- Chapter 09 The Compiler The bind chain, the pipeline, and the typed CompileError variants that surface malformed input.
- Chapter 10 The Engine A sans-IO Node::poll driven by the host, with a single frontier and a lock-free ingress queue.
- Chapter 11 Wire and Addressing One WireEnvelope per cross-Node edge, multiaddr destinations, and the wire-cutting compiler passes.
- Chapter 12 Deployment How the same ModelProto runs in-process for tests and across hosts in production.
- Chapter 13 Examples Tour A guided read through the runnable programs in the examples/ directory.