opentui

Build terminal UIs with OpenTUI. Covers Core, frameworks, components, application APIs, testing, extensions, integrations, deployment, and public API lookup.

Install
npx skills add 'https://github.com/anomalyco/opentui/tree/main/packages/web/src/content'
Download bundle ↓
main · ac753b4Scanned 2026-09-15

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

packages/opentui-core.mdx

packages/opentui-core.mdxBrowse 89 files
View on GitHub
← Back to SKILL.md

id: opentui-core name: OpenTUI Core summary: Native terminal UI library with TypeScript bindings. kind: native-library official: true source: url: https://github.com/anomalyco/opentui directory: packages/core surfaces:


OpenTUI is a TypeScript library for building terminal user interfaces on a native Zig core.

@opentui/core supplies the renderer and TypeScript API. The TypeScript packages call native Zig through an internal foreign function interface (FFI) boundary.

import { TextRenderable, createCliRenderer } from "@opentui/core"

const renderer = await createCliRenderer({ exitOnCtrlC: true })

renderer.root.add(new TextRenderable(renderer, { content: "Hello, OpenTUI!" }))

exitOnCtrlC: true calls renderer.destroy() when the user presses Ctrl+C. The code that creates the renderer must call renderer.destroy() on every other shutdown path.

Read the components overview, runtime and platform support, API and symbol index, package entry points, and standalone executables. See lifecycle and cleanup for other shutdown paths.