Jorge Turbica / blog · Blog ← All articles ES · Leer en español
Languages

Repo of the day: Exact, Expo’s native app framework your coding agent can test anywhere

Expo’s framework compiles one UI to native controls on web, iOS, macOS, Android and Linux, with a driver that lets your agent test it.

4,878 stars in 20 days. Exact, the app framework Expo pushed to GitHub on November 2, 2026, promises native apps on the web, iOS, macOS, Android and Linux from a single codebase, and it is built so a coding agent can build, launch, look at and test the app on every platform with the same commands. It is an Expo project, and it is not React Native.

What it is and how it works

Exact neither paints its own world on top of the OS nor relies on webviews or a bridge between a runtime and native views. It compiles the UI into a plan (tables plus bytecode) and each platform presents it with its own toolkit: the real DOM on the web, UIKit on iOS, AppKit on macOS, RenderNode with Material 3 styling and native EditText fields on Android, and its own GPU or CPU painter on Linux and Windows.

The UI is written in Contract, a typed declarative language that uses CSS property names. Data logic lives separately, in TypeScript (compiled ahead of time to Hermes bytecode on native), in Rust, or as HTTP reads declared in Contract itself with no JavaScript engine at all. On native hosts a Rust VM runs the plan and computes layout with a patched Taffy; on the web it becomes a single ES module over a runtime of roughly 20 KB. Network, files, SQLite, camera and secrets sit behind explicit grants.

The smallest app in the README is seven lines:

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

It sets no colors or sizes, so every platform draws its own native button.

What sets it apart: the agent loop

This is what explains the attention. A single driver, scripts/agent.mjs, operates every platform with the same ten operations (tree, screenshot, tap, type, state, layout, logs, clock, prefer, perf). Moving from the web to the iOS Simulator means changing one argument.

Time is deterministic: in driven mode it only moves when the driver moves it (clock +60000), so neither tests nor agents sleep() waiting for an animation to finish. And bun exact.mjs verify builds the app, runs its tests and checks light and dark mode, several widths, the accessibility tree and large-text overflow in one report. If flaky UI tests are your daily pain, the seekable clock is the most reusable idea here.

How to try it

There is no published package or CLI: you work from a clone of the repository. The README steps, on an Apple Silicon Mac:

bash
git clone https://github.com/expo/exact.git
cd exact
bun scripts/exact.mjs setup --check   # only checks prerequisites
bun scripts/exact.mjs setup
bun scripts/exact.mjs new ../hello
cd ../hello
bun exact.mjs web        # dev server at http://127.0.0.1:8765/
bun exact.mjs test web

You need Rust via rustup, Bun 1.4.2 as pinned in package.json and, for iOS and macOS, Xcode with Swift 6.4 or later. The README installs Bun with a curl | bash, and setup pulls Rust toolchains, Binaryen, Playwright's Chromium and Hermes bundles on its own; run setup --check to see what it will touch before letting it loose on your machine. The first native macOS or iOS build takes 10 to 15 minutes on a laptop; later ones take 1 to 2.

What I like and what I don't

I like that the numbers are enforced budgets rather than promises: 100 ms p50 cold start, 100 ms dev reload and no app JavaScript before the first pixel, watched by an hourly suite that bisects every regression to the commit that caused it. On the RealWorld benchmark the web build ships 26 KB of code against React 19's 81 KB, by the project's own measurements. I also like that sending usage notes to Expo is opt-in and that the notes never include code or command output.

What I don't: the README itself warns that Exact is pre-1.0 and changes daily, with no API stability guarantee and no compatibility layer; its rule is to delete rather than deprecate. Windows is early, Android still needs Material 3 polish and TalkBack checks on real devices, and React Native and Flutter plugins do not work: platform APIs come from its own 60-plus packages. Architecture decisions are also recorded in a private Expo repository, so from the outside you see the what, not always the why.

Exact vs Flutter

Flutter is the reference for one codebase with the same UI everywhere. Exact bets on the opposite: every platform should look like itself.

ExactFlutter
ApproachEach platform's native controls, driven by a compiled planIts own rendering engine drawing its own widgets
WebBrowser DOM, ~20 KB runtimeCanvas and WebAssembly
LanguagesContract for UI; TypeScript or Rust for dataDart
Agent testing10-operation driver and seekable clock on every platformintegration_test
LicenseMITBSD-3-Clause
MaturityPre-1.0, created November 2, 2026, no published releasesSince 2015, over 181,000 stars

The approach, web and testing rows come from the comparison in Exact's README, which also covers React Native.

When to pick which: for an app that has to ship this quarter, Flutter or React Native, with stable releases and a huge plugin ecosystem. Exact is worth a side project if your team already builds with coding agents and you are tired of not being able to verify the UI on iOS, Android and the web without a human in the loop, or if you want apps indistinguishable from native ones without writing them three times.

Sources

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗