Skip to content

sst/opentui

Repository files navigation

OpenTUI

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:

Install

TypeScript/JavaScript

bun install @opentui/core

Go

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

Running Examples (from the repo root)

TypeScript Examples

bun install
cd packages/core
bun run src/examples/index.ts

Go Examples

# Basic example
cd packages/go/examples/basic
go run .