xqua · Rust + TypeScript · engine 0.2.0

One app. Eight native UIs.

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.

Get started See the runtime Gallery · soon
one codebase no Node.js toolchain Apache-2.0 engine v0.2.0
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 Rust one engine per surface native 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 input embed in an existing app package 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.

signals Tailwind classes hot 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.
import { mount, signal, Text } from "xqua";
import { Button, Card, Field, Screen, Stack } from "@xqua/ui";

function App() {
  const name = signal("");
  const saved = signal("");
  return (
    <Screen>
      <Text class="text-3xl font-semibold text-foreground">xqua</Text>
      <Card title="Profile">
        <Stack>
          <Field
            label="Name"
            testID="name"
            value={name()}
            onChange={(text) => name.set(text)}
            placeholder="Ada"
          />
          <Button label="Save" onPress={() => saved.set(name())} />
        </Stack>
      </Card>
      <Text class="text-base text-foreground">
        {saved() === "" ? "Nothing saved" : `Saved ${saved()}`}
      </Text>
    </Screen>
  );
}

mount(App);
import { expect, open, test } from "xqua/test";

test("saves the name", async () => {
  const app = await open("./App.tsx");
  expect(app.texts()).toContain("Nothing saved");
  await app.type("id:name", "Ada");
  await app.press("Save");
  expect(app.texts()).toContain("Saved Ada");
});
{
  "name": "xqua starter",
  "id": "dev.xqua.starter",
  "version": "0.1.0",
  "build": 1,
  "theme": "../../packages/ui/theme.json",
  "resolve": {
    "alias": {
      "@xqua/ui": "../../packages/ui/src/index.ts"
    }
  }
}
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 renderers same layout tree web 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.

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
idiom 03

Desktop

A title bar and menus of the app's own, with keyboard shortcuts and hover. A menu opens as a popup.

--target macos · windows · linux
idiom 04

Terminal

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.

ext/ crates generated types components, modules, classes
my-app/ ├─ App.tsx # screens, signals ├─ xqua.json # app config ├─ tsconfig.json # editor and check └─ ext/ └─ my-app-native/ # an xquam crate ├─ Cargo.toml └─ src/ └─ lib.rs # components, modules, classes
TSX hot updates Rust restart Cargo check
mixed template

One boundary, typed on both sides.

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.

#[component] pub fn Chip(props: ChipProps, cx: Scope<ChipEvent>) -> impl IntoElement
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 once bindings, not renders the 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 action app.unread → Unread badge, Badge total Section label, Divider: no signal read
Type in the signal. Only the bindings that read it run. 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.

.xquapkg trial run and rollback root 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 package
ship 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 web
ship 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.
two key levelsRoot keys certify release keys; release keys sign packages.
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/base navigation dialogs safe areas status 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.

primary tint signal ink surface
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 skills Claude Code Codex Cursor Gemini 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.

xqua sim double-run check std only
CLI campaign run
$ xqua sim --suite all --seed 0x2a --seeds 4 --ticks 8 suite qa | integration | security | all config nearest xqua.config.json, flags win backend instrumented | blackbox check --check-determinism exit 0 pass | 1 failure | 2 preflight

The published xqua binary includes it. Add --json to print the report as JSON.

qa integration security
base the primitives

Time and chance, from a seed.

01Clocks: virtual time moves in ticks of a set length.
02Seeds: one root seed, decimal or hex. Probabilities are integer parts per million.
03A framed network and a scheduler.
04Node lifecycle, for a set number of simulated nodes.
05Buggify, for injected faults.
06Assertions.

std only · no external dependencies · unsafe code forbidden · no floats on simulation paths

The primitives are a portable, std only crateNo async runtime · ordered maps on simulation paths
10Install

One command installs the CLI.

No clone, no Rust, no Git LFS and no account. The script downloads the xqua binary for your machine and checks its SHA-256 before installing it.

first release soon no login checksum verified
install once per machine
sh curl -fsSL https://github.com/InTacht/xqua/releases/latest/download/install.sh | sh
ps1 irm https://github.com/InTacht/xqua/releases/latest/download/install.ps1 | iex

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 clone no Git LFS no 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.0 The 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.