@xec-sh/aura
v0.1.2
Published
Aura is a TypeScript library for building terminal user interfaces (TUIs)
Downloads
5
Readme
OpenTUI Core
OpenTUI Core is a TypeScript library for building terminal user interfaces (TUIs). It is currently in development and is not ready for production use.
Install
bun install @opentui/coreBuild
bun run buildThis creates platform-specific libraries that are automatically loaded by the TypeScript layer.
Examples
bun install
bun run src/examples/index.tsCLI Renderer
Renderables
Renderables are hierarchical objects that can be positioned, nested, styled and rendered to the terminal:
import { createCliRenderer, TextRenderable } from "@opentui/core"
const renderer = await createCliRenderer()
const obj = new TextRenderable("my-obj", { content: "Hello, world!" })
renderer.root.add(obj)