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
| Question | Design record | Implementation guide |
|---|---|---|
| Who owns UI state, and how does work cross threads? | ADR-0027: owner-affine UI runtimes, ADR-0171: UI runtime and host vocabulary | Runtime architecture |
| What is one frame, and where is a failed presentation contained? | ADR-0048: frame transaction boundary, ADR-0083: frame runtime | Runtime architecture |
Why are capabilities acquired outside build? | ADR-0078: rules in types and lints | View architecture, lifecycle |
| Where do platform contracts end and OS backends begin? | ADR-0082: platform contract crate | Platform API architecture |
| How do paint commands become a composited scene? | Pipeline overview | Rendering architecture, layer architecture, engine architecture |
| How are text measurement, carets and painted glyphs related? | ADR-0092: per-runtime text over Parley | Painting architecture |
| How do official packages use the framework? | ADR-0088: packages, SDK and facade | SDK 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.