OpenTUI
React, Solid and TypeScript renderers for terminal UIs, on a native Zig core
Tier S · Best in classComponent LibraryPrimitiveToolopentui.com
OpenTUI is a terminal-UI library with a native Zig core exposed over a C ABI, plus TypeScript bindings and true React and SolidJS reconcilers, so you write <box>, <text>, <input> and <scrollbox> instead of drawing cells. It ships flexbox layout, keyboard and mouse input, syntax-highlighted code and diff views, images, audio and a Three.js WebGPU renderer that puts real 3D in a terminal. Around it sits a package directory of 24 first-party and community projects (create-tui, keymap, ssh, qrcode, plus apps like OpenCode, ghui, hunk and pilotty). It is MIT, from Anomaly, and OpenCode runs it in production.
bun add @opentui/coreFor an agent
Use this when the deliverable is a CLI that needs real UI - panes, scrolling, live diffs, key handling - rather than another round of chalk plus readline; the React binding means you can reuse component habits and state patterns you already have. Install `@opentui/core` for imperative control and add `@opentui/react` or `@opentui/solid` only if you want a reconciler, and pair `@opentui/keymap` with it before you hand-roll key dispatch. Two traps: it is FFI to a Zig binary, so Bun is the happy path and Node needs 26.4.0 with --experimental-ffi and --allow-ffi; and before you write any code run `npx skills add anomalyco/opentui --skill opentui`, because the maintained agent skill will keep you off deprecated element names.
Why it is here. It is the first terminal-UI stack that treats React and Solid as first-class renderers over a native core instead of a JS reimplementation, and OpenCode shipping it to millions of users is about as strong a production proof as a TUI library gets. The fact that it publishes its own agent skill puts it ahead of nearly every component library in this index on agent-readiness.
Facts
- License
- MIT
- Pricing
- Free, Open source
- Framework
- Terminal UI, React, Solid, Vanilla JS
- Styling
- Not applicable
- Distribution
- npm package, CLI installer, GitHub repository, Agent skill / rules pack
- Platform
- Terminal / CLI, macOS, Linux, Windows, Cross-platform
- Content type
- Code
- Agent readiness
- Agent skill or rules pack, CLI installable, Structured documentation, Readable open source
- Accessibility
- Keyboard navigable
- Maturity
- Actively maintained
- GitHub stars
- 13,018
- Package
- @opentui/core
Components it ships
19 totalHelps you build
5Templates
2 of 4Notable for
- Zig core with a C ABI
- real React and Solid reconcilers
- ships an installable agent skill
- powers OpenCode in production
- Three.js WebGPU rendering inside a terminal
Provenance
Verified 2026-08-16. HTTP 200. https://opentui.com/ , https://opentui.com/docs/getting-started (component list of 19 doc pages, install commands, runtime matrix, agent-skill command), https://opentui.com/packages (24 listed packages), https://github.com/anomalyco/opentui , https://raw.githubusercontent.com/anomalyco/opentui/main/packages/react/README.md (JSX element list), https://api.github.com/repos/anomalyco/opentui (13,018 stars, MIT, pushed 2026-08-15). opentui.com/llms.txt returns 404.
Also in Component Libraries
6- Ark UI · 49 headless components with one API across React, Vue, Solid and Svelte
- Astryx · Meta's open-source React + StyleX design system, 150+ components and 42 templates
- Chakra UI · 114 accessible React components with a token-driven styling system
- Coss UI · Cal.com's design system: 60 Base UI primitives shipped as a shadcn registry
- daisyUI · 68 pure-CSS Tailwind components as semantic class names, MIT, with 35 built-in themes
- GPUI Component · 60+ Rust desktop UI components for GPUI, with a 200K-line code editor and charts