exact README

The project's README from github.com/expo/exact. As one markdown file: README.md.

Exact

The all-platform app framework. Agent native. Built for speed. No compromises.

Exact is an all-platform framework for building real apps on the web, iOS, macOS, Android, and Linux — with Windows in active development, plus tvOS, watchOS, Android TV, and the terminal.

Exact is not a "cross-platform" framework. Cross-platform tools usually trade away each platform's strengths to maintain a lowest common denominator. Exact takes the opposite approach: build something excellent on every platform on its own terms — real DOM on the web, real UIKit on iOS, real AppKit on macOS, hardware-accelerated Material 3 rendering with native Android views on Android, and direct GPU/CPU rendering on Linux and Windows. Being all-platform is simply the side effect of getting every platform right from one source.

Everything in Exact is built around three priorities:

  1. Agent Native — Built from the ground up so coding agents can build, run, see, operate, and verify real apps on every platform through one deterministic loop.
  2. Speed is King — 100 ms cold starts, 100 ms edit-to-present reloads, zero app JavaScript before first pixel, and a ~20 KB web runtime, held to hard budgets.
  3. No Compromises — Build Exactly What You Want — Native platform controls with zero tells when you leave presentation unsaid; full creative control over layout, motion, graphics, shaders, and native platform objects whenever you want it.

[!NOTE] Exact is pre-1.0 and changes daily. There is no packaged release, API stability guarantee, or backwards-compatibility layer yet — you build from a checkout of this repository.

Web iOS macOS
Softwear's hoodies page in Chrome Softwear's hoodies page as a native iOS app Softwear's hoodies page as a native macOS app
The browser's own DOM and CSS UIKit views, native controls, and the system tab bar AppKit views and native controls

One source, three platforms, captured by Exact's agent driver. Softwear is a demo store from exact-templates (it displays Alternative Apparel's catalog, is not affiliated with that brand, and takes no orders or payments).

Platforms

Platform Status How it renders
Web Works Browser DOM (~20 KB runtime, zero layout engine shipped)
iOS Works (Simulator & device) UIKit views, native controls, and system bars
macOS Works AppKit views and native controls (no SwiftUI)
Linux Works Exact's painter draws in a Wayland window, full-screen on a DRM/KMS console, or into a headless buffer.
Android Works (Material 3 polish in progress) Hardware-accelerated Android Canvas (RenderNode) with Material 3 styling, native EditText, dialogs, and Compose date pickers
Windows Early DirectX 11 (ink) or CPU painter (neutral look + Fluent symbols) with native file dialogs, IME, and UI Automation

The repository also ships tvOS and watchOS hosts, Android TV support in the Android APK, and a terminal host (exact-terminal) for command-line apps.

Contents


Why Exact?

1. Agent Native

Most frameworks bolt AI support on afterward with docs and wrapper scripts. Exact is designed around the agent loop so coding agents — and the humans directing them — can go from edit to verified native app on every platform without babysitting.

2. Speed is King

Startup speed and feedback speed are hard architectural constraints, not tuning passes added later. Every budget in rules/RULES.md is checked continuously — the gate on every change, the rest hourly — and regressions are bisected automatically to the breaking commit.

Budget Target
Cold start to interactive first frame 100 ms p50
Dev reload, save to present 100 ms p50
App JavaScript executed before first pixel None
Touch one line, rebuild that crate 30 s
Blocking gate, warm, after a one-crate edit 30 s

How Exact hits those numbers:

3. No Compromises — Build Exactly What You Want

Exact refuses the classic false choice between "looks native, can't customize" and "fully custom, feels foreign." It makes every platform first-class so you never have to settle:

All-platform vs. cross-platform

Traditional cross-platform frameworks try to unify platforms by drawing their own world over every OS or bridging one runtime across disparate UI trees. Exact instead focuses on making each platform native, fast, and complete on its own — and all-platform falls out as a side effect.

Exact React Native Flutter
Approach All-platform: native excellence on each host, one source Cross-platform JS bridge / JSI over native views Cross-platform custom rendering engine
Agent workflow Built-in 10-op driver + seekable clock on every host External tools per platform integration_test
JS before first frame None (baked first frame, bytecode loaded after paint) JS bundle boots before UI N/A (Dart AOT)
Native controls UIKit / AppKit on Apple; Material 3 + native EditText/dialogs on Android; painted on Linux & Windows Native views on iOS & Android Custom-drawn widgets everywhere
Web output Browser DOM (~20 KB ES module) Separate react-native-web library Canvas / WebAssembly
UI & logic Contract UI + TypeScript, Rust, or zero-JS HTTP JSX / React (JS or TS) Dart widgets & logic
Layout Web-standard CSS (Chrome as reference) Yoga (column-first, no shrink) Custom constraint model

Honest trade-offs: React Native and Flutter are mature ecosystems with versioned releases, massive communities, and vast plugin registries (npm and pub.dev). Exact is pre-1.0 and changes daily: there is no packaged CLI or JSX/React layer, React Native and Flutter plugins do not work (data modules can import pure-JS npm packages, while platform APIs come from packages/), Windows is still early, and Android's Material 3 polish is still being completed.


Quick start

These steps target macOS on Apple Silicon. Linux supports the web dev loop, the Linux host, and iOS cross-compilation. Windows supports the web dev loop and the Windows host (use WSL 2 with Ubuntu 24.04 for iOS builds).

1. Prerequisites

2. Clone and run one-time setup

git clone https://github.com/expo/exact.git
cd exact
bun scripts/exact.mjs setup

setup provisions the rest once: pinned Rust toolchains and targets, wasm-bindgen, Binaryen (~/.cache/exact/binaryen), Bun dependencies, Playwright's Chromium (CHROME overrides it), offline crate caches, and attested Hermes bundles for TypeScript apps on native hosts. Run bun scripts/exact.mjs setup --check at any time to check prerequisites without changing your machine.

3. Let a coding agent build your first app

On a Mac with Xcode, Rust, and Bun installed, give Claude Code (or another coding agent) this prompt:

Clone https://github.com/expo/exact and follow its README to make a new Exact
app with `exact new`. Run `bun scripts/exact.mjs setup` once first. Make a todo
list where I can add items, check them off, delete them, and see how many are
left. Put the view in Contract and keep the list in `app.ts`. Write an
`app.test.contract`, pass it on web, macOS, and the iOS Simulator with
`scripts/agent.mjs`, then open the app for me on all three.

4. Or create and run one yourself

bun scripts/exact.mjs new ../hello          # or `bun link` once, then `exact new ../hello`
cd ../hello
bun exact.mjs contract types app.contract -o app.contract.d.ts
bun exact.mjs web                           # dev server at http://127.0.0.1:8765/
bun exact.mjs test web                      # runs *.test.contract
bun exact.mjs mac --run                     # native macOS app
bun exact.mjs ios --run                     # iOS Simulator (--device --run for a connected iPhone)

exact new scaffolds a standalone app: app.contract (UI), app.ts (data), app.json (manifest), and app.test.contract (tests). Native builds compile inside .exact/shells/, referencing your Exact checkout by path.

Run an included example app, serve on LAN, or upgrade an existing app

Run Caltrain (the v1 reference app) directly from the Exact checkout:

bun host/web/dev.mjs                    # Web at http://127.0.0.1:8765/
bun host/apple/build.mjs --run          # macOS
bun host/apple/build.mjs --ios --run    # iOS Simulator
bun scripts/build-linux.mjs caltrain    # Linux (Wayland window, DRM/KMS console, or headless)

Add --lan to dev.mjs to open the page from a phone on your local network (unrecognized Host headers receive 421 against DNS rebinding; use --allow-host <name> for tunnels). For Linux KMS rotation (EXACT_ROTATE) and VNC (EXACT_VNC), see docs/reference.md.

Run or install in-repo apps on macOS:

bun scripts/exact.mjs list
bun scripts/exact.mjs run markdown README.md
bun scripts/exact.mjs install markdown  # installs `mdview` on PATH

Upgrade an app created with an older checkout:

bun exact.mjs update
bun exact.mjs contract migrate app.contract
bun exact.mjs lock
bun exact.mjs contract build app.contract --json --errors-only

See Upgrading an inherited app for manual steps.


The agent loop

Driving any built host uses one consistent command surface (bun scripts/agent.mjs --help lists every operation and flag):

# Drive an app from the Exact checkout
bun host/web/build.mjs caltrain-web
bun scripts/agent.mjs web tree "tap change-station" "type station-search Palo" \
  "clock +60000" state "screenshot out.png"
bun scripts/agent.mjs web --test apps/caltrain/app.test.contract

# Drive an external app created with `exact new`
EXACT_APP_DIR=../hello bun host/web/build.mjs hello-web
EXACT_APP_DIR=../hello bun scripts/agent.mjs web --app hello tree "screenshot hello.png"

How an Exact app is written

Exact separates declarative UI (Contract) from data logic (TypeScript, Rust, or declarative HTTP). Contract uses standard CSS layout and property names so agents and web developers already know the vocabulary — without shipping a browser engine to native platforms.

The smallest useful app is a single file. It specifies no color, font, or size, so every platform draws its own native button:

component App
  state count = 0
  action increment
    count = count + 1
  view
    button press=increment
      text `Count: ${count}`

A complete Todo app

Three files — app.contract (UI), app.ts (data), and app.test.contract (all-platform test). Replace the starter files in an exact new app to run and test it on web, macOS, and iOS.

// app.contract — view, state, and actions. No colors or control sizes:
// each host renders its own heading, field, button, checkbox, and list.
shape Todo
  id: string
  title: string
  done: bool

shape Change
  count: number

component Todos
  state draft = ""
  mutation changed as shape Change refreshes todos
  resource todos = todos() as shape Todo[]
  derive left = todos.filter(t => not t.done).length

  action edit(value: string)
    draft = value
  action add
    if draft.trim() != ""
      send changed = addTodo(draft.trim())
      draft = ""
  action toggle(id: string, done: bool)
    send changed = setDone(id, done)
  action remove(id: string)
    send changed = removeTodo(id)

  view
    list appearance="auto" height="100%"
      section
        header
          text `${left} left` role="heading" testId="count"
        row
          input value=draft input=edit submit=add placeholder="What needs doing?" aria-label="New todo" testId="new-todo" flex=1 min-width=0
          button press=add buttonStyle="filled" testId="add"
            text "Add"
      section
        for t in todos key=t.id
          row delete=remove(t.id) testId=`todo-${t.id}`
            input type="checkbox" checked=t.done change=toggle(t.id) aria-label=t.title testId=`toggle-${t.id}`
            text t.title flex=1
            button press=remove(t.id) destructive=true testId=`remove-${t.id}`
              text "Delete"
// app.ts — owns the list and answers Contract's typed requests
import type { Answer, Sources } from './app.contract.d.ts';

export const grants = ''; // e.g. 'net.fetch https://api.example.com'

type Todo = { id: string; title: string; done: boolean };
let todos: Todo[] = [];
let next = 1;

const sources: Sources = {
  todos: () => todos,
  addTodo: ([title]) => {
    todos = [...todos, { id: String(next++), title, done: false }];
    return { count: todos.length };
  },
  setDone: ([id, done]) => {
    todos = todos.map((t) => (t.id === id ? { ...t, done } : t));
    return { count: todos.length };
  },
  removeTodo: ([id]) => {
    todos = todos.filter((t) => t.id !== id);
    return { count: todos.length };
  },
};

export const answer: Answer = (source, args, store, storage, native) =>
  sources[source](args, store, storage, native);
// app.test.contract — runs unchanged on every host via `exact.mjs test <host>`
test "add, finish and delete"
  expect text "count" == "0 left"
  type "new-todo" "Buy milk"
  tap "add"
  type "new-todo" "Walk the dog"
  type "new-todo" key "Enter"
  expect text "count" == "2 left"
  tap "toggle-1"
  expect text "count" == "1 left"
  tap "remove-1"
  expect tree missing "todo-1"
  expect tree has "todo-2"
WebmacOSiOS Simulator
The todo app on the web host The todo app on macOS The todo app on the iOS Simulator

The view never mutates the list directly. Actions send a typed mutation across the data seam, app.ts updates its state and returns a validated shape, and refreshes todos re-reads the list. To persist across launches, grant sqlite.open app:/data/todos.db and use storage.sqlite (see Fieldnotes).

If a source is a single HTTP request, skip app.ts altogether: declare the source in app.contract with its URL and JSON pointer, and native builds link no JavaScript engine. See the declared-source recipe and Weather Now.

Contract at a glance

Construct Purpose
shape Closed record type (number, string, bool, nested shapes, option<T>, T[]).
component UI unit (first in a file is root). Supports props, provide/inject, and slot/children.
state / derive Owned component state and reactive derived values. Under for, child state scopes to the keyed row.
resource / mutation Typed data reads (resource x = source(args) as shape T) and writes (send x = source(args) with refreshes, pending(), failed(), failure()).
source Declarative HTTP/GraphQL source in Contract itself — no app.ts required.
action / task State transitions (action) and scheduled work (every(1000, tick), after(ms, a), every(frame, a)).
view Indented elements, if … else, keyed for … key=…, match, and component calls.
style / class= Named property sets with no cascade; inline node attributes win.
fn & stdlib Pure single-expression helpers (no recursion) plus standard string/array methods (xs.map, s.trim(), formatDate, formatNumber; full list in plan/tables/format.json).
routes Router with retained per-tab stacks (open, push, replace, back, top).
font / use Compile-time font declarations and imports from sibling .contract files.
testId Stable handle for tests, the agent driver, and accessibility tools.

Guardrails that buy speed and reliability

$ cargo run -q -p contract -- build app.contract
app.contract:4:5 [type-assign] `count` is `number`, cannot assign `string`
app.contract:7:23 [lower-unknown-attr] `text` has no attribute `size`; `size` is spelled `font-size` here, the web's name

Other CLI subcommands: build --json, symbols, fmt (source-preserving), vocab (tag/property card), types (app.contract.d.ts), and rust (Rust shape bindings). Deep dives: docs/contract-for-humans.md, docs/contract-for-agents.md, docs/contract-grammar.md, and docs/recipes/.


How it works

flowchart LR
  subgraph author["You write"]
    C["app.contract<br/>view · state · actions"]
    D["app.ts or a Rust crate<br/>data sources"]
  end
  C --> K["Contract compiler"] --> P["Plan<br/>tables + bytecode"]
  P --> W["Web<br/>1 ES module, ~20 KB runtime,<br/>browser DOM & CSS"]
  P --> R["Rust runner<br/>+ layout kernel (Taffy)"]
  R --> M["macOS<br/>AppKit + CoreText"]
  R --> I["iOS<br/>UIKit + CoreText"]
  R --> A["Android<br/>HWUI Canvas + Material 3<br/>+ native EditText & dialogs"]
  R --> L["Linux / Windows<br/>Exact painter (GPU / CPU)"]
  D -.->|typed answers, checked against shapes| W
  D -.-> R
  1. Contract compiler (contract/): Four passes (syntax → types → analysis → lowering) compile .contract files into a plan of tables and bytecode. Constant data is baked into the plan at build time so the first frame needs nothing else.
  2. Web target (host/web-js/): Compiles the plan ahead of time into one ES module over a ~20 KB runtime. The browser handles layout, transitions, and painting directly.
  3. Runner & layout kernel (runner/, kernel/): On native hosts, a Rust VM executes the plan, manages keyed component instances, timers on a seekable clock, and the typed data seam. A columnar node arena computes layout via a patched Taffy with host text measurement (CoreText on Apple, cosmic-text/Parley on painted hosts).
  4. Native hosts (host/): Apple hosts link a Rust static library under AppKit/UIKit presenters (ExactKit). Android replays Rust's paint stream onto HWUI RenderNodes alongside native EditText fields, Dialog/PopupWindow surfaces, and Compose pickers (host/android/). Linux and Windows draw directly via Exact's shared painter (host/painted/, host/ink/).
  5. Data seam (js/, logic/, data/): TypeScript runs on precompiled Hermes bytecode natively and in the browser's engine on the web. Rust data crates run natively (or Wasm on web/iOS) and support live replacement. Capability grants gate network, files, SQLite, camera, and secrets.
  6. Packages & on-demand artifacts (packages/, gpu/, game/): Over 60 first-party packages expose native platform capabilities, while heavy add-ons (wgpu GPU canvases, Markdown editor, text-around-shapes, and the game engine) load only when used.

Example apps

All in-repo apps live under apps/. Run any of them on the web with bun host/web/dev.mjs --app <name>, on macOS with bun host/apple/build.mjs <name>-apple --run, or on iOS by adding --ios.

Best apps to learn from

Start with Shelf — it specifies no colors or font sizes (scripts/no-tells.mjs enforces it), showing how leaving presentation to the platform produces a native look on every host.

App What it demonstrates
Shelf Zero-tell native presentation with no hardcoded colors or font sizes
Caltrain Rust data crate, authored tests, routes, Canvas 2D map, optional GPU sky
Weatherlight TypeScript data with fetch, grants, and a wgpu sky shader
Weather Now Declarative HTTP sources in Contract — no app.ts, no JS engine
Fieldnotes SQLite storage, app-scoped files, backup and restore
Recorder Microphone capture via @exact/media-capture and @exact/recording

All screenshots below were captured on the web host by scripts/agent.mjs.

Caltrain Weatherlight Spark Expose
Caltrain
The v1 reference app: nearby stations, live departures, search, Canvas 2D line map, and aurora GPU sky. Rust data, every host.
Weatherlight
Open-Meteo weather under a GPU-animated sky that tracks the selected hour. TypeScript data and a wgpu module.
Spark
Swipe card deck with pan gestures, release velocity, and springs across every host.
Expose
Mock phone OS (lock screen, home, Messages with AI assistant, Reader) with custom fonts.
Calendar Sparkline Photo Editor Video Player
Calendar
Month pages, draggable sheets, drag-between-days events, themes, and SQLite. Lives outside apps/ (run with EXACT_APP_DIR).
Sparkline
Market list of animated SVG sparklines that draw in and pulse.
Photo Editor
Rotate, pan, and crop backed by a native module.
Video Player
Bundled video playback that resizes smoothly when the keyboard opens.
Exact Live Still, the interaction gallery
Exact Live
Production workspace: drag-to-reorder photo grid, crew chat handling 10,000-message bursts, and a Markdown runbook.
Still (Interaction Gallery)
Drag reorder, pan/zoom photos, resizable sheets with nested lists, and 100–25,000 records.
Reflow Textflow
Reflow
Typography studies after Cheng Lou's Pretext demos: text flowing around moving orbs, a dragon, masonry, and magazine spreads.
Textflow
Text wrapping around arbitrary shapes via shape-outside and wrap-flow, powered by one Rust walker shared by every host.
Markdown reader Conduit, the RealWorld app
Markdown
Markdown reader launched from Finder or CLI (mdview README.md), alongside LLP (llpview).
Conduit (RealWorld)
Medium clone against the hosted RealWorld API, benchmarked against React 19 (web only).
SVG Gallery
SVG Gallery — full SVG rendering verified pixel-for-pixel against Chrome across hosts.
Canvas Gallery
Canvas Gallery — HTML Canvas 2D drawn via browser Canvas, Core Graphics, or tiny-skia, held to Chrome.
More apps, labs, stress tests, and games
App What it shows Notes
Fieldnotes Local notebook with pins, search, SQLite, JSON backup/restore TypeScript + Rust
Messages Chat client talking to models via OpenRouter Needs bun apps/messages/service.ts + API key
Type Tour Type specimen for Expose fonts Zero JavaScript
Map Demo Native modules: MapKit on Apple, OpenStreetMap on web
Carousel Horizontal virtualized list of 25,000 cards
Motion Gallery Animated GIF/WebP and keyframe animations across hosts
Update Lab Live replacement of Contract, TypeScript, and Rust in a running app Hand-testing lab
Messages Stress, Completion Storm, Markdown Stress 100k-message histories, 128 parallel requests, 4 MiB documents Opt-in stress workloads
Native Fixture, Auth Fixture Native module interface; OAuth (PAR, DPoP, PKCE) against local server Test fixtures
Beacons, Tennis, … Optional game engine: Rust gameplay + Contract menus bun game/dev.mjs beacons

What works today, and what doesn't yet

Working

Android

Android runs real apps on emulators and physical phones (bun exact.mjs android, test android, agent android, verify android), supports live dev-loop reloads (android --run --url …), and packages signed Play Store App Bundles (android --bundle; see the phone release recipe). It needs the Android SDK, Rust target aarch64-linux-android (or x86_64-linux-android), and the Android Hermes bundle installed by exact setup.

Early: Windows

Windows builds, runs, and drives apps on Windows 11 x64 (bun exact.mjs windows [--run], test windows, agent windows, verify windows; x64 and ARM64 cross-compile in the hourly lane).

Not yet, or out by design

See QUEUE.md for what is queued next.


Building for iOS on Linux and WSL

You can compile, package, and sign iOS bundles from Linux or WSL 2 (Ubuntu 24.04) without running Xcode — execution still requires an iOS Simulator on macOS or an iPhone.

  1. Install Swift 6.4.2, xtool 1.24.0, LLVM 23, and apple-codesign 0.29.0.
  2. Download Xcode 27.1 from Apple and extract the SDK:
    APPIMAGE_EXTRACT_AND_RUN=1 xtool sdk install --slim /path/to/Xcode_27.1.xip
    
    (Omit --slim if you need watchOS simulator companions. In WSL 2, keep the checkout and SDK inside Ubuntu's Linux filesystem.)
  3. Add LLVM's bin directory, Swift, and rcodesign to PATH (plus zip for IPAs), and set EXACT_APPLE_LLVM_BIN (e.g. /usr/lib/llvm-23/bin).
  4. Run bun scripts/exact.mjs setup to install the iOS Rust targets, then build:
    bun host/apple/build.mjs --ios --no-install hello-apple
    # or inside an `exact new` app:
    bun exact.mjs ios
    

Linux defaults to an ARM64 simulator target (EXACT_IOS_SIM_ARCH=x86_64 selects Intel).

Device signing, Metal shaders via Wine, and production native-view roster qualification
  • Signed device archives: Set EXACT_IDENTITY to an absolute PKCS#12 path, EXACT_APPLE_SIGN_PASSWORD_FILE to its password file, EXACT_PROFILE to the app's provisioning profile, and EXACT_PROFILE_DIR for companion extension profiles (openssl required). Set EXACT_APPLE_SDK to override xtool's default ~/.swiftpm/swift-sdks/darwin.artifactbundle.
  • Icon Composer: Live SVG layers are kept for iOS 26+; older iOS versions use the manifest's PNG icons entry.
  • SVG filter kernels & Canvas 2D GPU on x86-64 Linux/WSL: Install Wine 9+, download Metal Developer Tools for Windows (6.2 / Metal 32023.850), extract with 7z x -o/path/to/metal-tools Metal_Developer_Tools6.2Windows.exe, and set EXACT_APPLE_METAL_TOOLS=/path/to/metal-tools. Wine runs only at build time (EXACT_APPLE_WINE and WINEPREFIX override defaults).
  • Custom native views in production builds: Production builds validate the compiled factories declared for the Apple host being built. For an iOS-only view, add {"tag":"map-view","hosts":["ios"]} to app.json’s modules and use it under if page.platform == "ios" with page bound to exactPage(). Import a simulator qualification with EXACT_NATIVE_ROSTERS=/path/to/qualification.json ({ "version": 1, "probes": [{ "probeSha256": "…", "roster": "<JSON object>" }] }). Copy the probe directory named in native-probes.json to a Mac and run xcrun simctl spawn <simulator> <directory>/ExactRosterProbe to obtain the roster JSON matching probeSha256. Development builds keep the manifest fallback.

Working on Exact

Before contributing to Exact itself, read rules/RULES.md and rules/DEFERRED.md (coding agents should also read AGENTS.md).

Repository map

Path Contents
kernel/ Columnar node arena, wire frames, Taffy layout, and kernel/tables/schema.json (single authority for node types, properties, and opcodes)
contract/ Contract compiler (syntax → types → analyze → lower), CLI, and corpus
plan/, runner/ Plan binary format and VM that executes it on native hosts
motion/ Transitions, springs, and the seekable clock for native hosts
host/ web/, web-js/, apple/ (ExactKit, AppKit, UIKit), linux/, painted/, ink/, windows/, android/, terminal/, render/
js/, logic/, data/ TypeScript/Hermes executor, Rust logic modules, and the typed data seam
packages/ First-party platform packages (camera, notifications, passkeys, geolocation, maps, health, etc.)
gpu/, canvas/, textflow/, markdown/ On-demand capabilities: wgpu, Canvas 2D, text-around-shapes, Markdown editor
route/, update/, bake/, filesystem/ Router, signed over-the-air updates, build baking, and app storage
apps/, examples/, game/ Example apps, Calendar example, and optional game engine
scripts/ exact.mjs, agent.mjs, smoke.mjs, metrics.mjs, deploy.mjs, gate.mjs
rules/ RULES.md and DEFERRED.md
vendor/taffy/ Taffy layout engine with Exact's patches

License and Snapback

Exact is MIT-licensed (LICENSE).

The optional Snapback client (snapback4/) is not included in this repository, and Exact works without it (exact new --snapback and bun exact.mjs snapback report the missing client). Checkouts that include it use published 0.4.33 with Rust revision 3653cae823145170df3e720f5e321bd1b5b4d79d (documented in snapback4/README.md).

exact (expo/exact)

framework
Searching Database…

What is this?Exact is a cross-platform application runtime: you write an app once and it runs natively on the web, macOS, iOS and Linux.
Is it just a webview wrapper like Electron or Tauri?No. Each platform draws the UI with its own tools (AppKit, UIKit or a GPU painter), and on the web it drives real DOM nodes, so no webview is involved.
How do I get it running?Clone the repo and run 'bun scripts/exact.mjs setup' to install the pinned Rust, Bun and Binaryen toolchains, then open apps/caltrain/app.contract in the browser loop. Create your own app with 'exact new'.
What do I need installed first?Rust via rustup, Bun 1.4.2 and Google Chrome for the web loop, plus Xcode for the macOS and iOS hosts. Setup fetches the Hermes bundle, which is only needed for TypeScript apps on native hosts.
What makes the web build so light?The web target runs on a ~20 KB runtime that drives the real DOM, and no app JavaScript runs before the first pixel. The README compares it with React's 81 KB in its RealWorld benchmark.
Does the layout follow CSS?Yes: a Rust layout kernel computes every box with CSS rules through a patched Taffy, and property names like font-size and object-fit are spelled the way they are on the web.
Why does the author say it is built for agents?Contract is kept small so a whole app fits in a context window, and the same operations work on every host, so an agent can make, run and check an app without a person in the loop.
What are similar projects?perry, ondine, Codync, happy, capacitor, expo, ng-native, craft-anything
Creator
expo
Size
220 MB
Stars
4.7K
Updated
CommitNov 18
Age
29d
Commits · 90 Days