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 ↗

docs/reference/api-index.mdx

docs/reference/api-index.mdxBrowse 89 files
View on GitHub
← Back to SKILL.md

title: API and symbol index description: Find every published OpenTUI entry point and exported symbol, with its runtime, support class, and canonical documentation skill: entry: true intents: [api, symbols, exports, public-api, api-index, lookup]

API and symbol index

Use this page to find every published OpenTUI entry point and named export. The tables come from the generated publish maps and source barrels. They include runtime values and type-only exports.

Support classes

ClassMeaning
SupportedThis is a normal supported API.
AdvancedThis API needs direct ownership, lifecycle, rendering, or integration knowledge.
ExperimentalThis API can change as its design develops.
Runtime-specificThis API works only in the runtime shown in its row.
DeprecatedKeep this API only while you move to its replacement.
Implementation-looking public exportThe export is publicly reachable today, but OpenTUI does not endorse it for ordinary use. It is still indexed here.

A row can have more than one class. Read Runtime and platform support for the supported Bun and Node.js versions.

Entry point index

The runtime column describes the published target. A Node stub throws during import for each Bun-only support entry point.

Package entry pointRuntimeClassCanonical documentation
@opentui/coreBun and Node.jsSupportedRenderer
@opentui/core/testingBun and Node.jsSupportedTesting
@opentui/core/runtime-pluginBun onlyRuntime-specific, AdvancedRuntime module loading
@opentui/core/runtime-plugin-supportBun onlyRuntime-specific, AdvancedRuntime module loading
@opentui/core/runtime-plugin-support/configureBun onlyRuntime-specific, AdvancedRuntime module loading
@opentui/core/yogaBun and Node.jsAdvancedYoga API
@opentui/core/tree-sitter/update-assetsBuild time, with Bun CLIRuntime-specificTree-sitter
@opentui/core/parser.workerBun and Node.js workerImplementation-looking public exportTree-sitter
@opentui/core/node-assetsNode.js build timeRuntime-specificStandalone executables
@opentui/reactBun and Node.jsSupportedReact bindings
@opentui/react/rendererBun and Node.jsSupported, Implementation-looking public exportReact bindings
@opentui/react/test-utilsBun and Node.jsSupportedTesting
@opentui/react/runtime-plugin-supportBun onlyRuntime-specific, AdvancedRuntime module loading
@opentui/react/runtime-plugin-support/configureBun onlyRuntime-specific, AdvancedRuntime module loading
@opentui/react/jsx-runtimeCompiler selectedSupportedReact bindings
@opentui/react/jsx-dev-runtimeCompiler selectedSupportedReact bindings
@opentui/solidBun and Node.jsSupportedSolid bindings
@opentui/solid/preloadBun onlyRuntime-specificSolid bindings
@opentui/solid/bun-pluginBun onlyRuntime-specific, AdvancedSolid bindings
@opentui/solid/runtime-plugin-supportBun onlyRuntime-specific, AdvancedRuntime module loading
@opentui/solid/runtime-plugin-support/configureBun onlyRuntime-specific, AdvancedRuntime module loading
@opentui/solid/componentsBun and Node.jsAdvancedSolid bindings
@opentui/solid/jsx-runtimeCompiler selectedSupportedSolid bindings
@opentui/solid/jsx-dev-runtimeCompiler selectedSupportedSolid bindings
@opentui/keymapJavaScript runtimesSupportedCore keymap API
@opentui/keymap/extrasJavaScript runtimesSupportedCore keymap API
@opentui/keymap/extras/graphJavaScript runtimesAdvancedCore keymap API
@opentui/keymap/addonsJavaScript runtimesSupportedBuilt-in keymap addons
@opentui/keymap/addons/opentuiBun and Node.jsSupportedBuilt-in keymap addons
@opentui/keymap/testingJavaScript test runtimesSupportedCore keymap API
@opentui/keymap/htmlBrowser DOMRuntime-specificKeymap hosts
@opentui/keymap/opentuiBun and Node.jsRuntime-specificKeymap hosts
@opentui/keymap/reactOpenTUI ReactRuntime-specificReact keymap integration
@opentui/keymap/solidOpenTUI SolidRuntime-specificSolid keymap integration
@opentui/keymap/runtime-modulesBun runtime loadingRuntime-specific, AdvancedRuntime module loading
@opentui/qrcodeBun and Node.jsSupportedQR encoder
@opentui/qrcode/reactOpenTUI ReactRuntime-specificQR code component
@opentui/qrcode/solidOpenTUI SolidRuntime-specificQR code component
@opentui/sshBun 1.3.0 or Node.js 26.4.0 or laterRuntime-specificSSH
@opentui/threeBun onlyRuntime-specific, AdvancedThree.js WebGPU
@opentui/three/runtime-modulesBun onlyRuntime-specific, AdvancedRuntime module loading

See Package entry points for each entry point's role and import constraints.

@opentui/core

The root works in Bun and supported Node.js releases. A class in these tables applies to every symbol in its row.

Renderer and render tree

AreaSymbolsClassCanonical documentation
RendererCliRenderer, CliRendererConfig, CliRendererErrorEvent, CliRendererExternalOutputEvent, CliRendererFrameEvent, CliRendererHandlerErrorEvent, CliRendererStats, CliRenderEvents, ConsoleMode, createCliRenderer, ExternalOutputMode, KittyKeyboardOptions, MouseButton, MouseEvent, PixelResolution, RendererControlState, ScreenModeSupportedRenderer
Scheduling and scrollbackRendererSchedulerState, ScrollbackRenderContext, ScrollbackSnapshot, ScrollbackSurface, ScrollbackSurfaceCommitOptions, ScrollbackSurfaceOptions, ScrollbackWriter, SplitFooterReplayResetOptionsAdvancedRenderer
Shared renderer typesCapturedFrame, CapturedLine, CapturedSpan, CursorStyle, CursorStyleOptions, DebugOverlayCorner, ImageRenderProtocol, MousePointerStyle, RenderContext, RendererEvents, TargetChannel, TerminalCapabilities, TerminalCapabilityState, TerminalInfo, TerminalMultiplexer, ThemeMode, Timeout, ViewportBounds, WidthMethodSupportedRenderer, Interaction, and Terminal capabilities
Cell and highlight typesATTRIBUTE_BASE_BITS, ATTRIBUTE_BASE_MASK, getBaseAttributes, Highlight, LineInfo, LineInfoProvider, TextAttributesAdvancedText and terminal cells
RenderablesBaseRenderable, BaseRenderableOptions, isRenderable, LayoutEvents, LayoutOptions, Position, Renderable, RenderableEvents, RenderableOptions, RenderCommand, RootRenderableSupportedRenderables
Composition constructsASCIIFont, Box, Code, FrameBuffer, Generic, Input, ScrollBox, Select, TabSelect, Text, vstylesImplementation-looking public exportRenderables
Composition internalsConstruct, DelegateMap, delegate, FunctionalConstruct, h, InstantiateFn, instantiate, isVNode, maybeMakeRenderable, PendingCall, ProxiedVNode, RenderableConstructor, ValidateShape, VChild, VNode, VRenderable, VRenderableOptions, wrapWithDelegatesImplementation-looking public exportRenderables
Layout string parsersAlignString, BoxSizingString, DimensionString, DirectionString, DisplayString, EdgeString, FlexDirectionString, GutterString, JustifyString, LogLevelString, MeasureModeString, OverflowString, parseAlign, parseAlignItems, parseBoxSizing, parseDimension, parseDirection, parseDisplay, parseEdge, parseFlexDirection, parseGutter, parseJustify, parseLogLevel, parseMeasureMode, parseOverflow, parsePositionType, parseUnit, parseWrap, PositionTypeString, UnitString, WrapStringAdvancedLayout
Tree inspectionvisualizeRenderableTreeAdvancedRenderables

Input and selection

AreaSymbolsClassCanonical documentation
Keyboard eventsKeyEvent, KeyHandler, KeyHandlerEventMap, PasteEventSupportedKeyboard input
Keyboard implementationbuildKittyKeyboardFlags, InternalKeyHandlerImplementation-looking public exportKeyboard input
Key parserKeyEventType, nonAlphanumericKeys, ParsedKey, parseKeypress, ParseKeypressOptions, terminalNamedSingleStrokeKeysAdvancedKeyboard input
Raw input parserStdinEvent, StdinParser, StdinParserOptions, StdinParserProtocolContext, StdinResponseProtocolAdvancedKeyboard input
Mouse parserMouseEventType, MouseParser, RawMouseEvent, ScrollInfoAdvancedInteraction, focus, and selection
Paste decodingdecodePasteBytes, PasteKind, PasteMetadata, stripAnsiSequencesAdvancedKeyboard input
Scroll accelerationLinearScrollAccel, MacOSScrollAccel, ScrollAccelerationAdvancedInteraction, focus, and selection
SelectionASCIIFontSelectionHelper, convertGlobalToLocalSelection, LocalSelectionBounds, SelectionAdvancedInteraction, focus, and selection
AreaSymbolsClassCanonical documentation
Styled textbg, bgBlack, bgBlue, bgCyan, bgGreen, bgMagenta, bgRed, bgWhite, bgYellow, black, blink, blue, bold, brightBlack, brightBlue, brightCyan, brightGreen, brightMagenta, brightRed, brightWhite, brightYellow, Color, cyan, dim, fg, green, isStyledText, italic, link, magenta, red, reverse, strikethrough, stringToStyledText, StylableInput, StyleAttrs, StyledText, t, underline, white, yellowSupportedText and terminal cells
Color valuesansi256IndexToRgb, ColorInput, ColorIntent, DEFAULT_BACKGROUND_RGB, DEFAULT_FOREGROUND_RGB, hexToRgb, hsvToRgb, normalizeColorValue, NormalizedColorValue, normalizeIndexedColorIndex, parseColor, RGBA, rgbToHex, RGBTripletSupportedColors
Attributes and linksattributesWithLink, createTextAttributes, getLinkId, detectLinksAdvancedText and terminal cells
HAST conversionHASTElement, HASTNode, HASTText, hastToStyledTextAdvancedText and terminal cells
ClipboardClipboard, ClipboardClearResult, ClipboardOptions, ClipboardReadOptions, ClipboardReadResult, ClipboardRepresentation, ClipboardSelection, ClipboardService, ClipboardTarget, ClipboardWriteDestination, ClipboardWriteOptions, ClipboardWriteResult, createClipboard, createHostClipboard, createRendererClipboardAdapter, HostClipboardBackend, HostClipboardClearResult, HostClipboardOperationOptions, HostClipboardOptions, HostClipboardReadOptions, HostClipboardService, HostClipboardWriteOptions, HostClipboardWriteResult, RendererClipboardBoundary, TerminalClipboardAdapter, TerminalClipboardOperationResultSupportedClipboard

Tree-sitter and syntax styles

AreaSymbolsClassCanonical documentation
Client lifecycleaddDefaultParsers, destroyTreeSitterClient, getTreeSitterClient, TreeSitterClientSupportedTree-sitter
File type lookupbasenameToFiletype, extensionToFiletype, extToFiletype, infoStringToFiletype, pathToFiletypeSupportedTree-sitter
Styled outputtreeSitterToStyledText, TreeSitterToStyledTextOptions, treeSitterToTextChunksSupportedTree-sitter
Parser and result typesFiletypeParserOptions, HighlightMeta, HighlightRange, HighlightResponse, InjectionMapping, SimpleHighlight, TreeSitterClientEvents, TreeSitterClientOptionsSupportedTree-sitter
Worker protocolBufferState, Edit, ParsedBuffer, PerformanceStats, TreeSitterWorkerLogType, TreeSitterWorkerRequest, TreeSitterWorkerResponseAdvancedTree-sitter
Syntax stylesconvertThemeToStyles, MergedStyle, StyleDefinition, StyleDefinitionInput, SyntaxStyle, ThemeTokenStyleSupportedTree-sitter

Plugins, console, and process services

AreaSymbolsClassCanonical documentation
Generic slotscreateSlotRegistry, Plugin, PluginContext, PluginErrorEvent, PluginErrorPhase, PluginErrorReport, PluginErrorSource, ResolvedSlotRenderer, SlotMode, SlotRegistry, SlotRegistryOptions, SlotRendererSupportedPlugin slots
Core slotsCoreManagedSlot, CorePlugin, CoreResolvedSlotRenderer, CoreSlotContribution, CoreSlotFailurePlaceholder, CoreSlotMode, CoreSlotRegistry, CoreSlotRenderer, createCoreSlotRegistry, registerCorePlugin, resolveCoreSlot, SlotRenderable, SlotRenderableOptionsSupportedCore plugin slots
Console overlaycapture, ConsoleAction, ConsoleKeyBinding, ConsoleOptions, ConsolePosition, TerminalConsoleSupportedConsole overlay
Environment accessclearEnvCache, env, EnvVarConfig, registerEnvVarAdvancedEnvironment variables
Environment registry outputenvRegistry, generateEnvColored, generateEnvMarkdownImplementation-looking public exportEnvironment variables
Terminal palettebuildTerminalPaletteSignature, createTerminalPalette, GetPaletteOptions, NormalizedTerminalPalette, normalizeTerminalPalette, OscSubscriptionSource, TerminalColors, TerminalPalette, TerminalPaletteDetector, TerminalPaletteOptions, WriteFunctionAdvancedTerminal capabilities
Application pathsDataPaths, DataPathsEvents, DataPathsManager, getDataPathsAdvancedApplication data paths
ClocksClock, SystemClock, TimerHandleAdvancedAnimation and Timeline

Components and component helpers

Component or areaSymbolsClassCanonical documentation
ASCII fontASCIIFontName, ASCIIFontOptions, ASCIIFontRenderable, coordinateToCharacterIndex, fonts, getCharacterPositions, measureText, renderFontToFrameBufferSupportedASCII font
Box and bordersBorderCharacters, BorderCharArrays, BorderChars, borderCharsToArray, BorderConfig, BorderSides, BorderSidesConfig, BorderStyle, BoxDrawOptions, BoxOptions, BoxRenderable, getBorderFromSides, getBorderSides, isValidBorderStyle, parseBorderStyleSupportedBox
CodeChunkRenderContext, CodeOptions, CodeRenderable, HighlightContext, OnChunksCallback, OnHighlightCallbackSupportedCode
DiffDiffRenderable, DiffRenderableOptionsSupportedDiff
Embedded terminalEmbeddedTerminalDataSource, EmbeddedTerminalOptions, EmbeddedTerminalRenderable, EmbeddedTerminalScreenSupportedEmbedded terminal
Editable buffer renderableContentChangeEvent, CursorChangeEvent, EditBufferOptions, EditBufferRenderable, EditBufferRenderableEvents, EditorCapture, EditorTraits, isEditBufferRenderableAdvancedEditing buffers and views
Frame bufferFrameBufferOptions, FrameBufferRenderableAdvancedFrame buffer
Image displayImageFit, ImageRenderable, ImageRenderableOptions, ImageRenderableSource, resolveImageRenderProtocolSupportedImage
Kitty transportKittyImageTransport, KittyImageTransportStatusSupportedKitty transport
InputInputAction, InputKeyBinding, InputRenderable, InputRenderableEvents, InputRenderableOptionsSupportedInput
Line number gutterLineColorConfig, LineNumberOptions, LineNumberRenderable, LineSignSupportedLine number gutter
MarkdownBlockState, createMarkdownCodeBlockRenderer, MarkdownCodeBlockRenderer, MarkdownCodeBlockRendererMap, MarkdownOptions, MarkdownRenderable, MarkdownTableOptions, MarkdownTableStyle, RenderNodeContextSupportedMarkdown
Markdown parser stateParseStateImplementation-looking public exportMarkdown
Scroll barArrowOptions, ArrowRenderable, ScrollBarOptions, ScrollBarRenderable, ScrollUnitAdvancedScroll bar
Scroll boxScrollBoxOptions, ScrollBoxRenderableSupportedScroll box
SelectSelectAction, SelectKeyBinding, SelectOption, SelectRenderable, SelectRenderableEvents, SelectRenderableOptionsSupportedSelect
SliderSliderOptions, SliderRenderableSupportedSlider
Tab selectTabSelectAction, TabSelectKeyBinding, TabSelectOption, TabSelectRenderable, TabSelectRenderableEvents, TabSelectRenderableOptionsSupportedTab select
TextTextOptions, TextRenderableSupportedText
Text nodesisTextNodeRenderable, RootTextNodeRenderable, TextNodeOptions, TextNodeRenderableAdvancedText and terminal cells
Text tableTextTableCellContent, TextTableColumnFitter, TextTableColumnWidthMode, TextTableContent, TextTableOptions, TextTableRenderableSupportedText table
TextareadefaultTextareaKeyBindings, KeyBinding, SubmitEvent, TextareaAction, TextareaKeyAliasMap, TextareaOptions, TextareaRenderableSupportedTextarea
Text buffer renderableTextBufferOptions, TextBufferRenderableAdvancedEditing buffers and views
First-draw timestampTimeToFirstDrawOptions, TimeToFirstDrawRenderableSupportedTime to first draw

Buffers, editing, animation, and effects

AreaSymbolsClassCanonical documentation
Cell bufferOptimizedBufferAdvancedBuffer API
Text bufferTextBuffer, TextChunk, TextBufferViewAdvancedEditing buffers and views
EditingEditBuffer, EditorView, ViewportAdvancedEditing buffers and views
ExtmarkscreateExtmarksController, Extmark, ExtmarkOptions, ExtmarksControllerExperimental, AdvancedEditing buffers and views
TimelineAnimationOptions, createTimeline, EasingFunctions, JSAnimation, Timeline, TimelineOptionsSupportedAnimation and Timeline
Animation engineengineImplementation-looking public exportAnimation and Timeline
EffectsCloudsEffect, CRTRollingBarEffect, DistortionEffect, FlamesEffect, RainbowTextEffect, VignetteEffectExperimental, AdvancedPost-processing effects
FiltersapplyAsciiArt, applyBrightness, applyChromaticAberration, applyGain, applyInvert, applyNoise, applySaturation, applyScanlines, BloomEffectExperimental, AdvancedPost-processing effects
MatricesACHROMATOPSIA_MATRIX, DEUTERANOPIA_COMP_MATRIX, DEUTERANOPIA_SIM_MATRIX, GRAYSCALE_MATRIX, GREENSCALE_MATRIX, INVERT_MATRIX, PROTANOPIA_COMP_MATRIX, PROTANOPIA_SIM_MATRIX, SEPIA_MATRIX, SOLARIZATION_MATRIX, SYNTHWAVE_MATRIX, TECHNICOLOR_MATRIX, TRITANOPIA_COMP_MATRIX, TRITANOPIA_SIM_MATRIXAdvancedColor matrices

Images, audio, and native span output

AreaSymbolsClassCanonical documentation
NativeImage APIBlendMode, CompositeOptions, ExtendOptions, ExtractOptions, ImageColorStatus, ImageError, ImageErrorCode, ImageFormat, imageInfo, ImageInfo, ImageLoadError, ImageLoadErrorCode, ImageLoadOptions, ImageSource, NativeImage, NativeImagePool, NativeImagePoolOptions, OwnedRawImage, PixelFormat, PixelImportOptions, RawImage, ResizeKernel, ResizeOptionsAdvancedNativeImage
Audio playback and mixingAudio, AudioAction, AudioErrorContext, AudioEvents, AudioGroup, AudioInitializationAction, AudioInitializationError, AudioPlaybackDevice, AudioPlayOptions, AudioSetupOptions, AudioSound, AudioStartOptions, AudioVoice, setupAudioSupportedAudio
Streaming audioAudioStream, AudioStreamAction, AudioStreamBody, AudioStreamBodyOptions, AudioStreamBufferOptions, AudioStreamConnectContext, AudioStreamConnection, AudioStreamConnector, AudioStreamContentTypeContext, AudioStreamContentTypePolicy, AudioStreamDemuxer, AudioStreamDemuxerFactory, AudioStreamDemuxOutput, AudioStreamError, AudioStreamErrorContext, AudioStreamEvents, AudioStreamFormat, AudioStreamMetadata, AudioStreamMetadataFormat, AudioStreamOptions, AudioStreamReconnectEvent, AudioStreamReconnectOptions, AudioStreamRetryContext, AudioStreamRetryDecision, AudioStreamRetryPhase, AudioStreamSourceOptions, AudioStreamState, AudioStreamStats, AudioStreamUrlOptions, createIcyStreamDemuxer, IcyStreamDemuxerOptionsSupportedStreaming audio
Audio capture and recordingAudioCaptureDevice, AudioCaptureOptions, AudioCaptureReadResult, AudioCaptureStats, AudioCaptureStream, AudioCaptureStreamAction, AudioCaptureStreamError, AudioCaptureStreamErrorContext, AudioCaptureStreamEvents, AudioCaptureStreamOptions, AudioCaptureStreamState, AudioCaptureStreamStats, AudioRecorder, AudioRecorderAction, AudioRecorderError, AudioRecorderErrorContext, AudioRecorderEvents, AudioRecorderState, AudioRecorderStats, AudioRecordToFileOptionsSupportedAudio capture and recording
Native span outputDataHandler, NativeSpanFeedAdvancedNativeSpanFeed

Low-level native binding exports

These names expose the TypeScript side of the native binding. Use the higher-level API unless a low-level guide requires one of them.

AreaSymbolsClassCanonical documentation
Native handles and binding typesAudioEngineHandle, AudioEngineLib, ClipboardOperationHandle, ClipboardServiceHandle, CursorState, EditBufferHandle, EditorViewHandle, EventSinkHandle, ImageHandle, LogicalCursor, LogLevel, MeasureResult, NativeAudioStreamCloseReason, NativeAudioStreamFormat, NativeAudioStreamState, NativeBufferedOutput, NativeClipboardCancelStatus, NativeClipboardCopyStatus, NativeClipboardDestroyStatus, NativeClipboardOperationStatus, NativeClipboardShutdownStatus, NativeClipboardStartStatus, NativeHandle, NativeMeasureTargetHandle, NativeMeasureTargetKind, NativeRenderableHandle, NativeRendererCreateOptions, NativeRenderOperationResult, NativeSpanFeedEventHandler, NativeYogaDirtiedCallback, NativeYogaLayout, NativeYogaMeasureCallback, OptimizedBufferHandle, RendererHandle, RenderLib, resolveRenderLib, setRenderLibPath, SyntaxStyleHandle, TextBufferHandle, TextBufferViewHandle, VisualCursorImplementation-looking public exportThis section
Native result structuresAllocatorStats, AudioStreamCreateOptions, BuildOptions, GrowthPolicy, NativeAudioCaptureStats, NativeAudioStreamStats, NativeRenderStats, NativeSpanFeedOptions, NativeSpanFeedStatsAdvancedThis section
Bundled asset resolutionresolveBundledFilePathImplementation-looking public exportStandalone executables
Yoga namespaceYogaAdvancedYoga API

Other @opentui/core entry points

Testing

@opentui/core/testing works in Bun and Node.js.

AreaSymbolsClassCanonical documentation
Renderer setupcreateTestRenderer, MockInput, MockMouse, TestExternalOutput, TestExternalOutputCommit, TestFlushOptions, TestRenderer, TestRendererOptions, TestRendererSetup, TestVisualIdleOptions, TestWaitForOptionsSupportedTesting
Keyboard and mousecreateMockKeys, createMockMouse, KeyCodes, KeyInput, MockKeysOptions, MouseButton, MouseButtons, MouseEventOptions, MouseEventType, MouseModifiers, MousePosition, pasteBytesSupportedTesting
CapabilitiescreateTerminalCapabilities, setRendererCapabilities, TerminalCapabilitiesOverridesSupportedTesting
Deterministic helperscreateSpy, ManualClock, MockTreeSitterClientSupportedTesting
RecordingRecordedFrame, TestRecorderSupportedTesting

Runtime plugin support

These entry points are Bun-only. Their Node.js targets are stubs that throw during import.

Package entry pointSymbolsClassCanonical documentation
@opentui/core/runtime-plugincreateRuntimePlugin, CreateRuntimePluginOptions, isCoreRuntimeModuleSpecifier, RuntimeModuleEntry, RuntimeModuleExports, runtimeModuleIdForSpecifier, RuntimeModuleLoader, RuntimePluginRewriteOptionsRuntime-specific, AdvancedRuntime module loading
@opentui/core/runtime-plugin-supportcreateRuntimePlugin, CreateRuntimePluginOptions, ensureRuntimePluginSupport, RuntimeModuleEntry, RuntimeModuleExports, runtimeModuleIdForSpecifier, RuntimeModuleLoaderRuntime-specific, AdvancedRuntime module loading
@opentui/core/runtime-plugin-support/configurecreateRuntimePlugin, CreateRuntimePluginOptions, ensureRuntimePluginSupport, RuntimeModuleEntry, RuntimeModuleExports, runtimeModuleIdForSpecifier, RuntimeModuleLoaderRuntime-specific, AdvancedRuntime module loading

Yoga

@opentui/core/yoga works in Bun and Node.js. The root Yoga namespace exposes this module. See Yoga API for methods and ownership.

PurposeSymbolsClass
Objects and callback typesConfig, Node, default, DirtiedFunction, Layout, MeasureFunction, Size, ValueAdvanced
AlignmentAlign, ALIGN_AUTO, ALIGN_BASELINE, ALIGN_CENTER, ALIGN_FLEX_END, ALIGN_FLEX_START, ALIGN_SPACE_AROUND, ALIGN_SPACE_BETWEEN, ALIGN_SPACE_EVENLY, ALIGN_STRETCHAdvanced
Box sizingBoxSizing, BOX_SIZING_BORDER_BOX, BOX_SIZING_CONTENT_BOXAdvanced
DimensionsDimension, DIMENSION_HEIGHT, DIMENSION_WIDTHAdvanced
DirectionDirection, DIRECTION_INHERIT, DIRECTION_LTR, DIRECTION_RTLAdvanced
DisplayDisplay, DISPLAY_CONTENTS, DISPLAY_FLEX, DISPLAY_NONEAdvanced
EdgesEdge, EDGE_ALL, EDGE_BOTTOM, EDGE_END, EDGE_HORIZONTAL, EDGE_LEFT, EDGE_RIGHT, EDGE_START, EDGE_TOP, EDGE_VERTICALAdvanced
Compatibility errataErrata, ERRATA_ABSOLUTE_PERCENT_AGAINST_INNER_SIZE, ERRATA_ABSOLUTE_POSITION_WITHOUT_INSETS_EXCLUDES_PADDING, ERRATA_ALL, ERRATA_CLASSIC, ERRATA_NONE, ERRATA_STRETCH_FLEX_BASISAdvanced
Experimental featureExperimentalFeature, EXPERIMENTAL_FEATURE_WEB_FLEX_BASISExperimental, Advanced
Flex directionFlexDirection, FLEX_DIRECTION_COLUMN, FLEX_DIRECTION_COLUMN_REVERSE, FLEX_DIRECTION_ROW, FLEX_DIRECTION_ROW_REVERSEAdvanced
GapsGutter, GUTTER_ALL, GUTTER_COLUMN, GUTTER_ROWAdvanced
JustificationJustify, JUSTIFY_CENTER, JUSTIFY_FLEX_END, JUSTIFY_FLEX_START, JUSTIFY_SPACE_AROUND, JUSTIFY_SPACE_BETWEEN, JUSTIFY_SPACE_EVENLYAdvanced
LoggingLogLevel, LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_FATAL, LOG_LEVEL_INFO, LOG_LEVEL_VERBOSE, LOG_LEVEL_WARNAdvanced
MeasurementMeasureMode, MEASURE_MODE_AT_MOST, MEASURE_MODE_EXACTLY, MEASURE_MODE_UNDEFINEDAdvanced
Node typeNodeType, NODE_TYPE_DEFAULT, NODE_TYPE_TEXTAdvanced
OverflowOverflow, OVERFLOW_HIDDEN, OVERFLOW_SCROLL, OVERFLOW_VISIBLEAdvanced
PositionPositionType, POSITION_TYPE_ABSOLUTE, POSITION_TYPE_RELATIVE, POSITION_TYPE_STATICAdvanced
UnitsUnit, UNIT_AUTO, UNIT_PERCENT, UNIT_POINT, UNIT_UNDEFINEDAdvanced
WrappingWrap, WRAP_NO_WRAP, WRAP_WRAP, WRAP_WRAP_REVERSEAdvanced

Tree-sitter assets, worker, and Node assets

Package entry pointRuntimeSymbolsClassCanonical documentation
@opentui/core/tree-sitter/update-assetsBuild time, with Bun CLIrunUpdateAssetsCli, updateAssets, UpdateOptionsRuntime-specificTree-sitter
@opentui/core/parser.workerBun and Node.js workerNo named application exportsImplementation-looking public exportTree-sitter
@opentui/core/node-assetsNode.js build timegetNodeAssets, NodeAsset, NodeAssetTargetRuntime-specificStandalone executables

@opentui/react

The root and compiler-selected JSX entry points work in Bun and Node.js.

Root exports

AreaSymbolsClassCanonical documentation
Root renderingcreateElement, createPortal, createRoot, flushSync, RootSupportedReact bindings
Application contextAppContext, useAppContextSupportedReact bindings
HooksuseBlur, useFocus, useKeyboard, UseKeyboardOptions, useOnResize, usePaste, useRenderer, useSelectionHandler, useTerminalDimensions, useTimelineSupportedReact bindings
Catalogue extensionextend, ExtendedComponentProps, ExtendedIntrinsicElements, getComponentCatalogue, OpenTUIComponents, RenderableConstructorAdvancedReact bindings
Catalogue objectsbaseComponents, componentCatalogueImplementation-looking public exportReact bindings
Component prop typesAsciiFontProps, BoxProps, CodeProps, DiffProps, GetNonStyledProperties, ImageProps, InputProps, LineBreakProps, LineNumberProps, LinkProps, MarkdownProps, NonStyledProps, ReactProps, ScrollBoxProps, SelectProps, SpanProps, TabSelectProps, TextareaProps, TextPropsSupportedComponents overview
Plugin slotscreateReactSlotRegistry, createSlot, ReactBoundSlotProps, ReactPlugin, ReactRegistrySlotComponent, ReactSlotComponent, ReactSlotOptions, ReactSlotProps, Slot, SlotModeSupportedReact plugin slots
First-draw timestampTimeToFirstDraw, TimeToFirstDrawPropsSupportedTime to first draw

Other React entry points

Package entry pointSymbolsClassCanonical documentation
@opentui/react/renderer declarationscreatePortal, createRoot, flushSync, RootSupportedReact bindings
@opentui/react/renderer runtimeAll runtime values from @opentui/reactImplementation-looking public exportReact bindings
@opentui/react/test-utilstestRenderSupportedTesting
@opentui/react/runtime-plugin-supportensureRuntimePluginSupport, ReactRuntimePluginSupportOptionsRuntime-specific, AdvancedRuntime module loading
@opentui/react/runtime-plugin-support/configureensureRuntimePluginSupport, ReactRuntimePluginSupportOptionsRuntime-specific, AdvancedRuntime module loading
@opentui/react/jsx-runtimeFragment, jsx, jsxs, JSXSupportedReact bindings
@opentui/react/jsx-dev-runtimeFragment, jsxDEV, JSXSupportedReact bindings

The generated React map points /renderer runtime imports to index.js. Its declaration path points to reconciler/renderer.d.ts. Treat root values outside the four declared names as a build leak.

@opentui/solid

The root, /components, and compiler-selected JSX entry points work in Bun and Node.js.

Root exports

AreaSymbolsClassCanonical documentation
Root renderingrender, testRenderSupportedSolid bindings
HooksonBlur, onFocus, onResize, useKeyboard, UseKeyboardOptions, usePaste, useRenderer, useSelectionHandler, useTerminalDimensions, useTimelineSupportedSolid bindings
Renamed hookuseKeyHandlerDeprecatedUse useKeyboard in Solid bindings.
ComponentscreateDynamic, Dynamic, DynamicProps, PortalSupportedSolid bindings
ScrollbackcreateScrollbackWriter, SolidScrollbackNode, SolidScrollbackWriterOptions, writeSolidToScrollbackAdvancedRenderer
Catalogue extensionextend, ExtendedComponentProps, ExtendedIntrinsicElements, getComponentCatalogue, OpenTUIComponents, RenderableConstructorAdvancedSolid bindings
Catalogue and text wrappersbaseComponents, BoldSpanRenderable, componentCatalogue, ItalicSpanRenderable, LineBreakRenderable, LinkOptions, LinkRenderable, TextNodeKey, textNodeKeys, UnderlineSpanRenderableImplementation-looking public exportSolid bindings
Reconciler_render, createComponent, createElement, createSlotNode, createTextNode, DomNode, effect, insert, insertNode, memo, mergeProps, setProp, spread, useImplementation-looking public exportSolid bindings
Reconciler context and wrappersLayoutSlotRenderable, RendererContext, SlotRenderable, TextSlotRenderableImplementation-looking public exportSolid bindings
Component prop typesAsciiFontProps, BoxProps, CodeProps, ElementProps, GetNonStyledProperties, ImageProps, InputProps, LinkProps, MarkdownProps, NonStyledProps, ScrollBoxProps, SelectProps, SpanProps, TabSelectProps, TextareaProps, TextPropsSupportedComponents overview
Plugin slotscreateSlot, createSolidSlotRegistry, Slot, SlotMode, SolidBoundSlotProps, SolidPlugin, SolidRegistrySlotComponent, SolidSlotComponent, SolidSlotOptions, SolidSlotPropsSupportedSolid plugin slots
JSX namespaceJSXSupportedSolid bindings
First-draw timestampTimeToFirstDraw, TimeToFirstDrawPropsSupportedTime to first draw

Other Solid entry points

Package entry pointSymbolsClassCanonical documentation
@opentui/solid/preloadNo named exports. Importing it installs the Bun source transform.Runtime-specificSolid bindings
@opentui/solid/bun-plugincreateSolidTransformPlugin, CreateSolidTransformPluginOptions, default, ensureSolidTransformPlugin, resetSolidTransformPluginStateRuntime-specific, AdvancedSolid bindings
@opentui/solid/runtime-plugin-supportensureRuntimePluginSupport, SolidRuntimePluginSupportOptionsRuntime-specific, AdvancedRuntime module loading
@opentui/solid/runtime-plugin-support/configureensureRuntimePluginSupport, SolidRuntimePluginSupportOptionsRuntime-specific, AdvancedRuntime module loading
@opentui/solid/componentsextend, ExtendedComponentProps, ExtendedIntrinsicElements, getComponentCatalogue, OpenTUIComponentsAdvancedSolid bindings
@opentui/solid/jsx-runtimeFragment, jsx, jsxDEV, jsxs, JSXSupportedSolid bindings
@opentui/solid/jsx-dev-runtimeFragment, jsxDEV, JSXSupportedSolid bindings

@opentui/keymap

Root engine

The root engine is host-agnostic. Use an adapter entry point to connect it to a browser or OpenTUI renderer.

KindSymbolsClassCanonical documentation
ValuesKeymap, KEYMAP_EXTENSION_CONTEXT, stringifyKeySequence, stringifyKeyStrokeSupportedCore keymap API
TypesActiveBinding, ActiveKey, ActiveKeyOptions, Attributes, Binding, BindingCommand, BindingEvent, BindingExpander, BindingExpanderContext, BindingExpansion, BindingFieldCompiler, BindingFieldContext, BindingParser, BindingParserContext, BindingParserResult, Bindings, BindingsValidationResult, BindingTransformer, BindingTransformerContext, Command, CommandBindingsQuery, CommandContext, CommandEntry, CommandFieldCompiler, CommandFieldContext, CommandFilter, CommandHandler, CommandQuery, CommandQueryValue, CommandResolver, CommandResolverContext, CommandResult, CommandTransformer, CommandTransformerContext, DispatchBinding, DispatchEvent, DispatchLayer, DispatchPhase, ErrorEvent, EventData, EventMatchResolver, EventMatchResolverContext, EventName, Events, HostCapability, HostMetadata, HostModifier, HostPlatform, InterceptName, Intercepts, KeyAfterInputContext, KeyAfterReason, KeyDeferredDisambiguationContext, KeyDeferredDisambiguationDecision, KeyDeferredDisambiguationHandler, KeyDisambiguationContext, KeyDisambiguationDecision, KeyDisambiguationResolver, KeyInputContext, KeyInterceptOptions, KeyLike, KeymapEvent, KeymapExtensionContext, KeymapExtensionProvider, KeymapHost, KeyMatch, KeySequencePart, KeyStringifyInput, KeyStrokeInput, KeyToken, Layer, LayerAnalysisContext, LayerAnalyzer, LayerBindingAnalysis, LayerBindingsTransformer, LayerBindingsTransformerContext, LayerFieldCompiler, LayerFieldContext, Listener, NormalizedKeyStroke, ParsedBinding, ParsedCommand, RawInputContext, RawInterceptOptions, ReactiveMatcher, ResolvedKeyToken, ResolvedSequencePattern, RunCommandOptions, RunCommandResult, SequencePattern, SequencePatternMatch, StringifyOptions, TargetMode, WarningEventSupportedCore keymap API

Extras and graph

Package entry pointSymbolsClassCanonical documentation
@opentui/keymap/extrasBindingCommandMap, BindingConfig, BindingConfigItem, BindingDefaults, BindingDefaultsContext, BindingLookup, BindingValue, CommandBindingMap, commandBindings, CommandBindingsError, CommandBindingsOptions, CommandBindingsOverrideWarning, createBindingLookup, CreateBindingLookupOptions, formatCommandBindings, FormatCommandBindingsOptions, formatKeySequence, FormatKeySequenceOptions, KeyModifierName, KeySequenceFormatPart, SequenceBindingLike, TokenDisplayResolverSupportedCore keymap API
@opentui/keymap/extras/graphcreateGraphExtra, getGraphSnapshot, GraphBinding, GraphCommand, GraphInactiveReason, GraphLayer, GraphSequenceNode, GraphSnapshot, GraphSnapshotOptions, KeymapGraphExtraAdvancedCore keymap API

Addons

Package entry pointSymbolsClassCanonical documentation
@opentui/keymap/addonsAliases, BackspacePopsPendingSequenceOptions, defaultBindingParser, defaultEventMatchResolver, Enabled, EscapeClearsPendingSequenceOptions, ExCommand, ExCommandPayload, LeaderOptions, LeaderTrigger, NeovimDisambiguationOptions, registerAliasesField, registerBackspacePopsPendingSequence, registerBindingOverrides, registerCommaBindings, registerDeadBindingWarnings, registerDefaultBindingParser, registerDefaultEventMatchResolver, registerDefaultKeys, registerEmacsBindings, registerEnabledFields, registerEscapeClearsPendingSequence, registerExCommands, registerLeader, registerMetadataFields, registerModBindings, registerNeovimDisambiguation, registerTimedLeader, registerUnresolvedCommandWarnings, TimedLeaderOptionsSupportedBuilt-in keymap addons
@opentui/keymap/addons/opentuiEvery export from @opentui/keymap/addons, plus createTextareaBindings, EditBufferCommandName, EditBufferCommandOptions, EditBufferFineGroup, registerBaseLayoutFallback, registerEditBufferCommands, registerManagedTextareaLayer, registerTextareaMappingSuspensionSupportedBuilt-in keymap addons and Custom keymap addons

Testing and hosts

Package entry pointRuntimeSymbolsClassCanonical documentation
@opentui/keymap/testingJavaScript test runtimescaptureKeymapDiagnostics, createTestHostMetadata, createTestKeymap, createTestKeymapHost, CreateTestKeymapHostOptions, CreateTestKeymapOptions, DEFAULT_TEST_HOST_METADATA, TestDiagnosticCapture, TestHostMetadataOptions, TestKeymapEvent, TestKeymapHarness, TestKeymapHost, TestKeymapTarget, TestKeyModifierOptionsSupportedCore keymap API
@opentui/keymap/htmlBrowser DOMcreateDefaultHtmlKeymap, createHtmlKeymap, createHtmlKeymapEvent, createHtmlKeymapHost, htmlEventMatchResolver, HtmlKeymapEvent, normalizeHtmlKeyNameRuntime-specificKeymap hosts
@opentui/keymap/opentuiBun and Node.jscreateDefaultOpenTuiKeymap, createOpenTuiKeymap, createOpenTuiKeymapHostRuntime-specificKeymap hosts

Frameworks and runtime modules

Package entry pointSymbolsClassCanonical documentation
@opentui/keymap/reactKeymapProvider, KeymapProviderProps, reactiveMatcherFromStore, useActiveKeys, useBindings, UseBindingsLayer, UseBindingsTargetRef, useKeymap, usePendingSequenceRuntime-specificReact keymap integration
@opentui/keymap/solidKeymapProvider, KeymapProviderProps, reactiveMatcherFromSignal, useBindings, UseBindingsLayer, UseBindingsTarget, useKeymap, useKeymapSelectorRuntime-specificSolid keymap integration
@opentui/keymap/runtime-modulesruntimeModulesRuntime-specific, AdvancedRuntime module loading

The runtimeModules map contains the root, both extras paths, both addon paths, and both host adapters. It loads the React and Solid paths lazily. It does not contain /testing or /runtime-modules.

@opentui/qrcode

The package root works in Bun and Node.js. Each framework path re-exports the full root and adds its registration function.

Package entry pointSymbolsClassCanonical documentation
@opentui/qrcodeByteEncoding, createQrSvg, EciAssignment, EncodeOptions, encodeTextBytes, ErrorCorrectionLevel, Fnc1SecondPositionInfo, Gs1Element, QRCode, QRCodeFitMode, QRCodeOptions, QRCodeRenderable, QrSegment, StructuredAppendInfo, TerminalRenderOptionsSupportedQR encoder and QR code component
@opentui/qrcode/reactEvery root export, plus registerQRCodeRuntime-specificQR code component
@opentui/qrcode/solidEvery root export, plus registerQRCodeRuntime-specificQR code component

@opentui/ssh

The package supports Bun 1.3.0 or later and Node.js 26.4.0 or later. Use Bun 1.4.0 or later on native Windows arm64. It has one public entry point.

SymbolsClassCanonical documentation
AuthConfig, AuthMethods, ConfigError, createServer, DenyError, Handoff, Identity, IdentityFor, ListenInfo, LogEvent, logging, LoggingOptions, Middleware, MiddlewareFunction, MiddlewareSession, Next, PublicKey, PublicKeyPolicy, RemoteAddress, Server, ServerBuilder, ServerConfig, Session, SessionHandler, SshErrorRuntime-specificSSH

@opentui/three

Both entry points are Bun-only.

Package entry pointSymbolsClassCanonical documentation
@opentui/threeAnimationDefinition, AnimationStateConfig, CLICanvas, DEFAULT_EXPLOSION_PARAMETERS, DEFAULT_PHYSICS_EXPLOSION_PARAMETERS, ExplodingSpriteEffect, ExplosionCreationData, ExplosionEffectParameters, ExplosionHandle, ExplosionManager, InstanceManager, InstanceManagerOptions, MeshPool, MeshPoolOptions, ParticleEffectParameters, PhysicsExplodingSpriteEffect, PhysicsExplosionCreationData, PhysicsExplosionEffectParameters, PhysicsExplosionHandle, PhysicsExplosionManager, PhysicsSpriteRecreationData, PlanckPhysicsWorld, PlanckRigidBody, RapierPhysicsWorld, RapierRigidBody, ResolvedAnimationState, ResourceConfig, SheetProperties, SheetSprite, SpriteAnimator, SpriteDefinition, SpriteParticleGenerator, SpriteRecreationData, SpriteResource, SpriteResourceManager, SpriteUtils, SuperSampleAlgorithm, SuperSampleType, TextureUtils, THREE, ThreeCliRenderer, ThreeCliRendererOptions, ThreeRenderable, ThreeRenderableOptions, TiledSpriteRuntime-specific, AdvancedThree.js WebGPU
@opentui/three/runtime-modulesruntimeModulesRuntime-specific, AdvancedRuntime module loading

The THREE namespace exposes the installed Three.js module. The runtimeModules map contains only the @opentui/three root.

Native distribution packages

The build generates eight platform packages:

  • @opentui/core-darwin-x64
  • @opentui/core-darwin-arm64
  • @opentui/core-linux-x64
  • @opentui/core-linux-arm64
  • @opentui/core-linux-x64-musl
  • @opentui/core-linux-arm64-musl
  • @opentui/core-win32-x64
  • @opentui/core-win32-arm64

Each package has one default export that resolves the native library path. These packages are internal distribution surfaces, not application APIs. Let @opentui/core select the correct package. See Runtime and platform support.

Source-defined native ABI

The npm API and the source-defined native application binary interface (ABI) are separate surfaces. lib.zig defines 335 exported functions. The Yoga module defines 50 more, and NativeSpanFeed defines 11 more.

OpenTUI's TypeScript packages call these functions through an internal ABI. The project does not publish a first-party C header or a supported standalone C contract. Do not treat the 396 source names as supported npm symbols or as an API for other language bindings.

The native binding can change with its TypeScript callers. Use the TypeScript exports indexed above for application code.

Referenced from SKILL.md