A cross-platform UI framework for Rust, Python and Node.js that also runs in a terminal.
Write an app once. It runs in a terminal (over SSH too) and as a native window on macOS, Linux (GTK4) and Windows, drawn by quadraui's own renderers for each.
The counter below, as each backend paints it. These are real renders, made by scripts/capture_hero.sh through each backend's headless test driver.
If you know Elm, iced, Textual or React , you know the shape already: state , a view that turns state into a widget tree each frame, and update code that changes state when an event arrives. There is no data binding and no manual redraw. Here is the same counter in each language, built from the same Column and Row tree:
Rust : the same tree. A node maps its events to a message, and one update applies it, as in Elm and iced.
All three are run headless in CI with the same clicks ( examples/hero/ ).
These track develop , which becomes 0.12: crates.io and PyPI carry 0.11 today and npm has no package yet, so each quick start below shows how to run it from a clone until 0.12 ships.
π Docs and quick starts ( Rust Β· Python Β· Node ) Β· Widget gallery Β· API reference Β· Examples Β· Changelog
Terminal and native from one codebase. Ratatui and Textual have no native backend; egui, iced and Slint have no terminal backend. quadraui has both, behind one trait.
One implementation per widget. A widget is one Rust type that implements two traits: Primitive (lay out and paint) and Interactive (focus, input, popups). The same code paints on all four backends; a backend supplies drawing verbs and platform services and holds no per-widget code.
Paint and click one layout. A widget's layout(...) result is what it paints from and what its event handler hit-tests against. Mouse clicks cannot drift from what is on screen, because both read the same computed rectangles.
Small, and idle when idle. A macOS release binary measured 0.7β2.0 MB in the 2026-09-26 audit. The runtime is event-driven: an app with nothing to do renders nothing.
Declarative, serialisable widgets. Widgets are plain data ( Serialize ), events are plain data routed by WidgetId , and no widget holds a closure. That is what makes scripting practical (vimcode lets Lua extensions declare quadraui views) and what the Python and Node.js bindings are built on. The app layers in all three languages attach handlers to the view's nodes, outside the widgets: callbacks in Python and Node, event-to-message closures in Rust.
Honest capabilities. BackendCaps tells an app what the current backend can do. Where a terminal cannot do something (a tray icon, a native dialog) the backend degrades and says so, rather than silently doing nothing.
Heavily tested. Around 8,600 tests, including headless paint-then-click round trips on all four backends, an end-to-end TuiDriver that drives real example apps through the event loop, and benchmarks for 100k-row tables and trees and a 4k-line editor.
A good fit: keyboard-driven developer, ops and data tools (editors, dashboards, log viewers, database and HTTP clients) that should run in a terminal over SSH and as a native window, written in Rust, Python or TypeScript, by people comfortable with a pre-1.0 API.
Accessibility. There is no assistive-technology support: no AccessKit, AT-SPI, UI Automation or NSAccessibility. A screen reader sees nothing. That rules quadraui out wherever a Section 508, EN 301 549 or WCAG obligation applies. Tracked in quadraui#1309.
CJK and other IME input. No backend implements an input-method protocol, so composed input (CJK, and dead-key accents) does not work. The design is quadraui/docs/IME_INPUT_PROPOSAL.md ; the backend work is quadraui#900.
Right-to-left text. East-Asian character width is handled; RTL, bidi and complex shaping are not, and are out of scope.
Multiple windows (quadraui#1120).
0.11.x β pre-1.0, published on crates.io, with quadraui on PyPI at the same minor version. @quadraui/node is first published to npm with 0.12, the release, and the docs site already tracks develop , which becomes 0.12. Breaking changes are grouped into scheduled minor releases and recorded in CHANGELOG.md . What a 0.x release may change is D-019 in quadraui/docs/decisions/DECISIONS.md ; the release order and the 1.0 bar are in ROADMAP.md .
The real consumers are vimcode , a Vim-compatible editor that runs on all four backends, and coord-tui , a terminal dashboard. Both are by the same author, so quadraui has not yet been tried by an outside team. If you build something on it, please open an issue; that feedback is the most useful thing the project can get right now.
quadraui is developed almost entirely by AI coding agents. Of its first 1,314 commits (April to October 2026), 1,107 are co-authored by Claude. The agents are coordinated by code-coordinator , which dispatches each issue to a worker on one of several machines and gates every merge on tests and on an adversarial review by a separate agent with no shared context. That pipeline, not a person reading every diff, is what holds the agents to the repository's rules.
You do not have to take that on trust. An independent audit of the framework, commissioned and published unedited, is at quadraui/docs/audits/FRAMEWORK_AUDIT_2026-09-26.md . It covers code quality, the alternatives, and what has to be true before 1.0. Its recommendations are tracked as epics on this repository's issue tracker.
Rust β add the crate:
Python and Node.js β pip install quadraui , and npm install @quadraui/node once 0.12 publishes it (until then the Node quick start builds it from a clone). Both bindings are the same Rust renderer under a thin app layer ( quadraui.app , @quadraui/node/app , with JSX for Node). Each has a five-minute quick start on the docs site: Python , Node .
Feature flags, the system packages each backend needs, and every platform combination CI verifies are in quadraui/docs/INSTALL.md . To track unreleased work instead of the last crates.io release, pin a git revision rather than following develop 's tip β both real consumers do this today: quadraui = { git = " rev = " ", features = [...] } . For sibling-checkout development, use quadraui = { path = "../quadraui/quadraui", features = [...] } .
Run the hero counter above: cargo run -p quadraui-hero --features tui --bin counter . Then try hello ( quadraui/examples/hello.rs , the same idea on ShellApp ) and tui_demo / gtk_demo , which use one AppLogic body under two runners.
Or start a new app from the templates/app starter β cargo generate --git templates/app β which already has the hello / main.rs shape above wired to all four backend features and a TuiDriver test, with no edits needed to build and run --features tui .
Read quadraui/docs/GUIDE.md for the app model, quadraui/docs/COMPOSE.md for the controllers a larger app is assembled from, and the host section of quadraui/docs/PRIMITIVE_RULES.md for how an app paints, routes and tests its widgets.
Read quadraui/docs/TUI_CONSUMER_TOUR.md for a short code tour of one widget, from descriptor to click.
Browse quadraui/examples/ . Most examples come in tui_* / gtk_* pairs (some also macos_* / win_* ), so you can compare backends.
A widget is a type that implements Primitive and Interactive . This one paints a block of colour and has no behaviour, so non_interactive! supplies its Interactive impl:
A11yPrimitive is the accessibility description every widget declares; no backend reads it yet (see "Not a fit, today" above).
Surface::Widget paints any widget through DrawsPrimitives::draw_dyn , on every backend. A widget that reacts to input implements Interactive itself: it declares its focus stops and sub-regions, handles each RoutedEvent against its own layout, and keeps whatever it must remember between events in its State , which the runtime stores per WidgetId . An app hands the frame's widgets to the runtime through AppLogic::frame_tree , and the runtime routes pointer, keyboard and popup events to them. The rules every widget follows are in quadraui/docs/PRIMITIVE_RULES.md .
Pick the backends you ship; terminal is independent of them.
terminal β PTY + vt100 + scrollback engine ( quadraui::terminal_engine ) for embedding a terminal. No rasteriser; pairs with any backend below.
tui β terminal backend ( quadraui::tui ), via ratatui.
tui-images β adds raster image decode + downscale (PNG/JPEG/GIF first frame/WebP, via image ) to the tui backend, feeding the Kitty graphics protocol transport. Implies tui ; without it a TUI build paints Image::fallback_text and pays for no image decoder.
gtk β GTK4 backend ( quadraui::gtk ), via gtk4-rs + Cairo + Pango.
macos β macOS backend ( quadraui::macos ), via Core Graphics + Core Text. Compiles only on target_os = "macos" .
win β Windows backend ( quadraui::win ), via Direct2D + DirectWrite ( windows-rs ). Compiles on every host; only the WinAPI calls are cfg(target_os = "windows") .
a11y β optional accessibility conversions ( From for accesskit::Role and friends) in quadraui::a11y , via AccessKit . The A11yRole / A11yInfo data model itself is always compiled; pairs with any backend above, or none.
control β optional backend-neutral control channel ( quadraui::control ): a cloneable, Send handle a thread that does not own the event loop uses to snapshot the a11y tree and synthesize actions/keys against a running app, whichever backend is driving it. No extra dependency ( std::sync::mpsc plus the existing Backend::waker seam); pairs with any backend above, or none.
schema β derives schemars JsonSchema on every wire-facing descriptor and UiEvent , so a binding can export a JSON Schema of its wire format ( quadraui-binding-core 's export_wire_schema ). No runtime effect; pairs with any backend above, or none.
59 primitive modules , one each under quadraui/src/primitives/ . Each is a widget: a declarative description that implements Primitive and Interactive , painted on every backend by that one implementation. The exceptions are the two shared-math modules layout_metrics and row_stack , which hold arithmetic several widgets reuse rather than a widget of their own. Among them:
Content: TreeView , ListView , IconGrid , DataTable , TreeTable , Form , Editor , TextDisplay , MessageList , DiffView , Chart , Board , Terminal , Minimap , DatePicker , CellGrid (spreadsheet-style cells with frozen panes), Canvas (app-defined drawing, painted through the public PaintSurface seam).
Chrome: TabBar , StatusBar , MenuBar , ActivityBar , Toolbar , CommandCenter , Scrollbar .
Containers: Split , SplitTree , SidebarPanel , MultiSectionView .
Overlays: Dialog , Palette , ContextMenu , Tooltip , Float (anchored overlay above the main layout, stacked via ModalStack with focus vs. non-focus floats), Completions , FindReplace , Toast , plus ProgressBar and Spinner .
Compose controllers in quadraui::compose coordinate several widgets or a whole app-level flow (a shell, a system, a form dialog), so an app matches on semantic events ( AppMenuEvent::Activated , SidebarEvent::RowSelected ) instead of raw mouse coordinates. A single widget's own input handling lives in its Interactive impl, not here:
Also in compose : a Markdown-to- StyledText adapter, and notify_or_toast , which sends a system notification where the platform has one and shows a toast where it does not.
See quadraui/docs/COMPOSE.md for what each controller owns, the events it emits, the smallest wiring snippet, and which example file demonstrates it.
Shared behaviour in quadraui::behaviour is the single implementation of the interaction rules widgets and controllers have in common, so none of them re-derives its own: ensure_visible / ensure_visible_px (scroll the minimum amount to bring a target back into view), FlatNav (clamped or wrapping index movement with disabled-item skipping) and TreeNavCore (the row-type-agnostic core TreeView navigates with: selection by path, arrow/page/ /End movement, scroll-follow and scrollbar drag over any flattened rows), and Typeahead (debounced type-to-jump).
Platform services: clipboard, file open/save and folder dialogs, message dialogs, notifications, open_url , reveal-in-file-manager, move to trash, secret storage, OS file drop, window control and a tray icon. Each is reported through BackendCaps , and degrades honestly on the terminal.
Paint-then-click round trips. Paint a widget into a headless surface, find the painted glyphs, click those exact coordinates, and assert paint and click identify the same widget.
Widgets addressed by id. Every identified widget painted through draw_dyn records its rect and sub-regions for the frame, so a test targets a widget, or one part of it, by WidgetId instead of by coordinates (for example TuiDriver::tab_center(&bar_id, 2) ). For a button, TuiDriver::find("label") gives the painted label's cell to click; the Python and Node harnesses' click_text / clickText do the same.
Conformance matrix. quadraui/tests/conformance.rs runs the same scenarios against every backend and reports a per-primitive matrix.
End-to-end drivers. quadraui::tui::testing::TuiDriver runs a real AppLogic through the event β handle β render path against an in-memory terminal, with scripted keys, clicks and drags. See quadraui/docs/TESTING.md .
Real terminals. A pty tier spawns example binaries in a real pseudo-terminal and checks the bytes they emit. Its results generate the table below.
Terminal compatibility
Generated from quadraui/tests/tui_pty_smoke.rs 's pty tier, not hand-written. β is verified by the named pty fixture, π« is a cited known limitation, β is untested. See quadraui/tests/terminal_matrix.rs for how to regenerate it.
quadraui/docs/UI_CRATE_DESIGN.md β goals, non-goals and the core invariants.
quadraui/docs/COMPOSE.md β every compose controller: what it owns, the events it emits, the smallest wiring example, and which example file shows it.
quadraui/docs/PRIMITIVE_RULES.md β the rules every widget follows, including the public-API lifecycle.
quadraui/docs/TUI_CONSUMER_TOUR.md β a code tour of one widget in a TUI app: descriptor, paint, click routing and the test that drives it.
quadraui/docs/decisions/DECISIONS.md β architectural decision log.
quadraui/docs/NATIVE_GUI_LESSONS.md β pitfalls found building the native backends.
quadraui/docs/CLIPBOARD.md β how terminal copy reaches the system clipboard, including tmux setup.
Licensed under either of:
Apache License, Version 2.0 ( LICENSE-APACHE )
MIT License ( LICENSE-MIT )
quadraui/assets/codicon.ttf bundles Microsoft's codicon icon font, Copyright (c) Microsoft Corporation, used by every GUI backend (GTK, macOS, Windows) to paint built-in chrome glyphs β tree chevrons, tab dirty/close marks, the context- submenu arrow, data-table sort arrows β without requiring the host to have a Nerd Font installed. Licensed separately from the dual license above, under Creative Commons Attribution 4.0 International (CC-BY-4.0); the full license text ships at quadraui/assets/CODICON_LICENSE .
The full story
This article is one source in a clustered incident β the cluster page carries the summary, timeline and every other outlet covering it.
