# opentui **Repository Path**: mirrors/opentui ## Basic Information - **Project Name**: opentui - **Description**: OpenTUI 是一个用于构建终端用户界面 (TUI) 的 TypeScript 库 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: https://www.oschina.net/p/opentui - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-11-04 - **Last Updated**: 2026-02-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OpenTUI
npm Build status awesome opentui list
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](https://opencode.ai) and [terminaldotshop](https://terminal.shop). Docs: https://opentui.com/docs/getting-started Quick start with [bun](https://bun.sh) and [create-tui](https://github.com/msmps/create-tui): ```bash bun create tui ``` This monorepo contains the following packages: - [`@opentui/core`](packages/core) - The core library works completely standalone, providing an imperative API and all the primitives. - [`@opentui/solid`](packages/solid) - The SolidJS reconciler for OpenTUI. - [`@opentui/react`](packages/react) - The React reconciler for OpenTUI. ## Install NOTE: You must have [Zig](https://ziglang.org/learn/getting-started/) installed on your system to build the packages. ### TypeScript/JavaScript ```bash bun install @opentui/core ``` ## AI Agent Skill Teach your AI coding assistant OpenTUI's APIs and patterns. **For [OpenCode](https://opencode.ai) (includes `/opentui` command):** ```bash curl -fsSL https://raw.githubusercontent.com/msmps/opentui-skill/main/install.sh | bash ``` **For other AI coding assistants:** ```bash 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:** ```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](https://github.com/anomalyco/opentui/releases/latest) ## Running Examples (from the repo root) ### TypeScript Examples ```bash bun install cd packages/core bun run src/examples/index.ts ``` ## Development See the [Development Guide](packages/core/docs/development.md) for building, testing, debugging, and local development linking. ### Documentation - [Website docs](https://opentui.com/docs/getting-started) - Guides and API references - [Development Guide](packages/core/docs/development.md) - Building, testing, and local dev linking - [Getting Started](packages/core/docs/getting-started.md) - API and usage guide - [Environment Variables](packages/core/docs/env-vars.md) - Configuration options ## Showcase Consider showcasing your work on the [awesome-opentui](https://github.com/msmps/awesome-opentui) list. A curated list of awesome resources and terminal user interfaces built with OpenTUI.