One TSX codebase for iOS, Android, macOS, Windows, Linux, the web, GPUI and the terminal. The engine is Rust, and every surface draws with the controls that belong to it.
one codebaseno Node.js toolchainApache-2.0engine v0.2.0
one appTSX + Rust
one engine per surface
01macOS02iOS03Android04Web05TUI06GPUI07Windows08Linuxeight targets · one engine
Surfaces
8
One codebase, a native renderer on each.
Node.js
Not needed
The CLI is one Rust-built binary. Type checks run without Node.
Toolchain
One CLI
Build, check, test, package, publish and simulate.
01Runtime
A client in TSX, right beside Rust.
Your screens run on QuickJS. The reactive graph, layout and text run in Rust. Native renderers take it from the mount batch, so the last step is the platform's own views.
QuickJS or Rustone engine per surfacenative views, not a web view
01
Your appTSX components, signals, Tailwind classes
Components run once. Signals drive bindings. An app written entirely in Rust ships with no JavaScript VM.
app code
02
xqua/basebehavior and accessible structure
Navigation, safe areas, dialogs, the keyboard and the status bar. Common controls bring behavior and accessible structure; your app draws their look.
framework
03
Engine corereactive graph, flexbox and grid, text
Rust. Each surface gets one engine. Text is measured and laid out on the engine's side, with the platform's fonts.
Rust
04
Renderernative views, HTML, GPUI or terminal cells
UIKit and CoreText, Android views, AppKit, Win32 and Direct2D, GTK 4 and Pango, HTML on the web, ratatui cells in a terminal.
per target
what runs where
One engine, started by the host.
App code
TSX on QuickJS, or Rust with no JS runtime.
State
Signals, memos, effects and context in one Rust graph.
Layout
Flexbox and grid, in points, on the engine's side.
Output
Mount batches applied to the platform's views.
not a web view
Native by default.
A menu is a sheet on a phone and a popup on the desktop. Text, input and accessibility come from the system. The web target is HTML; the terminal target is a grid of cells in the terminal's own colors.
system text and inputembed in an existing apppackage standalone
A platform starts one engine per surfaceLayout is final before a view is placed
02The client
TSX, without a Node.js toolchain.
The TSX template is three files: App.tsx, xqua.json and tsconfig.json. The CLI is a single Rust-built binary, and xqua check runs TypeScript's native compiler, so type checking needs no Node install.
signalsTailwind classeshot updates keep state
src a screen runs once
A function, not a render loop.
A component body runs once. What changes is bound to a signal, and a change runs those bindings again. No element tree is rebuilt and compared with the last one.
01xqua supplies mount, signal and the primitives.
02@xqua/ui is the themed kit; xqua/base is the unstyled behavior.
03Type declarations are generated into .xqua/types for the editor and for agents.
04xqua check type checks the app with the native tsc. No Node.
examples/starter · the reference appxqua run examples/starter
xqua init my-app · TSX by default--template mixed adds Rust · --template rust removes the JS runtime
03Platforms
Eight targets, each with its own controls.
The same screen, drawn by the platform: UIKit, Android views, AppKit, Win32, GTK 4, GPUI, ratatui cells, or HTML. Embed the engine in an existing app, or package a standalone one.
native rendererssame layout treeweb via WASM
01 / mobile
iOS
drawn
UIKit, CoreText
embed
XquaAppView, Swift, XCFramework
needs
iOS 15+
02 / mobile
Android
drawn
Android views, StaticLayout
embed
XquaView, Kotlin or Java, AAR
needs
Android 8, API 26+
03 / desktop
macOS
drawn
AppKit, Core Animation, CoreText
embed
AppView, Rust
needs
macOS 14+
04 / desktop
Windows
drawn
Win32, Direct2D, DirectWrite
embed
AppView, Rust
needs
Windows 10 1809+
05 / desktop
Linux
drawn
GTK 4, Pango
embed
AppView, Rust
needs
GTK 4.14+
06 / desktop
GPUI
drawn
GPUI
embed
AppView, a GPUI view
needs
macOS, Windows; Linux with Vulkan
07 / terminal
TUI
drawn
ratatui, the Cell grid
embed
AppView, an area of a frame
needs
Terminals on macOS, Windows, Linux
08 / browser
Web
drawn
HTML and CSS
embed
createPlayer, JavaScript, or an iframe
needs
Modern browsers
xqua run --target ios | android | macos | windows | linux | gpui | tui | webOne command family, eight backends
04Device forms
One app, in each device's own form.
The environment reports the kind of device as an idiom, such as phone, pad, desktop or terminal. Your layout can read it, and the interactions stay the platform's: a menu is a sheet on a phone and a popup on a desktop.
phone
idiom 01
Phone
Safe areas and the system tab bar on iOS and Android. Menus open as sheets.
--target ios · android
idiom 02
Pad
A tablet reports the pad idiom. The same components, with room for a layout of your choosing.
platform.idiom · pad
desktop
idiom 03
Desktop
A title bar and menus of the app's own, with keyboard shortcuts and hover. A menu opens as a popup.
Keyboard first, drawn on a grid of Cells, with the mouse as well. The terminal's own theme supplies the colors.
--target tui
platform.idiom: phone, pad, desktop, terminalSame app, same signals, same components
05Rust
Rust, where the app needs it.
Start in TSX. Add an xquam crate in ext/ for a parser, a native view or heavy computation. TSX imports it with types generated from the Rust signatures. Or write the whole app in Rust and ship no JavaScript VM.
An xquam crate exports components, modules and classes. Props are a struct and events are an enum, and TSX imports them with types generated from the Rust signatures. TSX changes hot update; Rust changes restart.
01xqua init my-app --template mixed adds the crate in ext/.
02xqua init my-app --template rust starts a Cargo project with no JavaScript VM.
03Embed in an existing iOS, Android or desktop app instead of packaging standalone.
Rust builds use CargoTSX changes hot update; Rust changes restart
06Reactivity
Only the views that changed are touched.
A component runs once. Signals drive fine-grained bindings, and a change runs the bindings that read it. There is no element tree to rebuild and compare.
components run oncebindings, not rendersthe graph is Rust
live schematic of the binding model
Header titleHopperbind
Primary actionOpen Hopperbind
Unread badge3bind
Section labelSettingsstatic
Badge total3bind
Dividerstatic
app.title → Header title, Primary actionapp.unread → Unread badge, Badge totalSection label, Divider: no signal read
4 bindings, 2 static nodes in this view
no diff
Components run once.
A component makes its signals and effects, then its view, once. After that only bindings run again.
positions
Rows are made once.
A list row is made once and reads its index and the row count through a Position, which is a pair of signals.
boundaries
Failures stay local.
A failure goes to the nearest error boundary of the owner it happened under. Resetting the boundary makes the view again.
Signal, memo, effect, owner, contextThe same reactive model in TSX and in Rust
07Releases
After release, your app can still take new UI.
Apps can load TSX at run time, delivered as signed packages. Write the screen, check it, sign it, and run it in a host that verifies first. A package that needs a newer runtime than the app has is refused.
.xquapkgtrial run and rollbackroot and release keys
01 / write
Write
A screen is TSX. The build writes the bundle a package will carry.
xqua build
02 / check
Check
Type check with the native compiler, then run the app's tests headless.
xqua check · xqua test
03 / sign
Sign
A root key certifies a release key. The release key signs the .xquapkg, which carries that certificate.
xqua keygen · certify · publish
04 / run
Run
The iOS and Android hosts verify, run the new UI on trial, accept once it is healthy, and roll back if it is not.
verify → trial → accept
ship 01 / native
A standalone app.
Package the app standalone for its platform, or embed the engine in an app you already have.
xqua packageship 02 / web
A static site.
The web target packages the app as a static site on the engine's WASM build. Embed it with createPlayer or an iframe.
--target webship 03 / package
A signed update.
Send new TSX to an installed app as a signed package. The host decides which sandbox capabilities it gets.
xqua publish
rollback floorA build older than the accepted one is refused.
every file hashedThe file table tiles the package; each SHA-256 is checked.
verify, then acceptAccepting raises the floor only after the new code has run.
Load order: dev server, then verified package, then shipped bundleRevocation lists are signed by a root and only replace an older list
08Look
Behavior from the framework, the look from you.
xqua/base supplies the accessible behavior of common controls and the platform pieces around them. Colors, type, spacing, shape and motion stay the app's. One toolchain serves the people and the agents building it.
01 / behavior
Unstyled primitives.
xqua/base gives Button, Checkbox and Switch their behavior and accessible structure, with navigation, safe areas, dialogs, the keyboard and the status bar. The look is drawn by your app.
xqua/basenavigationdialogssafe areasstatus bar
02 / tokens
Your theme, one file.
theme.json holds the theme's CSS variables, such as radius and primary. Tailwind classes in TSX and typed styles in Rust apply it. The accent on this page is that theme's primary.
primarytintsignalinksurface
03 / people and agents
The same CLI for both.
The xqua skills teach a coding agent the framework's model. Editors and agents read the same generated TypeScript declarations, and both run the same commands.
xqua skillsClaude CodeCodexCursorGemini CLI
xqua checkTypeScript types, checked with the native compiler. No Node.
xqua testHeadless app tests: open a screen, type, press, assert.
xqua test --targetThe same tests in a platform's own windows, a simulator or a headless browser.
xqua simSeeded simulation campaigns. Next section.
TypeScript declarations are generatedTSX, TSX with Rust, or Rust
09Simulation
Deterministic simulation, in the same CLI.
xqua sim runs seeded campaigns on simulated clocks, a framed network and a scheduler. With --check-determinism it runs each seed twice and compares the traces.
The first public release is on its way; these commands start working the day it is published. macOS and Linux use the shell form, on arm64 or x86-64. Windows PowerShell uses the second. Run it once per machine; later updates are xqua upgrade.
no cloneno Git LFSno account
next the command family
xqua versionPrints the CLI version and the engine version it was built with.
xqua upgradeSame major only. Add --major when you choose a breaking change.
xqua init my-appStarts a TSX app: App.tsx, xqua.json, tsconfig.json.
xqua run my-appRuns it with hot updates. Add --target for another platform.
xqua simRuns the simulation campaigns.
engine 0.2.0 · Apache-2.0The engine itself builds from source with Rust, LLVM and the platform C++ toolchain.
Install needs no loginDownloads are public by design
one codebase · every surface
Build it once. Watch it arrive everywhere.
The same screen on a phone, a desktop, a browser and a terminal. The same engine underneath, and the same layout, state and logic.