Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

opentui

> 编程语言
Open source

OpenTUI is a library for building terminal user interfaces (TUIs)

12.8K stars0 likes2 views
WebsiteGitHub

About

OpenTUI is a library for building terminal user interfaces (TUIs)

OpenTUI is a library to build terminal user interfaces.

  • It is written in Zig.
  • You write TypeScript directly or through React and Solid.
  • You arrange boxes and text with flexbox.
  • You add selects, inputs, and scroll boxes with keyboard and mouse controls.
  • You can play sounds, show images, and render 3D graphics.

OpenCode uses OpenTUI in production for millions of users.

Website | Documentation | Packages

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.

AI agent skill

Install the OpenTUI documentation as a skill for your AI coding assistant with npx skills:

bash
npx skills add anomalyco/opentui --skill opentui

Add -g to install the skill globally.

Development

Development requires Bun 1.4.1 or later and Zig 0.16.0.

See AGENTS.md for engineering, tooling, and verification conventions.

bash
bun install

Run 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:

bash
bun run test
bun run fmt:check
bun run lint

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

Contributing

OpenTUI is open for contributions.

License

OpenTUI is licensed under the MIT License.

Issues· 150 open

View all issuesOpen on GitHub
  • #906

    bug: missing SIGTSTP handler causes mouse garbling when process is externally suspended

    bugcoreUpdated Sep 27, 2026
  • #1534

    `Renderable.remove()` uses `instanceof` instead of the package's own `isRenderable()` brand check, breaking across a dual-module-identity split

    Updated Sep 24, 2026
  • #1533

    `createRoot(renderer).render()` silently wipes the previous tree via `clearContainer`, leaking its effects permanently

    Updated Sep 24, 2026
  • #1532

    `useLayoutEffect` sees the previous commit's layout, not the one it just committed

    Updated Sep 24, 2026
  • #1530

    Mouse escape characters to terminal after closing open-tui app (opencode)

    Updated Sep 23, 2026
  • #1526

    ScrollBox scrollbar thumb is too short on first render with all items present

    Updated Sep 22, 2026
  • #1520

    OpenTUI console does not interpret backslash escapes

    Updated Sep 20, 2026
  • #1516

    Clipboard copy fails silently in tmux when OSC 52 passthrough is disabled

    Updated Sep 18, 2026
  • #1514

    ScrollBox stickyScroll: a layout shrink re-arms manual-scroll re-engagement and drags the reader to the tail

    Updated Sep 17, 2026
  • #1513

    Windows: Vitest selecting the Bun export cannot load opentui.dll under Node

    Updated Sep 17, 2026

> Tags

TypeScriptopencodetui

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言