Write an app once. It runs natively on the web, macOS, iOS, and Linux, and an AI agent can build it, run it, see it, and test it on every one of them.

★ 4,375⑂ 115👁 12⑃ 212● 487▤ 0
RustMITCreated 2026-11-02
More from this author
+152
Daily
4,375
stars
115
forks
12
watchers
212
prs
487
issues
0
releases

README

Exact

Write an app once. It runs natively on the web, macOS, iOS, and Linux, and an AI
agent can build it, run it, see it, and test it on every one of them.

Android and Windows are early and in progress: an app builds and runs on both, and
what each still lacks is under Not yet, or not at all.

Building an app? With the tools installed (Quick start, step 1),
run bun scripts/exact.mjs setup once, make the app with bun scripts/exact.mjs new ,
and read docs/start-here.md (for a website,
docs/start-here-site.md): that guide is the only required
reading. The rest of this page describes Exact for people deciding whether to use it
or working on it.

 [!TIP]
 Try it with a coding agent. On a Mac with Xcode, Rust, Bun, and Chrome installed,
 give Claude Code this prompt:

 text
 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.
 

 A fresh agent given the earlier version of this prompt on a clean clone (2026-10-04, Hermes already in the
 machine cache, Cargo's cache warm) finished in about 57 minutes, and its tests passed
 on all three platforms. About 25 of those minutes were the first macOS and iOS builds,
 roughly 13 minutes each; later builds take a minute or two. On a machine that has
 lacked Hermes, its source build came first and added time. Current setup downloads and
 verifies the pinned host/iOS bundles once instead; ordinary builds stay offline.


  
    Web
    iOS
    macOS
  
  
    
    
    
  
  
    The browser's own DOM and CSS
    UIKit views, native controls and the system's tab bar
    AppKit views and native controls
  


One app.contract, the same screen on three hosts, captured by the agent driver. Softwear is a demonstration store you can generate from exact-templates: it shows Alternative Apparel's catalog, is not affiliated with that brand, and takes no real orders or payments.

Exact is a cross-platform application runtime. You describe your interface in
Contract, a small declarative language, and you write your data logic in
TypeScript or Rust; a plain HTTP read needs neither, as it can be declared in
Contract. The Contract compiler turns the interface into a compact
plan. On the web, that plan becomes one ES module over a ~20 KB runtime that drives
the real DOM. On macOS, iOS, and Linux, a Rust runner executes the same plan, a Rust
layout kernel computes every box with CSS rules, and each platform draws with its own
tools: AppKit, UIKit, or a GPU painter. There is no webview and no JavaScript bridge
in the UI, and no app JavaScript runs before the first pixel.

 [!NOTE]
 Exact is pre-1.0 and changes daily. There is no API stability, no backwards
 

Top issues

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON