expo/exact

GITHUB中文整理

主语言 Rust · 5,480 星 · MIT · 创建于 2026-11-02

全平台框架原生应用AI代理Rust
打开 GitHub 仓库

一个全平台应用框架,用一份代码在Web、iOS、macOS、Android和Linux上构建原生应用。

Stars 5,480 累计 star,越多说明被认可得越广
Watching 13 订阅该仓库变动的人数
Forks 180 被派生出去的仓库数
Issues 57 当前开放的 Issue 数
语言 Rust GitHub 自动判定的主语言
许可证 MIT 开源协议,用之前先确认能不能商用
24h 增长 +0 1 天前 5,480 星
7 日增长 +341 7 天前 5,139 星
30 日增长 — 数据积累中

仓库健康度

5 个维度
只看客观信号,不构成安全性结论
维护活跃度 数据完整
2026-12-01 18:09 最近推送

最近推送 2026-12-01 18:09(1 天前),属于活跃维护

社区响应 数据完整
57 开放 Issue

开放 Issue 57 个 · Fork 180 个

增长趋势 部分数据
+341 7 日新增

24 小时 +0 · 7 日 +341 · 30 日 积累中

项目规范 数据完整
MIT 许可证

许可证 MIT · 12 个 topics

版本发布 证据不足
— 发布次数

这一项暂无数据,不代表项目没有发布

「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。

Star 趋势

10 天记录
最近 90 天站内记录的星数
5,480当前 Star +442首尾差值 2026-11-24最早记录 2026-12-03最近记录

横轴 2026-11-24 → 2026-12-03,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。

它解决什么问题

据 README 归纳
没有它会怎样

传统跨平台工具为兼容多平台牺牲各平台优势,只能做到最低共同标准;使用这个框架可以让每个平台都按自身方式做到优秀,同时共享一份源代码。

核心能力

6 条
归纳自 README,不是功能列表照抄
  1. 1编写一次代码,在多个平台以原生方式运行
  2. 2让AI代理通过统一循环构建、运行、查看和测试应用
  3. 3以100毫秒冷启动和编辑到呈现为速度目标
  4. 4Web端首像素前不加载应用JavaScript
  5. 5提供约20KB的Web运行时并受硬性预算约束
  6. 6在各平台使用原生控件和渲染机制

项目画像

6 个角度
决定要不要用之前,先看这六条

项目定位

一个全平台应用框架,用一份代码在Web、iOS、macOS、Android和Linux上构建原生应用。

适合谁

需要同时覆盖Web、移动端和桌面端,并希望在各平台保留原生体验和性能的开发者。

典型场景

用一份代码构建同时运行在Web、iOS、macOS、Android和Linux上的应用;让AI代理在多个平台上自动构建、运行、查看和测试应用;需要原生控件和渲染体验,同时不想为每个平台重写代码

部署难度

需先克隆仓库并运行一次性安装脚本,脚本会配置Rust工具链、wasm-bindgen、Binaryen、Bun依赖、Playwright的Chromium等;可用检查命令验证前置条件。

风险限制

快速开始以Apple Silicon上的macOS为目标;Linux支持Web开发循环、Linux主机和iOS交叉编译;Windows支持Web开发循环和Windows主机,iOS构建需使用WSL 2和Ubuntu 24.04。

最近维护

最近一次推送是 2026-12-01 18:09。 实现方式:通过契约编译器将.contract文件编译成表和字节码计划,Web目标预编译成ES模块由浏览器处理布局绘制,原生主机用Rust虚拟机执行计划并管理组件实例和定时器。

README 原文细节

5 个板块
项目自己写的功能与用法,原文照录

怎么安装从零跑起来的步骤

Quick start

These steps target macOS on Apple Silicon. Linux supports the web dev loop, the Linux host, and iOS cross-compilation. Windows supports the web dev loop and the Windows host (use WSL 2 with Ubuntu 24.04 for iOS builds).

2. Clone and run one-time setup

setup provisions the rest once: pinned Rust toolchains and targets, wasm-bindgen, Binaryen (~/.cache/exact/binaryen), Bun dependencies, Playwright's Chromium (CHROME overrides it), offline crate caches, and attested Hermes bundles for TypeScript apps on native hosts. Run bun scripts/exact.mjs setup --check at any time to check prerequisites without changing your machine.

git clone https://github.com/expo/exact.git
cd exact
bun scripts/exact.mjs setup

怎么用最典型的用法与示例

Example apps

All in-repo apps live under apps/. Run any of them on the web with bun host/web/dev.mjs --app , on macOS with bun host/apple/build.mjs -apple --run, or on iOS by adding --ios.

环境与依赖跑它之前要准备什么

1. Prerequisites

  • Rust via rustup (the pinned stable toolchain in rust-toolchain.toml installs automatically on first build).
  • Bun 1.4.2, pinned in package.json (Node and npm are not needed). To install alongside another Bun version:
  • Xcode & Swift (macOS Apple builds only): Swift 6.4+ and the SDKs for each platform you target — macOS 26.0, iOS 27.1, or tvOS 27.0 (host/apple/devices.mjs). DEVELOPERDIR or TOOLCHAINS overrides xcrun'

实现原理它内部是怎么做的

How it works

  • Contract compiler (contract/): Four passes (syntax → types → analysis → lowering) compile .contract files into a plan of tables and bytecode. Constant data is baked into the plan at build time so the
  • Web target (host/web-js/): Compiles the plan ahead of time into one ES module over a ~20 KB runtime. The browser handles layout, transitions, and painting directly.
  • Runner & layout kernel (runner/, kernel/): On native hosts, a Rust VM executes the plan, manages keyed component instances, timers on a seekable clock, and the typed data seam. A columnar node arena c
  • Native hosts (host/): Apple hosts link a Rust static library under AppKit/UIKit presenters (ExactKit). Android replays Rust's paint stream onto HWUI RenderNodes alongside native EditText fields, Dialo
  • Data seam (js/, logic/, data/): TypeScript runs on precompiled Hermes bytecode natively and in the browser's engine on the web. Rust data crates run natively (or Wasm on web/iOS) and support live repl
  • Packages & on-demand artifacts (packages/, gpu/, game/): Over 60 first-party packages expose native platform capabilities, while heavy add-ons (wgpu GPU canvases, Markdown editor, text-around-shapes,

其它说明README 里剩下的内容

Platforms

The repository also ships tvOS and watchOS hosts, Android TV support in the Android APK, and a terminal host (exact-terminal) for command-line apps.

  • Web — Works — Browser DOM (~20 KB runtime, zero layout engine shipped)
  • iOS — Works (Simulator & device) — UIKit views, native controls, and system bars
  • macOS — Works — AppKit views and native controls (no SwiftUI)
  • Linux — Works — Exact's painter draws in a Wayland window, full-screen on a DRM/KMS console, or into a headless buffer.
  • Android — Works (Material 3 polish in progress) — Hardware-accelerated Android Canvas (RenderNode) with Material 3 styling, native EditText, dialogs, and Compose date pickers
  • Windows — Early — DirectX 11 (ink) or CPU painter (neutral look + Fluent symbols) with native file dialogs, IME, and UI Automation

Contents

  • Why Exact?
  • 1. Agent Native
  • 2. Speed is King
  • 3. No Compromises — Build Exactly What You Want
  • All-platform vs. cross-platform
  • Quick start
  • The agent loop
  • How an Exact app is written
  • How it works
  • Example apps
  • What works today, and what doesn't yet
  • Building for iOS on Linux and WSL
  • Working on Exact

1. Agent Native

Most frameworks bolt AI support on afterward with docs and wrapper scripts. Exact is designed around the agent loop so coding agents — and the humans directing them — can go from edit to verified native app on every platform without babysitting.

  • One driver operates every platform. The same 10 operations (tree, screenshot, tap, type, state, layout, logs, clock, prefer, perf) drive the web, macOS, iOS Simulator, physical iPhones, Linux, Android
  • Deterministic, seekable time. In driven mode, time only advances when the driver moves the clock (clock +60000, clock settle). Agents and tests never sleep() waiting for animations or network timers,
  • One-command verification. bun exact.mjs verify (and verify ios) builds the app, runs all authored tests, checks light and dark mode, multiple screen widths, accessibility trees, dynamic-type overflow,
  • Built to fit in context and fail clearly. UI is declared in Contract, a compact, strictly typed language with no hidden side effects, no data races, and one explicit boundary to app logic. An entire a

关于 exact 的常见问题

7 个问题
答案来自 README 归纳与 GitHub 实时数据
exact 是做什么的?

一个全平台应用框架,用一份代码在Web、iOS、macOS、Android和Linux上构建原生应用。 传统跨平台工具为兼容多平台牺牲各平台优势,只能做到最低共同标准;使用这个框架可以让每个平台都按自身方式做到优秀,同时共享一份源代码。

exact 有哪些功能?

核心能力:编写一次代码,在多个平台以原生方式运行;让AI代理通过统一循环构建、运行、查看和测试应用;以100毫秒冷启动和编辑到呈现为速度目标;Web端首像素前不加载应用JavaScript;提供约20KB的Web运行时并受硬性预算约束;在各平台使用原生控件和渲染机制。

exact 适合谁用?

需要同时覆盖Web、移动端和桌面端,并希望在各平台保留原生体验和性能的开发者。

exact 是怎么工作的?

通过契约编译器将.contract文件编译成表和字节码计划,Web目标预编译成ES模块由浏览器处理布局绘制,原生主机用Rust虚拟机执行计划并管理组件实例和定时器。

怎么安装 exact?

按项目 README 的说明:These steps target macOS on Apple Silicon. Linux supports the web dev loop, the Linux host, and iOS cross-compilation. Windows supports the ;setup provisions the rest once: pinned Rust toolchains and targets, wasm-bindgen, Binaryen (~/.cache/exact/binaryen), Bun dependencies, Play。完整命令见下方「怎么安装」一节或 GitHub 仓库的 README。

用 exact 有什么门槛或限制?

快速开始以Apple Silicon上的macOS为目标;Linux支持Web开发循环、Linux主机和iOS交叉编译;Windows支持Web开发循环和Windows主机,iOS构建需使用WSL 2和Ubuntu 24.04。

exact 现在还在维护吗?数据怎么样?

目前 5,480 星,180 个 Fork,主语言 Rust,创建于 2026-11-02,最近一次推送 2026-12-01 18:09,许可证 MIT。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。

这些内容来自哪

读法说明
中文整理据 README 归纳,数据取自 GitHub
中文说明据项目 README 归纳只写 README 能确认的内容,不替作者补功能与数字
关键数据与 GitHub 页面一致星数、Fork、语言与时间都不做二次加工
数据日期2026-12-01 13:13星数与介绍这份数据是哪一天的

项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-12-01 13:13。