nanoui
A Zig framework for building desktop and mobile apps with GPU-drawn native UI or a system webview frontend.
At a Glance
nanoui core framework licensed under the MIT License; free to use, copy, modify, and distribute.
Engagement
Available On
Alternatives
Listed Nov 2026
About nanoui
nanoui is an open-source MIT-licensed framework, published by justrach, for building desktop and mobile apps in Zig. Each window can show either a native UI drawn by nanoui itself or a web page in the system webview. The latest listed release is v0.13.0.
What It Is
nanoui is an application framework and toolkit for Zig developers targeting macOS, iOS, Android, Linux and Windows. Native UI is written in Zig alone, with no HTML, JavaScript or webview, and is drawn by nanoui using Metal and CoreText on Apple platforms, OpenGL or a CPU renderer on Linux and Android, and Direct3D 11 on Windows. Web-page windows use WKWebView, WebView2 or WebKitGTK, and the frontend calls Zig through a JavaScript client generated from Zig types, with TypeScript declarations.
Native UI toolkit
Views are immediate mode: a function of your state, run on every event. The toolkit includes flexbox layout, virtualized lists, text with selection, controls, images, SVG, light and dark themes, shadows and Liquid Glass. A motion module provides springs, tweens, presence, gestures, layout animation and keyframes, and a kit module adds buttons, overlays, navigation and form components.
Command-line tool and testing
The nui tool scaffolds an app (build.zig, a view, a test and an AGENTS.md), runs view tests offscreen, renders snapshots to PNG without a window, runs the app and checks the environment. Every command accepts --json, so it suits coding agents as well as people. A ui.Tester API and headless flags allow clicking, typing and screenshots without opening a window.
Platforms and limits
The README documents that webview pages are not yet available on iOS and Android, and that accessibility is limited to iOS and macOS built-in controls. It also notes there are no notifications, channels or plugins yet. Building requires Zig 0.17.0, plus the macOS SDK on a Mac and GTK 3 at run time on Linux. Sample apps built on it include a terminal, an activity monitor, a screen recorder, a mail client and a launcher.
Community Discussions
Be the first to start a conversation about nanoui
Share your experience with nanoui, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
nanoui core framework licensed under the MIT License; free to use, copy, modify, and distribute.
- MIT License
- Native UI drawn on GPU or web frontend in system webview
- Platforms: macOS, iOS, Android, Linux, Windows
- Third-party material (mygo, GPUI, gpui-motion, GPUI Kit) keeps its own notices
- apps/nanocua keeps CodeGraff's license, not MIT
Capabilities
Key Features
- Native UI drawn on the GPU in Zig without HTML or a webview
- Web page windows with generated typed JavaScript client and TypeScript declarations
- Flexbox layout and virtualized lists
- Motion animation system with springs, tweens, and keyframes
- Liquid Glass material rendering
- Kit component library (buttons, dialogs, tabs, menus, forms)
- SVG rendering and light/dark themes
- Headless testing and PNG snapshots via ui.Tester and nui
- nui CLI scaffolding with AGENTS.md for coding agents
- Cross-compilation to macOS, iOS, Android, Linux and Windows
