Skip to content
IndexDesign corpus
Component LibrariesComponent LibraryPrimitiveToolMITFreeTerminal UI

OpenTUI

React, Solid and TypeScript renderers for terminal UIs, on a native Zig core

Aboutopentui.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.

Install
bun add @opentui/core
For 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.

Install command, framework, licence and component list.
Components it ships19 total
Helps you build5
Templates2 of 4
Notable 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.

Related resourcesComponent Libraries