Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 05 Dec 01:54
· 5 commits to main since this release
3bf92b2

The first release of tui, a TypeScript library for fast terminal apps that compile to native executables with scriptc. tui is experimental, and its API will change before 1.0.

New Features

  • Apps: runApp runs an app from a view function that draws the whole screen from your state. tui handles keys, paste, the mouse, Unicode widths, and screen diffing.
  • Components: Listbox, CheckboxGroup, Tabs, Table, Input, Textarea, Dialog, and ScrollArea, drawn every frame from your state. definePrimitive builds your own on the same state, focus, and change contract.
  • Native executables: the same file runs on Node.js 24 or later and compiles with scriptc to one native executable that starts in about 2 ms, up to 80x faster to the first frame than Node.js, in about 20x less memory.
  • Agents and tests: tui/agent is an MCP server that lets an agent read and act on a running app with snapshot and act. createTestApp runs an app with no terminal, so a test presses keys, types, clicks, and reads the screen back.
  • Prompts: tui/prompt asks text, select, multiselect, confirm, spinner, and progress questions below the cursor.
  • Drawing: Markdown laid out to a width, canvases, braille dots, shaders, charts, images, meters, and sparklines, with split, inset, and center for layout.
  • Motion and long lists: springs, transitions, and easings over the next frames, and createFilter for matching lines in a long list.
  • Text: widthOf, wrap, and truncate with Unicode 17 widths.