hn.today

Exact – a new cross platform UI framework by the Expo team

github.com132 points106 comments
Screenshot of Exact – a new cross platform UI framework by the Expo team

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.

Read on github.com106 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.