1
Fork 0
mirror of https://github.com/benkoppe/opentui synced 2026-04-17 19:41:11 -07:00
No description
  • TypeScript 67.6%
  • Zig 28.4%
  • MDX 2.4%
  • Astro 0.6%
  • CSS 0.3%
  • Other 0.6%
Find a file
2026-03-19 16:52:00 +01:00
.github manual preview pkg release only (#825) 2026-03-17 15:27:41 +01:00
packages improve external plugin/module resolve for oc (#831) 2026-03-19 16:52:00 +01:00
scripts chore: remove unmaintained vue and go packages (#494) 2026-01-08 16:02:58 +01:00
.editorconfig extract 2025-07-21 17:47:38 +02:00
.gitignore ignore nvim session 2025-11-17 00:44:08 +01:00
.prettierignore docs: add badges + showcasing (#274) 2025-11-06 16:39:06 +00:00
.zig-version Upgrade to Zig 0.15.2 (#439) 2026-01-06 16:26:37 +01:00
AGENTS.md refactor: replace Bun.file usages with node:fs (#776) 2026-03-09 14:25:40 +01:00
bun.lock improve external plugin/module resolve for oc (#831) 2026-03-19 16:52:00 +01:00
CONTRIBUTING.md docs: Update repo references for new Github org (#476) 2026-01-11 21:35:22 +01:00
LICENSE license 2025-08-12 12:01:55 +02:00
opentui.pc.in add a release workflow for the dylib; create install.sh; move the C header to go/ for now, cgo doesnt support looking in parent dirs (#105) 2025-08-30 20:56:39 +02:00
package.json improve external plugin/module resolve for oc (#831) 2026-03-19 16:52:00 +01:00
README.md docs update 2026-02-21 17:38:48 +01:00

OpenTUI

npm Build status awesome opentui list

OpenTUI is a native terminal UI core written in Zig with TypeScript bindings. The native core exposes a C ABI and can be used from any language. OpenTUI powers OpenCode in production today and will also power terminal.shop. It is an extensible core with a focus on correctness, stability, and high performance. It provides a component-based architecture with flexible layout capabilities, allowing you to create complex terminal applications.

Docs: https://opentui.com/docs/getting-started

Quick start with bun and create-tui:

bun create tui

This monorepo contains the following packages:

  • @opentui/core - TypeScript bindings for OpenTUI's native Zig core, with an imperative API and all primitives.
  • @opentui/solid - The SolidJS reconciler for OpenTUI.
  • @opentui/react - The React reconciler for OpenTUI.

Install

NOTE: You must have Zig installed on your system to build the packages.

TypeScript/JavaScript

bun install @opentui/core

AI Agent Skill

Teach your AI coding assistant OpenTUI's APIs and patterns.

For OpenCode (includes /opentui command):

curl -fsSL https://raw.githubusercontent.com/msmps/opentui-skill/main/install.sh | bash

For other AI coding assistants:

npx skills add msmps/opentui-skill

Try Examples

You can quickly try out OpenTUI examples without cloning the repository:

For macOS, Linux, WSL, Git Bash:

curl -fsSL https://raw.githubusercontent.com/anomalyco/opentui/main/packages/core/src/examples/install.sh | sh

For Windows (PowerShell/CMD):

Download the latest release directly from GitHub Releases

Running Examples (from the repo root)

TypeScript Examples

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

Development

See the Development Guide for building, testing, debugging, and local development linking.

Documentation

Showcase

Consider showcasing your work on the awesome-opentui list. A curated list of awesome resources and terminal user interfaces built with OpenTUI.