MyGit

sst/opentui

Fork: 174 Star: 4699 (更新于 2025-11-07 17:34:31)

license: MIT

Language: TypeScript .

OpenTUI is a library for building terminal user interfaces (TUIs)

官方网址 GitHub网址

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 and terminaldotshop.

Quick start with bun and create-tui:

bun create tui

This monorepo contains the following packages:

Install

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

TypeScript/JavaScript

bun install @opentui/core

Running Examples (from the repo root)

TypeScript Examples

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

Development

Local Development Linking

When developing OpenTUI, you may want to test your changes in another project without publishing. The link-opentui-dev.sh script makes this easy by creating symlinks (or copies) from your OpenTUI workspace to another project's node_modules.

Basic usage:

./scripts/link-opentui-dev.sh /path/to/your/project

This will link @opentui/core to your target project.

Options:

  • --react - Also link @opentui/react
  • --solid - Also link @opentui/solid and solid-js
  • --dist - Link the built dist directories instead of source packages
  • --copy - Copy the dist directories instead of symlinking (requires --dist)

Examples:

# Link only core (default)
./scripts/link-opentui-dev.sh /path/to/your/project

# Link core and solid
./scripts/link-opentui-dev.sh /path/to/your/project --solid

# Link core and react, using dist directories
./scripts/link-opentui-dev.sh /path/to/your/project --react --dist

# Copy dist directories (useful for environments where symlinks don't work)
./scripts/link-opentui-dev.sh /path/to/your/project --dist --copy

Notes:

  • The target project must have already run bun install (or npm install) to have a node_modules directory
  • By default, the script links to the source packages, allowing hot-reloading of changes
  • Use --dist when you need to test the built artifacts
  • Use --copy mode when working in environments that don't support symlinks well (e.g., Docker containers, Windows)

Showcase

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

最近版本更新:(数据更新于 2025-11-07 14:34:19)

sst/opentui同语言 TypeScript最近更新仓库

2025-11-08 19:44:57 clash-verge-rev/clash-verge-rev

2025-11-08 17:58:09 fuma-nama/fumadocs

2025-11-08 15:00:33 x-extends/vxe-table

2025-11-08 09:59:51 continuedev/continue

2025-11-08 08:50:43 nrwl/nx

2025-11-08 06:48:45 tamagui/tamagui