Exact发布智能体原生跨平台UI框架
Exact项目推出一个尚处于1.0前阶段的跨平台应用运行时,开发者在Contract声明式语言中描述界面,并使用TypeScript或Rust编写数据逻辑。项目称同一应用可原生运行于Web、macOS、iOS和Linux,智能体还能在受支持的平台上构建、检查、操作和测试应用。其文档还提供使用Claude Code创建待办应用的提示词,但现有报道没有独立验证其性能和兼容性主张。
Exact为构建和测试跨四个平台的原生风格应用提供了统一的智能体工作流,但其目前尚无API稳定性或向后兼容性。
Write an app once. It runs natively on the web, macOS, iOS, and Linux, and an AI agent can build it, run it, see it, and test it on every one of them.
Tip
Try it with a coding agent. On a Mac with Xcode, Rust, Bun, and Chrome installed, give Claude Code this prompt:
Clone https://github.com/expo/exact and follow its README to make a new Exact
app with `exact new`. Run `bun scripts/exact.mjs setup` once first. Make a todo
list where I can add items, check them off, delete them,
and see how many are left. Put the view in Contract and keep the list in `app.ts`.
Write an `app.test.contract`, pass it on web, macOS, and the iOS Simulator with
`scripts/agent.mjs`, then open the app for me on all three.
A fresh agent given an earlier version of this prompt on a clean clone (Hermes already in the machine cache, Cargo's cache warm) finished in about 57 minutes, and its tests passed on all three platforms. About 25 of those minutes were the first macOS and iOS builds, roughly 13 minutes each; later builds take a minute or two. On a machine that has lacked Hermes, its source build came first and added time. Current setup downloads and verifies the pinned host/iOS bundles once instead; ordinary builds stay offline.