Get Started
MoonBit · 6 Platforms

One UI tree, drawn on every GPU.

Native speed on six platforms. Zero DOM, zero WebView.

mbui Liquid Glass dark gallery rendered offscreen on Metal
ui.monoid sf-ui semantic color tokens and live accent palette
mbui Liquid Glass light gallery rendered offscreen on Metal

One retained tree. Six native targets.

macOS · Metal iOS · Metal Android · GLES Windows · D3D11 Linux · OpenGL Web · WebGL 2
Retained Tree

Update only what changed.

Fine-grained signals write directly to subscribed GPU slots—zero virtual DOM diffing.

Explore architecture

signals.mbt retained tree · 148 nodes
Click to write signal
accent.set("vermilion")
Inbox 3
Deploy Build
Retained Window Tree
01 RootWindow skipped
02 TopToolbar skipped
03 PrimaryButton.fill painted
04 SidebarNav skipped
05 AccentRing.stroke painted
06 UnreadBadge.text skipped
07 StatusFooter skipped
2 / 148 nodes touched · 0.14 ms · 0 tree diffs
Closed-Form Motion

Identical at any frame rate.

Analytic springs evaluate by timestamp. Mid-flight interrupts preserve momentum at 7–120 fps.

See motion engine

spring(k: 320, d: 28) t = 480 ms
120 fps
60 fps
24 fps
7 fps
Δ = 0.00 px All 4 frame rates land on the exact same pixel
Deterministic Tester

Audit every pixel before ship.

FakeHost steps a deterministic clock, catches layout faults, and pinpoints MoonBit source lines.

Read testing guide

mbui tester FakeHost · headless
FakeHost Frame 0 faults
Release Pipeline
macOS · iOS · WebGL 2
Deploy to 6 Targets
$ mbui test --fps 60,120,24,7 --audit
first_line_faults 0 PASS
clip_bounds 0 PASS
concentric_radii pass PASS
fps_invariance 4/4 PASS
offscreen_diff 0.00% PASS
5/5 audits passed · 0 faults 38 ms
Optical Material

Refractive glass, live on GPU.

Real-time SDF refraction and specular rims on Metal, D3D11, GLES, WebGL 2.

Interactive Lenses

Drag-responsive capsules with live edge dispersion.

Interactive Liquid Glass lenses and specular rims rendered offscreen on Metal

Adaptive Luminance

Samples backdrop contrast for crisp legibility.

Liquid Glass control center dark mode rendered offscreen on Metal

Refractive Dialogs

Layered depth blur with crisp rim separation.

Liquid Glass dark modal dialog rendered offscreen on Metal

Dark Glass Controls

Toggles, sliders, and pills on one shader pipeline.

Liquid Glass dark mode controls rendered offscreen on Metal
Headless + sf-ui

Headless behavior. Production looks.

Browse Live Storybook
ui.monoid sf-ui tonal buttons and stateful action controls

Tonal & Stateful Buttons

ui.monoid sf-ui liquid-lens switches, tabs, and segmented stops

Switches, Tabs & Stops

Mobile & Desktop

Same code on phone and desktop.

Compiles to native ARM64, x86_64, and Wasm—zero WebView wrappers.

See all 6 backends

mbui sf-ui controls running natively at 390x763 on iPhone 15
Quickstart

Start in 30 seconds.

$ libs/mbui/scripts/mbui init my-app --name "My App" --id build.monoid.myapp --mbui "$PWD/libs/mbui" $ cd my-app && moon check $ ../libs/mbui/scripts/mbui pack mbui.json --target mac,web --out dist

Build at GPU speed everywhere.