OpenTUI

Built with shadcn/ui

The terminal component
for modern apps

A powerful, customizable terminal interface built with OpenTUI and React. Command history, tab completion, interactive UI components, and full TypeScript support.

Built for React and Next.js apps in the browser. The goal is a terminal-native web experience that keeps shadcn ergonomics without falling back to a generic command palette or stock slider UI.
OpenTUI Runtime Strategy
Installed packages, browser strategy, and the boundary for future Zig/WASM adoption.
Browser renderer: zig-wasmShadcn compatibleWASM runtime: ready

The browser runtime now uses the Zig core compiled to WebAssembly and rendered through a canvas cell buffer.

Use the WASM runtime path for terminal UI in browser experiences; keep the DOM wrapper only as fallback.

Required packages
@opentui/core @opentui/react
Install: bun add @opentui/core @opentui/react
$npx shadcn@latest add https://opentui.vercel.app/r/terminal.json
Compatible with npm, yarn, pnpm, and bun

See it in action

Watch automated demos showcasing OpenTUI terminal features

OpenTUI Terminal
Installation
user@opentui:~$
OpenTUI Terminal
UI Components
user@opentui:~$
OpenTUI Terminal
Built-in Commands
user@opentui:~$

Terminal-native patterns

Reusable OpenTUI interaction systems that stay inside the terminal instead of drifting into generic UI.

In-terminal workflows

Forms and menus as first-class terminal flows

Drive onboarding, settings, and command routing from one reusable OpenTUI surface.

OpenTUI Terminal
Ctrl+L to clear
Run 'profile' for a form.
Run 'menu' for a keyboard-driven menu.
$
Terminal dashboards

Dashboards that still feel like a terminal

Show progress, system status, and generated output without falling back to stock sliders.

OpenTUI Terminal
Ctrl+L to clear
Run 'status' for a live readout.
Run 'progress' or 'banner' for richer terminal output.
$
15+
Built-in commands
5
UI components
100%
TypeScript
<5kb
Bundle size

Everything you need

Powerful features for building terminal experiences

Command History

Navigate through previous commands with arrow keys, just like a real terminal.

Tab Completion

Intelligent tab completion with suggestions for faster command entry.

UI Components

Built-in forms, menus, tables, and progress flows for interactive terminal UIs.

Async Commands

Full support for async command handlers with loading states.

Try it yourself

Experience the full power of the OpenTUI terminal component. Type commands, use tab completion, and explore the built-in functionality including interactive UI modes.

Available commands

helpShow all commands
ui menu [items]Create interactive menu
form [fields]Create interactive form
progress [ms]Show animated progress
ascii [text]Generate ASCII art
clearClear terminal
Booting OpenTUI WASM core...

Ready to get started?

Add the OpenTUI terminal component to your project using the @shadcn-opentui registry.