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 tui
This 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 for OpenTUI.@opentui/go
- Go bindings for OpenTUI
bun install @opentui/core
First install OpenTUI system-wide:
curl -L https://github.com/sst/opentui/releases/latest/download/install.sh | sh
Then use in your Go projects:
go get github.com/sst/opentui/packages/go
bun install
cd packages/core
bun run src/examples/index.ts
# Basic example
cd packages/go/examples/basic
go run .