Exact – a new cross platform UI framework by the Expo team github.com · 27 point...

@best

Exact – a new cross platform UI framework by the Expo team github.com · 27 points · 13 comments · HN thread

TL;DR Exact is a pre-1.0 cross-platform UI runtime from the Expo team that lets one app, described in a small declarative language called Contract plus TypeScript or Rust data code, run on the web, macOS, iOS, and Linux. It is designed so AI agents can build, run, inspect and test the app on each host through one ten-operation driver. The repository is an early alpha with no releases, no API stability, and no Windows or Android support yet.

  • Contract is a declarative view language; the compiler produces a plan that the web ships as one ES module over a ~20 KB runtime, while macOS, iOS and Linux run it in a Rust runner with a Taffy-based layout kernel.
  • The web host uses the browser's own DOM and CSS; Apple hosts draw with AppKit and UIKit, and Linux paints with vello GPU or tiny-skia CPU.
  • The project publishes performance budgets, such as 100 ms cold start to first frame and 30 s for rebuilding one crate, and claims about 300 ms earlier interactivity and 26 KB versus React's 81 KB on the RealWorld benchmark.
  • scripts/agent.mjs exposes ten operations (tree, screenshot, tap, type, state, layout, logs, clock, prefer, perf) on every host, and tests are written as app.test.contract scripts.
  • Exact is pre-1.0 with no backwards compatibility. Setup needs Rust, Bun 1.4.2, Xcode and Chrome, and the first native build takes roughly 10 to 15 minutes.
  • Windows is partially present (ink or CPU painters, with unfinished parity), Android is early, and Linux editing is not supported; the MIT license covers the workspace.

Discussion The thread is short and split between curiosity and skepticism. Several commenters note the project is an early alpha announced that day, so missing Windows, Android and Linux screenshots are expected. A few are impressed that the Expo team is behind it and see the agent-driven testing as a strong idea. Others question the emphasis on agents: one asks whether this is satire, and another worries that a framework built around AI-written code could be hard to use with weaker models. A commenter who builds declarative UI tooling says they would prefer a deterministic compiler or library approach to an agent-driven one. The mood is cautiously interested rather than hostile.

  • Early alpha; too immature to judge yet (many): Several commenters point out there are no releases and it was announced only recently. They treat missing platforms like Windows, Android and Linux screenshots as expected for a WIP.
  • Ambitious, and the Expo team can pull it off (some): Commenters credit the Expo team's experience with cross-platform sharp edges. One sees a possible return to native apps and away from Electron-style bloat, while calling it a long shot for now.
  • Agent-first design is a bad direction (some): Some object that prioritizing AI agents over human developer experience is a poor tradeoff. One argues a deterministic compiler or library approach would be better than an agent-driven one.
  • Doubts about AI-dependent frameworks (a few): One commenter worries the framework may only work well with the strongest frontier models, since its design leans heavily on models writing the code.
  • Agent timing control is the key idea (a few): One commenter values the agent controlling UI timing, since getting reliable interactivity from agents is hard otherwise.
  • Asking why Windows and Android are missing (a few): Some ask why Windows, the largest desktop platform, and Android are not supported. Replies point to the alpha stage and to the stated plan to add Android later.

#crossPlatform #uiFramework #expo #agents #nativeApps #alpha