Spokes.wiki Search About
Software Source Code source ↗ source url updated Fri Jul 10 2026 00:00:00 GMT+0000 (Coordinated Universal Time)

OpenTUI

OpenTUI (sst, MIT, ~12.4k★) is a terminal-UI core — a native Zig implementation exposing a C ABI, wrapped in TypeScript bindings (@opentui/core), with React and SolidJS reconcilers on top for building interfaces declaratively. It’s a founding source of this spoke (previously parked in the hub _inbox as the first terminal-ui stray).

Architecture

The design is a layered ui-framework: a fast native core does the rendering and layout, a stable C ABI makes it reachable from any language, and per-framework reconcilers (React, Solid) let you describe the UI as components instead of driving the core imperatively — the same declarative-over-a-render-core pattern web UI frameworks use, pointed at the terminal. Both imperative and declarative APIs are exposed. Unusually, it also ships a Three.js WebGPU renderer so the same component tree can render as a browser-based UI, not only in a real terminal. The README’s stated priorities are “correctness, stability, and high performance.”

Who uses it, and the agent angle

In production at OpenCode (an AI coding agent) and terminal.shop. It advertises AI-agent skill support for coding assistants — an early instance of the agent-ready-ui thread: a UI toolkit shaped so agents can build with it. Note the relationship to OpenCode is a consumer one (an agent’s TUI is built on OpenTUI); that’s why the library lives here, not in ../agentic-tooling-wiki.

Tier / caveats

T2 — primary repo + README, authoritative for architecture; adoption is a star count, and the “correctness/stability/performance” framing is the project’s own (unbenchmarked here). Surfaced originally via an X post that hard-blocked automated fetch; content confirmed from the GitHub repo.

sst · terminal-ui · ui-framework · agent-ready-ui · astryx