Exact is an experimental cross-platform application runtime from Expo, built around a declarative interface language called Contract and application logic written in TypeScript or Rust. A compiler turns Contract into a compact plan that runs in a small JavaScript runtime using the browser’s real DOM on the web, or in a Rust runner on macOS, iOS, and Linux. Native versions use AppKit, UIKit, or a GPU renderer rather than embedding a web view, and can show a first frame without running app JavaScript. The framework aims to combine CSS’s familiar layout model and naming with controls, typography, accessibility, and other presentation that feel native to each platform.
A central design goal is making apps straightforward for AI agents to build and verify. One shared driver provides ten operations - including inspecting the interface, taking screenshots, tapping, typing, reading state, and controlling time - across web, desktop, and mobile; tests written as operation scripts can run unchanged on each host. Exact also prioritizes short startup and development cycles: its stated targets include a 100 ms interactive first frame and edit-to-update loop, while a sample fresh-app edit appeared in 99 ms. Its documentation reports a RealWorld benchmark runtime of 26 KB versus React’s 81 KB. The project is pre-1.0, changes rapidly, and offers no API stability or migration guarantees, so it is aimed at experimentation rather than applications that depend on a settled interface.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.