Building Cross-Platform Native Apps with Expo Exact
GitHub Open Source
Build native apps for web, macOS, iOS, and Linux from one codebase, with built-in support for AI agent testing.
Repository snapshot
- Repository: expo/exact
- Language: Rust
- License: MIT
- Stars: 4 139
- Forks: 100
Daily open-source picks: GitHub Open Source on Telegram
What it is
Exact is a cross-platform application runtime that separates your interface definition from your data logic. Instead of building a webview-based app or managing separate native codebases, you describe your UI in a declarative language called Contract. This contract is compiled into a plan that executes on a lightweight runtime. On the web, this is a 20 KB module that drives the DOM; on macOS, iOS, and Linux, it is a Rust-based runner that uses native controls or a GPU painter to render your app.
Why it matters
Most cross-platform tools rely on JavaScript bridges or heavy webviews, which often lead to performance bottlenecks and inconsistent behavior across platforms. Exact bypasses these by using a Rust-based layout kernel that computes UI boxes using CSS rules. Because the runtime is designed to be driven by AI agents, you can write tests that run identically on the web, macOS, and iOS without needing to manage separate test evaluators or handle flaky timing issues.
Key features
- Native Rendering: Uses AppKit, UIKit, or a GPU painter instead of webviews.
- Agent-First API: Includes ten standardized operations (like
tap,type, andscreenshot) to drive testing across all hosts. - Performance: Designed for sub-100ms cold starts by avoiding heavy JavaScript execution before the first pixel.
- Declarative UI: Uses a small, typed language that fits within an AI context window, making it easier for agents to generate and maintain code.
Quick start
To get started, ensure you have Rust, Bun, and Xcode installed, then run the following commands:
bun scripts/exact.mjs setup
bun scripts/exact.mjs new my-appWho should try it
Exact is for developers who are comfortable with early-stage, pre-1.0 tooling and want to avoid the overhead of traditional cross-platform frameworks. If you are building an app that needs to feel native on Apple platforms while maintaining a web presence, and you want to leverage AI agents for your testing pipeline, this is worth exploring.
Verdict
Exact is an ambitious project that trades the flexibility of standard webviews for strict, native-first performance. It is not for those who need API stability or a mature ecosystem today, but it offers a compelling vision for how we might build and test apps in an AI-assisted future.
Continue exploring
Get the next pick in Telegram: Follow GitHub Open Source
Curated from the repository README and metadata. No hands-on test is claimed; evaluate it in a sandbox before production use.