This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index at /llms.txt, or add .md to any page's URL.
Contract: a guide for humans
Contract, the language of an Exact app, from the first component to delivery.
Contract describes an application's interface, state, and interactions. Exact
compiles it for the web and native hosts. You write the view once, in CSS's names
and layout; what you leave unsaid (controls, colour, type, how a press or a scroll
feels) is each platform's own (LLP 1115). Network access, persistent
storage, and substantial computation belong in a TypeScript or Rust data module.
This guide describes the implementation on main on 2026-10-02, including
immutable action locals, record construction, inferred action effects, and
component-level providers. The compiler and its tests are the authority.
Older Exact examples with writes clauses or component contract blocks no
longer compile.
Read this guide in order to learn the language, or use the contents as a reference.
The agent guide organizes the same language around
implementation and verification. The grammar reference
collects syntax, operator precedence, built-in functions, tags, and events.
Is this helpful
Last updated November 30, 2026