Skip to content

Checking your reading list…

Retry

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Expo's Exact: A Rust-Based, React-Free Cross-Platform Framework for AI Agents

Expo introduces Exact, a Rust-based cross-platform framework that abandons React and JSX for a custom declarative language called Contract, targeting AI agent development with sub-100ms startup, 20KB web runtime, and built-in automation commands for UI testing.

Expo's Exact: A Rust-Based, React-Free Cross-Platform Framework for AI Agents

Expo, the company behind the popular React Native toolchain, has quietly launched a new experimental framework called Exact . In early November, they published the Exact repository on GitHub ( https://github.com/expo/exact), where co-founders Charlie Cheever and James Ide are actively committing code. Within a month, the project accumulated over 5,400 commits, 2,200 pull requests, and 5,300 stars.

Technology Stack: Pure Rust, No React, No Bridge

The most striking aspect is the technology stack. Exact is written entirely in Rust and targets Web, iOS, macOS, Android, Linux, Windows, and the command line. It completely discards React, JSX, WebView, and the traditional JavaScript-to-native bridge. On macOS, it even bypasses SwiftUI and talks directly to AppKit .

The official demo application, Softwear , runs the same source code on Web, iOS, and macOS. Because developers do not hard-code colors or font sizes, each platform renders its own native controls, system tab bars, gestures, and accessibility behaviors, eliminating the typical "plastic" feel of cross-platform apps.

Expo Exact official demo Softwear running on Web, iOS, and macOS
Expo Exact official demo Softwear running on Web, iOS, and macOS

Contract: A Custom Declarative UI Language

Exact separates UI from data logic. Data logic can be written in TypeScript (compiled ahead-of-time to Hermes bytecode on native platforms) or Rust; simple screens can even declare HTTP requests directly in the UI file, avoiding a JavaScript engine altogether.

The UI layer uses a new declarative language called Contract . A minimal counter example is only seven lines and specifies no colors or dimensions; the framework renders a native button on each platform.

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

Developers accustomed to React may find the syntax restrictive: views cannot contain JavaScript or I/O, and actions forbid loops and await. All side effects are pushed to the data layer. Expo accepts this rigidity to guarantee startup speed and predictability. They enforce performance budgets in CI: cold start and hot reload medians stay under 100 ms, no application JavaScript runs before the first pixel, and constant data is baked into the execution plan at build time.

Web Performance: 26 KB Runtime, 300 ms Faster Interactivity

On the web, the compiled output includes only a ~20 KB runtime that manipulates the DOM directly. Using the RealWorld (Conduit) benchmark, Exact's web bundle weighed 26 KB versus 81 KB for React 19, and became interactive roughly 300 ms earlier than React's server-side rendering hydration completion.

Built for AI Agents

The repository's second line is a .claude/skills directory, and the project description leads with "Agent Native". The authors observe that AI-assisted frontend development today is blind: the model cannot see layout bugs, animation smoothness, or useEffect infinite loops. Most frameworks merely add documentation or wrapper scripts.

Exact embeds a full automation interface inside the framework. A single driver script, scripts/agent.mjs, exposes ten unified commands — such as tree, screenshot, tap, and clock — that control Web, iOS simulators, physical devices, and desktop apps simultaneously. After modifying the UI, the AI can click buttons, dump the widget tree, and capture pixel-perfect screenshots for verification.

Exact Live interface captured automatically by scripts/agent.mjs
Exact Live interface captured automatically by scripts/agent.mjs

Animations are also testable: the clock command steps a controllable clock, letting the AI slice a 600 ms animation into 50 ms frames and inspect each render. The Contract compiler reports up to 20 distinct errors with suggested fixes per run, and the language design eliminates common pitfalls like useEffect loops upfront, reducing the friction of AI-driven edit-build-verify cycles.

Not Ready for Production

The repository is clearly marked pre-1.0 . There are no packaged releases; APIs change daily, and anyone wanting to try must clone and build from source. Existing React Native and Flutter plugins are incompatible. Android Material 3 details and Windows support are still under construction.

Expo has stated that the current Expo and React Native toolchains will continue to be maintained; Exact is a separate experimental track. Whether it can eventually power real-world applications remains uncertain. Nevertheless, the fact that the biggest ecosystem driver for React Native is exploring a Rust-based, AI-first alternative without React is a signal worth watching closely.

Reference

[1] Exact:

https://github.com/expo/exact
About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

PerformanceCross-platformRustAI AgentDeclarative UIReact NativeExpoExact

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion