docs/reference/package-entrypoints.mdx
docs/reference/package-entrypoints.mdxBrowse 89 files
14,655 bytes
Token encoding: o200k_base
Snapshot ac753b4
title: Package entry points description: Find each published OpenTUI package root and subpath, its runtime, and its workflow guide skill: entry: true intents: [package-exports, entrypoints, subpath-exports, imports]
Package entry points
Generated publish manifests define the entry points below. Some workspace manifests differ from the files published to npm. Import only these roots and subpaths. Source-file deep imports are not public entry points.
Read Runtime and platform support for runtime versions and native targets. Use the API and symbol index to find an exported name.
@opentui/core
| Entry point | Runtime | Purpose | Workflow |
|---|---|---|---|
@opentui/core | Bun and Node.js | Renderer, renderables, input, buffers, audio, plugins, Tree-sitter, and shared types | Renderer |
@opentui/core/testing | Bun and Node.js | Test renderer, input and mouse drivers, fixtures, clocks, spies, Tree-sitter mock, and frame recorder | Testing |
@opentui/core/runtime-plugin | Bun only | Runtime-module plugin factory, module identifiers, rewrite options, and runtime entry types | Runtime module loading |
@opentui/core/runtime-plugin-support | Bun only | Install core runtime-module support as an import side effect, and export its setup API | Runtime module loading |
@opentui/core/runtime-plugin-support/configure | Bun only | Export configurable ensureRuntimePluginSupport() without import-time installation | Runtime module loading |
@opentui/core/yoga | Bun and Node.js | Native Yoga facade, enums, constants, layout values, and callbacks | Yoga API |
@opentui/core/tree-sitter/update-assets | Build time, with Bun CLI | Tree-sitter asset updater and command-line runner | Tree-sitter |
@opentui/core/parser.worker | Bun and Node.js worker | Parser worker module with no named application exports | Tree-sitter |
@opentui/core/node-assets | Node.js build time | Node single-executable asset manifest | Standalone executables |
The three runtime-plugin entry points publish Node.js stubs. A stub throws during import and tells you to use Bun. The Tree-sitter updater also uses Bun-specific tooling.
@opentui/core/node-assets is a build-time API. Do not call it from the finished executable.
The core build also generates platform packages such as @opentui/core-linux-x64. Each generated package exports one default native-library path. These packages are internal distribution surfaces, not application APIs.
@opentui/react
| Entry point | Runtime | Purpose | Workflow |
|---|---|---|---|
@opentui/react | Bun and Node.js | React root, intrinsic catalogue, components, hooks, slots, TimeToFirstDraw, and component types | React bindings |
@opentui/react/renderer | Bun and Node.js | Renderer declarations for createRoot, createPortal, flushSync, and Root | React bindings |
@opentui/react/test-utils | Bun and Node.js | React-aware testRender() over @opentui/core/testing | Testing |
@opentui/react/runtime-plugin-support | Bun only | Install React runtime-module support as an import side effect | Runtime module loading |
@opentui/react/runtime-plugin-support/configure | Bun only | Configure React runtime-module support without import-time installation | Runtime module loading |
@opentui/react/jsx-runtime | Compiler selected | Automatic JSX runtime and OpenTUI JSX types | React bindings |
@opentui/react/jsx-dev-runtime | Compiler selected | Development JSX runtime and OpenTUI JSX types | React bindings |
The generated publish map adds /renderer. The workspace manifest does not list it. Its declaration target contains the four renderer exports, but its runtime target is the full root index.js bundle. Do not depend on other root values through /renderer.
Both runtime-plugin support paths publish Node.js stubs that throw during import. TypeScript selects the JSX paths from jsxImportSource. Application code does not import them directly.
@opentui/solid
| Entry point | Runtime | Purpose | Workflow |
|---|---|---|---|
@opentui/solid | Bun and Node.js | Solid renderer, test renderer, hooks, elements, scrollback, slots, reconciler exports, and types | Solid bindings |
@opentui/solid/preload | Bun only | Preload that installs the Solid source transform and has no named exports | Solid bindings |
@opentui/solid/bun-plugin | Bun only | Solid transform plugin, installation helpers, reset helper, and default plugin export | Solid bindings |
@opentui/solid/runtime-plugin-support | Bun only | Install the Solid transform and runtime-module support as an import side effect | Runtime module loading |
@opentui/solid/runtime-plugin-support/configure | Bun only | Configure Solid runtime support without import-time installation | Runtime module loading |
@opentui/solid/components | Bun and Node.js | Component catalogue extension functions and types | Solid bindings |
@opentui/solid/jsx-runtime | Compiler selected | Automatic JSX runtime and OpenTUI JSX namespace | Solid bindings |
@opentui/solid/jsx-dev-runtime | Compiler selected | Development JSX runtime and OpenTUI JSX namespace | Solid bindings |
preload, bun-plugin, and both runtime-plugin support paths publish Node.js stubs that throw during import. The Solid compiler selects the JSX paths.
@opentui/keymap
| Entry point | Runtime | Purpose | Workflow |
|---|---|---|---|
@opentui/keymap | JavaScript runtimes | Host-agnostic Keymap, extension context, key stringifiers, and shared types | Keymap |
@opentui/keymap/extras | JavaScript runtimes | Binding lookup, command-binding, and formatting helpers | Core keymap API |
@opentui/keymap/extras/graph | JavaScript runtimes | Graph snapshots and graph projection types | Core keymap API |
@opentui/keymap/addons | JavaScript runtimes | Universal parser, field, metadata, leader, sequence, command, and diagnostics addons | Built-in keymap addons |
@opentui/keymap/addons/opentui | Bun and Node.js | Universal addons plus OpenTUI base-layout and edit-buffer helpers | Built-in keymap addons |
@opentui/keymap/testing | JavaScript test runtimes | Fake host, targets, events, diagnostics, and createTestKeymap() | Core keymap API |
@opentui/keymap/html | Browser DOM | DOM host, event adapter, and bare or default HTML keymap factories | Keymap hosts |
@opentui/keymap/opentui | Bun and Node.js | CliRenderer and Renderable host adapter, plus bare or default OpenTUI keymap factories | Keymap hosts |
@opentui/keymap/react | OpenTUI React | Provider, hooks, and store-backed reactive matcher | React keymap integration |
@opentui/keymap/solid | OpenTUI Solid | Provider, hooks, selector, and signal-backed reactive matcher | Solid keymap integration |
@opentui/keymap/runtime-modules | Bun runtime loading | Runtime-module map for the root, extras, addons, adapters, and lazy framework bindings | Runtime module loading |
Adapter entry points do not re-export the shared engine. Import Keymap, stringifiers, and shared types from the root.
The runtime-module map omits /testing and /runtime-modules. It loads the React and Solid bindings lazily.
@opentui/qrcode
| Entry point | Runtime | Purpose | Workflow |
|---|---|---|---|
@opentui/qrcode | Bun and Node.js | QR encoder, segments, error correction, SVG and terminal output, and QRCodeRenderable | QR encoder |
@opentui/qrcode/react | OpenTUI React | Full root re-export plus registerQRCode() for the qr-code intrinsic | QR code component |
@opentui/qrcode/solid | OpenTUI Solid | Full root re-export plus registerQRCode() for the qr_code intrinsic | QR code component |
The framework paths include the encoder and renderable exports. They are not registration-only modules.
@opentui/ssh
| Entry point | Runtime | Purpose | Workflow |
|---|---|---|---|
@opentui/ssh | Bun 1.3.0 or Node.js 26.4.0 or later | SSH server builder, authentication, middleware, sessions, logging, errors, and public types | SSH |
The package has no framework subpaths. Pass the session renderer to the React or Solid root API.
@opentui/three
| Entry point | Runtime | Purpose | Workflow |
|---|---|---|---|
@opentui/three | Bun only | Three.js WebGPU renderer, renderable, sprites, effects, resource pools, physics adapters, and THREE | Three.js WebGPU |
@opentui/three/runtime-modules | Bun only | Runtime-module map that contains the @opentui/three root | Runtime module loading |
Both entry points require Bun. The package declares Bun 1.3.0 or newer.
Referenced from SKILL.md
Source excerpt starting at line 50.SKILL.mdView in source ↗50See [Package entry points](docs/reference/package-entrypoints.mdx) for the full list of public imports.51The list includes testing, addons, host adapters, and runtime-module maps.
Source excerpt starting at line 101.SKILL.mdView in source ↗101| `api`, `symbols`, `exports`, `public-api`, `api-index`, `lookup` | `docs/reference/api-index.mdx` |102| `package-exports`, `entrypoints`, `subpath-exports`, `imports` | `docs/reference/package-entrypoints.mdx` |103| `env`, `environment`, `configuration`, `flags` | `docs/reference/env-vars.mdx` |
Source excerpt starting at line 139.139- `docs/reference/api-index.mdx`140- `docs/reference/package-entrypoints.mdx`141- `docs/reference/env-vars.mdx`