CPUI: Rust Desktop UI Rendered on the CPU, No GPU Required DEEIX-AI's open-source CPUI framework, a Rust immediate-mode native desktop UI library that renders entirely on the CPU with no GPU, browser engine or JavaScript runtime, reached roughly 1.2k GitHub stars by early December 2026. CPUI 0.1, released under Apache 2.0 for macOS 13+, Windows 10+ and Linux glibc 2.28+, claims about 27 MB idle RAM for an 800×600 window, a ~0.1 ms full frame and ~0.2 ms per frame scrolling a 100,000-row list, though the README labels these author benchmarks rather than independent audits. The project targets internal tools, kiosks and AI-adjacent utilities running on machines without discrete graphics, positioning software rasterization with dirty-region redraw as a lighter alternative to Electron and GPU-centric toolkits. CPUI is an open-source Rust framework that renders native desktop UIs on the CPU —no GPU, no browser engine, no JavaScript runtime GitHub repository https://github.com/DEEIX-AI/cpui?ref=explainx , documentation https://cpui.io/?ref=explainx . The project from DEEIX-AI crossed roughly 1.2k GitHub stars by early December 2026 as developers looked for lightweight alternatives to Electron and GPU-centric toolkits for internal tools , kiosks , and AI-adjacent utilities that still need real windows , not a web tab. This post explains what CPUI ships in 0.1 , how to run the examples , and where the README’s performance claims should be verified on your hardware —the same discipline we apply to trending agent repos https://explainx.ai/blog/show-hn-launch-audit-llms-txt-dmarc-benchmark-december-2026 and local inference servers https://explainx.ai/blog/omlx-apple-silicon-llm-server-tiered-kv-cache-menu-bar-mac-guide-december-2026 . TL;DR | Question | Answer | |---|---| | What is it? | Rust immediate-mode native UI; CPU renderer | | License? | Apache 2.0 | | Memory claim? | ~27 MB idle for 800×600 window README | | Speed claim? | ~0.1 ms full frame; ~0.2 ms scrolling 100k-row list README, Mac tests | | Platforms? | macOS 13+ , Windows 10+ , Linux glibc 2.28+ verified | | Try it? | cargo run --release -p cpui --example hello | | Docs? | cpui.io/guides/guide/ https://cpui.io/guides/guide/?ref=explainx | Why CPU rendering is back on the table Many 2026 AI builder workflows assume a GPU for inference , but operator consoles , labeling tools , and device farms often run on machines without discrete graphics . Electron solves layout familiarity but pays Chromium memory . GPU UI stacks for example Zed’s GPUI lineage acknowledged in CPUI’s README optimize for throughput on modern cards . CPUI bets the opposite: software rasterization plus dirty-region redraw is enough for dashboards , forms , and catalog-style apps if you keep widgets immediate-mode and state local . That matches readers who already ship Rust inference sidecars https://explainx.ai/blog/show-hn-launch-audit-llms-txt-dmarc-benchmark-december-2026 or CPU-only open models https://explainx.ai/blog/openset-llm-27b-model-cpu-only-8gb-ram-17-20-tokens-per-second-avx512-github-2026 —same hardware profile, different layer of the stack. Architecture in plain language From the README https://github.com/DEEIX-AI/cpui/blob/dev/README.md?ref=explainx : - Native applications compile to machine code with no browser or script runtime . - Windows , IME , clipboard , file dialogs , and accessibility call OS APIs directly. - Immediate mode: the UI is a function of application state . Widget builders like ui.button "Save" .clicked are complete click handlers ; the README states application data never needs to sync with a separate retained widget tree. - Chained styling: layout and appearance use methods such as .p 24 .gap 12 ; themes are named colors and sizes with light , dark , and five gray scales . The renderer is split from Winc another DEEIX-AI project listed in acknowledgments , which lets CPUI target CPU paths without owning the entire windowing stack. Rust codebase concept for a lightweight native desktop tool Performance and memory claims CPUI 0.1 is the first release series per the README. Reported numbers are author benchmarks , not independent audits: | Scenario | README claim | |---|---| | Idle 800×600 window | ~27 MB RAM | | hello example binary | ~2 MB executable, ~100 ms to open on macOS | | Idle redraw | draws nothing until state changes | | Full 800×600 frame | ~0.1 ms | | Scroll 100,000-row list | ~0.2 ms per frame | What to verify: run cargo run --release -p cpui --example list on your target hardware, especially Windows laptops with integrated graphics disabled or remote desktop sessions where GPU UI toolkits stutter. Detailed methodology lives in cpui.io/guides/performance/ https://cpui.io/guides/performance/?ref=explainx . Widget surface and catalog example CPUI documents 40+ widgets , grouped in the README into text and display , inputs , forms , data views list, table, tree , popups and menus , layout , and custom drawing via Canvas . The catalog example is the fastest way to see live widgets with code on desktop: cargo run --release -p cpui --example catalog Icons ship as a separate cpui-icons crate geometry or SVG per cpui.io/icons/ https://cpui.io/icons/?ref=explainx . For table-heavy internal tools—think eval result browsers next to FantasticML-style agent benches https://explainx.ai/blog/fantasticml-benchmark-48-tasks-agents-beat-human-sota-fable-5-2-opus-5-5-december-2026 —multi-select tables and searchable selects matter more than animation . Quick start Add cpui = "0.1.3" check crates.io https://crates.io/crates/cpui?ref=explainx for the latest 0.1.x and wire a minimal app: dependencies cpui = "0.1.3" use cpui::{App, Options, Ui}; derive Default struct Counter { count: u32, name: String, } impl App for Counter { fn ui &mut self, ui: &mut Ui<' , ' { ui.column .p 24 .gap 12 .children |ui| { ui.heading format args "Clicked {} times", self.count ; if ui.button "Click" .primary .clicked { self.count += 1; } ui.text input &mut self.name .placeholder "Name" ; ui.progress f64::from self.count / 10.0 .min 1.0 .w 200 ; } ; } } fn main - Result< , cpui::Error { cpui::run Options::default , Counter::default } The getting started guide https://cpui.io/guides/guide/?ref=explainx walks platform dependencies macOS Xcode CLT , Windows VS Build Tools , Linux build-essential and wayland-devel or X11 dev packages . Other examples in the README: gallery , list , canvas , icons , theme , windows several windows on one app . How CPUI compares to other Rust UI paths | Toolkit | Rendering | Typical sweet spot | |---|---|---| | CPUI | CPU , immediate mode | Small native tools, low RAM, no GPU | | iced | GPU via wgpu common setup | Cross-platform apps with retained widgets | | GPUI ecosystem | GPU | High-performance editors and pro tools | | Tauri | WebView front end | HTML/CSS teams shipping desktop shells | CPUI is not a drop-in for React or Flutter . You gain predictable native dialogs and tiny binaries ; you lose npm’s package long tail . If your team already standardizes on Claude Code for automation https://explainx.ai/blog/claude-code-commands-complete-reference-guide-2026 , CPUI fits sidecar utilities log viewers, queue monitors beside the IDE , not the IDE itself . Security and contribution norms The README points contributors to CODE OF CONDUCT.md and SECURITY.md on GitHub. CPU renderers still parse fonts , images , and user file paths —treat untrusted inputs in custom Canvas code like any native app surface. Packaging, i18n, and roadmap CPUI documents packaging and distribution separately from widgets cpui.io/guides/distribution/ https://cpui.io/guides/distribution/?ref=explainx . For macOS , you typically ship a .app bundle; on Windows , an exe plus assets; on Linux , distro-specific packages or portable tarballs depending on how you link Wayland versus X11 . Internationalization has its own guide cpui.io/guides/i18n/ https://cpui.io/guides/i18n/?ref=explainx . If you build operator tools for global support teams, plan string extraction early—immediate-mode APIs still need stable message IDs like any native toolkit. The roadmap https://cpui.io/guides/roadmap/?ref=explainx page lists planned platform work; iOS and Android rows in the README are experimental and validated in simulators , not a promise of store-ready shells. Teams comparing Claude mobile workflows https://explainx.ai/blog/claude-apple-watch-voice-app-watchos-26-december-2026 should assume CPUI mobile is a research channel , not a production alternative . Versioning guarantees are documented under cpui.io/guides/versioning/ https://cpui.io/guides/versioning/?ref=explainx . On 0.1.x , expect breaking API tweaks ; pin cpui = "=0.1.3" in apps you ship to customers until 1.0 language stabilizes. When CPUI is the wrong tool Skip CPUI if you need rich HTML layout , embedded video players , or third-party web widgets —use Tauri or Electron and accept RAM. Skip it if you need GPU shaders for live previews of generative media ; pair a thin CPUI shell with a GPU inference process instead, similar to how Seppia https://explainx.ai/blog/sfumato-seppia-qwen4-inference-engine-anthropic-ban-december-2026 splits UI from CUDA servers. CPUI shines when: - RAM ceiling is sub-100 MB per window. - GPU may be missing or reserved for ML . - You want native file pickers and menus without CEF updates. Troubleshooting first builds Common first-day failures on fresh clones: | Symptom | Likely fix | |---|---| | linker not found on Linux | Install build-essential , pkg-config , libwayland-dev or X11 dev packages per guide | | Windows SDK errors | Open x64 Native Tools prompt; install VS Build Tools with C++ workload | | Blank window on Linux WM | Confirm Wayland versus X11 session; try windows example first | | Slow list example | Run --release ; debug builds inflate frame times | If hello fails but cargo test inside the repo passes, compare Rust toolchain version to CI badge on GitHub Actions. Design principles from cpui.io The design guide https://cpui.io/guides/design/?ref=explainx states goals: predictable spacing , native-feeling controls , and minimal magic . Custom widgets use Canvas for charts—useful for latency histograms beside local model servers documented in oMLX https://explainx.ai/blog/omlx-apple-silicon-llm-server-tiered-kv-cache-menu-bar-mac-guide-december-2026 posts. Accessibility hooks into OS APIs; you still must label controls in code the same way you would in SwiftUI or WinUI —CPUI does not auto-generate ARIA because there is no DOM. Low-memory desktop UI components layout concept Example matrix what to run first | Example command | What it teaches | |---|---| | --example hello | State , buttons , progress baseline | | --example gallery | Responsive layout and theme switching | | --example list | 100,000-row scrolling stress test | | --example catalog | Full widget gallery for designers | | --example canvas | Custom draw hooks for charts | | --example icons | Searchable icon browser | | --example theme | Accent , font size , density toggles | | --example windows | Multi-window desktop patterns | Running the full matrix on CI is a good smoke test before you ship an internal tool upgrade—CPU render regressions often show up only on Windows with fractional scaling . Ecosystem positioning in December 2026 CPUI acknowledges inspiration from GPUI , shadcn/ui , SwiftUI , Tailwind CSS , swash , wininit , and softbuffer in its README. That lineage matters: you are not adopting a greenfield API in isolation; naming and chained modifiers will feel familiar if you have touched declarative UI elsewhere. For AI-specific UIs, think CPUI for control panels and status dashboards , not for in-browser chat . Pair with Hugging Face CR registry https://explainx.ai/blog/hugging-face-container-registry-cr-hf-co-december-2026 workflows by keeping containers on the server and CPUI on the operator laptop . Build and CI notes for teams The README links a GitHub Actions CI badge on the default branch. For your own repo, mirror that pattern: - cargo test --workspace on every pull request. - cargo run --release -p cpui --example hello as a smoke step after Rust toolchain updates. - Cache target/ in CI, but invalidate when cpui minor versions bump. Because CPUI touches native windowing , headless CI cannot render widgets. Use macOS and Windows runners for release gates even if Linux covers most unit tests. Document minimum OS versions in your internal runbook the same way you document CUDA driver versions for local LLM https://explainx.ai/blog/omlx-apple-silicon-llm-server-tiered-kv-cache-menu-bar-mac-guide-december-2026 hosts. Supply chain: pin cpui on crates.io and verify cargo vet or your org’s allow list —UI crates pull font and image parsers. Review SECURITY.md disclosure rules before exposing CPUI apps to untrusted plugins . Licensing and attribution Apache 2.0 allows commercial use with NOTICE preservation. The README states the renderer was split from Winc with separate attribution; read NOTICE in the repo if you redistribute binaries. cpui-icons as a standalone crate helps teams that need geometry without importing the full framework. What to do next 1. Clone github.com/DEEIX-AI/cpui https://github.com/DEEIX-AI/cpui?ref=explainx on a target OS you actually deploy. 2. Run catalog and list ; profile RSS with your OS monitor. 3. Prototype one internal screen three forms max before committing a full product rewrite. 4. If you need web-tech skills on the team, pair this eval with a /workshops/ai-builder https://explainx.ai/workshops/ai-builder cohort for Rust + agent fundamentals—CPUI does not teach Rust by itself. Version pins, platform tables, and benchmark claims reflect the CPUI README and cpui.io docs as of December 5, 2026.