OpenTUI is a library for building terminal user interfaces (TUIs)
OpenTUI is a library for building terminal user interfaces (TUIs)
OpenTUI is a library to build terminal user interfaces.
OpenCode uses OpenTUI in production for millions of users.
Website | Documentation | Packages
@opentui/core - Native terminal UI library with TypeScript bindings.@opentui/react - React renderer for building terminal user interfaces with OpenTUI Core.@opentui/solid - Solid renderer for building terminal user interfaces with OpenTUI Core.@opentui/keymap - Key binding and command routing library for terminal and browser applications.@opentui/qrcode - QR code encoder and renderable with React and Solid surfaces.@opentui/three - Three.js WebGPU renderer for OpenTUI.@opentui/ssh - SSH server integration for OpenTUI applications.Private packages
@opentui/native - Private workspace with the Zig implementation, native tests, and benchmarks.@opentui/examples - Private workspace with example applications and a standalone examples executable.@opentui/web - Private workspace with the documentation website and the AI agent skill.Install the OpenTUI documentation as a skill for your AI coding assistant with npx skills:
npx skills add anomalyco/opentui --skill opentuiAdd -g to install the skill globally.
Development requires Bun 1.4.1 or later and Zig 0.16.0.
See AGENTS.md for engineering, tooling, and verification conventions.
bun installRun package scripts from their package directory. Run bun run build from the repository root after you change
native code or cross-package build outputs. Ordinary TypeScript changes do not require a root build.
Run repository tests and static checks from the repository root:
bun run test
bun run fmt:check
bun run lintTo link the source packages into a Bun-managed project, install that project's dependencies, then run
./scripts/link-opentui-dev.sh /path/to/project from the repository root. Add --react or --solid when needed.
OpenTUI is open for contributions.
OpenTUI is licensed under the MIT License.
bug: missing SIGTSTP handler causes mouse garbling when process is externally suspended
`Renderable.remove()` uses `instanceof` instead of the package's own `isRenderable()` brand check, breaking across a dual-module-identity split
`createRoot(renderer).render()` silently wipes the previous tree via `clearContainer`, leaking its effects permanently
`useLayoutEffect` sees the previous commit's layout, not the one it just committed
Mouse escape characters to terminal after closing open-tui app (opencode)
ScrollBox scrollbar thumb is too short on first render with all items present
OpenTUI console does not interpret backslash escapes
Clipboard copy fails silently in tmux when OSC 52 passthrough is disabled
ScrollBox stickyScroll: a layout shrink re-arms manual-scroll re-engagement and drags the reader to the tail
Windows: Vitest selecting the Bun export cannot load opentui.dll under Node