# expo/exact

> Exact is a framework for developers who want one app to run natively on the web, macOS, iOS and Linux. The interface is described in Contract, a small declarative language, and data logic is written in TypeScript or Rust, with each host drawing its own platform controls. The framework's main language is Rust.

Source: https://github.com/expo/exact
Indexed: commit a5c045b on 2026-11-21 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: Library
- Language: Rust
- Stars: 4,838 at index time
- License: MIT
- Code health: 8.0/10, Good
- Last commit: 2026-11-21
- Contributors: 23

## Install

From the README: https://github.com/expo/exact#quick-start

Clone the repository.
    git clone https://github.com/expo/exact.git

Change into the repository directory.
    cd exact

Run the one-time setup, which provisions toolchains, dependencies and caches.
    bun scripts/exact.mjs setup

## How it works

Input starts as .contract files, which the compiler in contract/ turns into a plan of tables and bytecode through syntax, type, analysis and lowering passes. For the web, host/web-js/ compiles that plan ahead of time into one ES module that runs on a small runtime, and the browser handles layout and painting. On native hosts, runner/ provides a Rust VM that executes the plan, while kernel/ computes layout and manages keyed component instances and timers. The host/ directory holds the native screens: Apple hosts link a Rust static library under AppKit and UIKit presenters, and host/android/ replays paint output onto Android views. js/ bakes an app's TypeScript into a module that runs on precompiled Hermes bytecode natively and in the browser engine on the web. packages/ holds first-party packages that expose native platform capabilities such as camera and notifications to apps.

- apps/activity-fixture/apple/src/lib.rs: entry point
- apps/activity-fixture/data/src/lib.rs: entry point
- apps/agents/android/src/lib.rs: entry point
- apps/agents/app.ts: entry point
- apps/agents/apple/src/lib.rs: entry point
Modules: host, contract, apps, packages, game, runner, scripts, kernel. 14,552 files, 2,258,506 lines, 178,963 symbols.

## Code health

- Score: 8.0/10 (Good)
- Trend: 7.6 on 2026-11-11, 8.0 on 2026-11-21
- Rank: #73 of 257 ranked repos
- Hotspots: host/web-js/src/mount_templates.rs, kernel/src/kernel/keyboard_tests.rs, host/apple/Sources/ExactNavigation/IOS/PanelSiblingsIOS.swift, game/games/terrain-fixture/render/src/workload.rs, host/web-js/src/templates.rs
- Lowest file: host/apple/Sources/ExactKit/IOS/AgentIOS.swift
- Dead code: 82 findings

## Maintenance

- Last commit 2026-11-21, 500 commits
- 23 contributors, bus factor 1

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/expo/exact/security

## More

- Page: https://repowise.dev/repo/expo/exact
- Ask this codebase: https://repowise.dev/repo/expo/exact/chat
- Docs: https://repowise.dev/repo/expo/exact/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/expo/exact
