Skip to content
Logo

Flux

Write once. Render native on iOS and Android.

Flux is a write-once UI language for native iOS and Android. You author your UI in .flux files. In development, a precompiled host app receives binary patches over WebSocket and hot-reloads your UI in milliseconds. In release, the exact same source compiles to idiomatic SwiftUI and Jetpack Compose. No webview. No JavaScript bridge. No interpreter in production.

Traditional cross-platform Flux
Render target WebView / canvas Real UIView / Compose View
Hot reload Full rebuild or JS eval Binary IR patch over WebSocket
Release build Interpreter shipped in prod SwiftUI / Compose codegen
State Framework-locked SolidJS-style signal graph over one shared IR

The development loop and the release artifact come from the same Reactive Tree IR. You iterate against a fast bytecode VM host during development and ship platform-native code in release — no fork in the road, no “dev looks different from prod”. A parity harness (flux-parity) continuously proves that dev-VM execution and release codegen stay equivalent, so the two paths are verified, not assumed.

One language, two native apps

Author your UI once in .flux. A precompiled host app renders it on iOS and Android in dev; release builds compile the same IR to SwiftUI and Jetpack Compose.

Live hot reload

Save a .flux file and the dev server parses, type-checks, lowers, diffs, and ships a binary patch in milliseconds. The on-device tree updates in place.

Real tooling

A CLI, a hot-reload dev server with pairing tokens, a language server with a VS Code extension, a formatter, and a gpui DevTools desktop app.

Spec-driven

Every non-obvious choice is justified in an Architecture Decision Record — 40 ADRs, normative wire and ISA appendices, and enforced parity tests.

The Rust toolchain builds everything on the CLI side. Xcode (iOS 16+ deployment target) and the Android SDK are required only for the host apps. Walk through the first-app tutorial for the full setup.