sst / opentui
- вторник, 4 ноября 2025 г. в 00:00:02
 
OpenTUI is a library for building terminal user interfaces (TUIs)
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 tuiThis 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 (unmaintained)@opentui/go - Go bindings (unmaintained)NOTE: You must have Zig installed on your system to build the packages.
bun install @opentui/corebun install
cd packages/core
bun run src/examples/index.tsWhen 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/projectThis 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 --copyNotes:
bun install (or npm install) to have a node_modules directory--dist when you need to test the built artifacts--copy mode when working in environments that don't support symlinks well (e.g., Docker containers, Windows)