qmetrics.net

OpenTUI

Terminal UI library with Zig core and language bindings

OpenTUI screenshot

OpenTUI is a native terminal UI library written in Zig with a C API, plus TypeScript, React, Solid, and Rust packages for building rich TUI applications.

Overview

OpenTUI is a library for building terminal user interfaces on a Zig-native renderer exposed through a C API. Application code can be written in Rust, TypeScript, React, or Solid, using layout and widgets suited to text-mode environments.

Layouts rely on flexbox-style arrangement of boxes and text. Developers can add selects, text inputs, and scroll areas with keyboard and mouse handling. The stack also supports media features such as video, audio, images, and 3D graphics rendering inside the terminal surface, depending on the packages used.

Published packages include core TypeScript bindings, React and Solid renderers, keymap routing, QR code rendering, a Three.js WebGPU integration, and SSH server hooks for serving TUI apps remotely. Rust crates provide another path to the same native core. OpenCode uses OpenTUI in production at large scale.

Documentation and examples ship alongside the codebase. An installable AI agent skill distributes the docs to coding assistants. Development targets recent Bun and Zig toolchains, with optional linking scripts for local package integration.

Key features

  • Zig-native renderer with C API
  • React and Solid TUI renderers
  • Flexbox layout for terminal widgets
  • Keyboard and mouse controls
  • Images, video, audio, and 3D output
  • Key binding and command routing
  • SSH serving integration package
  • Rust crates on the native core

Use cases

  • Rich terminal applications in TypeScript
  • React or Solid TUIs for developer tools
  • Rust CLI interfaces with native rendering
  • SSH-served interactive terminal UIs
  • QR and media in text-mode apps

Tags

Similar software

Bubble Tea

Go terminal UI framework using Elm architecture

Bubble Tea helps Go developers build terminal user interfaces with a model-update-view loop inspired by Elm. It supports inline, full-window, and mixed layouts.

★ 45.9k⟳ 2 days agoMIT

Ink

React component renderer for interactive terminal UIs

Ink lets developers build command-line interfaces with React components and Flexbox-style layouts via Yoga. It supports hooks, testing, and devtools familiar from browser React.

★ 40.3k⟳ 4 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Textual

Python framework for terminal and browser user interfaces

Textual lets developers build cross-platform interfaces in Python and run them in the terminal or a web browser. It targets rapid app development with widgets, layouts, and optional async integration.

★ 37.8k⟳ 1 month agoMIT

Ratatui

Rust library for terminal user interface applications

Ratatui is a Rust crate for building text-based terminal user interfaces. It suits command-line tools, dashboards, and other interactive console programs that need structured layouts and widgets.

★ 23.5k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

Inquirer.js

Interactive terminal prompts for Node.js command-line tools

Inquirer.js provides reusable prompt widgets for Node.js CLIs, including input, select, checkbox, and confirm flows. It runs in the terminal with TypeScript support and ships via npm, yarn, pnpm, or bun.

★ 21.6k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

Xterm.js

Browser terminal front-end component for web apps

Xterm.js is a TypeScript terminal component that embeds a full terminal experience in web pages and Electron apps.

★ 21.4k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app