OpenTUI is a TypeScript library for building terminal user interfaces (TUIs). It is currently in development and is not ready for production use. It will be the foundational TUI framework for both opencode and terminaldotshop.
Quick start with bun and create-tui:
bun create tuiThis monorepo contains the following packages:
@opentui/core- The core library works completely standalone, providing an imperative API and all the primitives.@opentui/solid- The SolidJS reconciler for OpenTUI.@opentui/react- The React reconciler for OpenTUI.@opentui/vue- The Vue reconciler (unmaintained)@opentui/go- Go bindings (unmaintained)
NOTE: You must have Zig installed on your system to build the packages.
bun install @opentui/coreYou can quickly try out OpenTUI examples without cloning the repository:
For macOS, Linux, WSL, Git Bash:
curl -fsSL https://raw.githubusercontent.com/sst/opentui/main/packages/core/src/examples/install.sh | shFor Windows (PowerShell/CMD):
Download the latest release directly from GitHub Releases
bun install
cd packages/core
bun run src/examples/index.tsSee the Development Guide for building, testing, debugging, and local development linking.
- Development Guide - Building, testing, and local dev linking
- Getting Started - API and usage guide
- Environment Variables - Configuration options
Consider showcasing your work on the awesome-opentui list. A curated list of awesome resources and terminal user interfaces built with OpenTUI.