Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Architecture

FLUI has two maps: the tree pipeline explains how UI becomes a frame, and the workspace tiers explain which crates may depend on which. Start with the concept overview for the trees, then use this page to find the design records behind a particular subsystem.

The architectural source lives in the repository’s own documentation. Crate manifests declare the dependency rules, which a change is read against before it merges; CI’s checks job checks repository documentation links with lychee. These checks do not establish that every described behavior is implemented. For a decision’s implementation and migration state, read its status and the architecture file of the owning crate.

Start here

  • docs/architecture.md — the pipeline overview (View → Element → RenderObject → Layer → flui-engine → wgpu).
  • docs/adr/ — the cross-crate decisions the code follows, one file per decision.
  • AGENTS.md — the design stance and the rules the compiler and gates enforce.
  • docs/crates.md — crate responsibilities and the dependency map.

Follow a subsystem

QuestionDesign recordImplementation guide
Who owns UI state, and how does work cross threads?ADR-0027: owner-affine UI runtimes, ADR-0171: UI runtime and host vocabularyRuntime architecture
What is one frame, and where is a failed presentation contained?ADR-0048: frame transaction boundary, ADR-0083: frame runtimeRuntime architecture
Why are capabilities acquired outside build?ADR-0078: rules in types and lintsView architecture, lifecycle
Where do platform contracts end and OS backends begin?ADR-0082: platform contract cratePlatform API architecture
How do paint commands become a composited scene?Pipeline overviewRendering architecture, layer architecture, engine architecture
How are text measurement, carets and painted glyphs related?ADR-0092: per-runtime text over ParleyPainting architecture
How do official packages use the framework?ADR-0088: packages, SDK and facadeSDK architecture

Use the implementation guide to find the invariants and named tests for a decision. A record may describe a migration with only some moves landed; the presence of an ADR is not a promise that its whole target is available through the public API.

Per-crate architecture

Most crates carry their own crates/<crate>/ARCHITECTURE.md for the design decisions local to it, including a ## Mapping decisions section recording those decisions.

Architecture Decision Records

Protocol-level decisions — ones that change a contract more than one crate depends on — are recorded as ADRs under docs/adr/. Browse the directory by filename (ADR-NNNN-<slug>.md) or search the repository for the number cited by the code or comment you’re reading. Read the record’s Status first, then follow its related decisions and migration notes. An ADR that revises an earlier one carries an explicit Supersedes:/Superseded-by: pair — see AGENTS.md’s ADR Policy.