Pular para o conteúdo
Kitbay
Skill

ink-tui

MITAtualizado em 19 de nov. de 202640.385Estrelas no GitHub

A skill kept in Novu's repository, credited in its metadata to PostHog, for building terminal interfaces with Ink, which renders React in the command line, and the @inkjs/ui components, mainly for setup wizards and multi-step installers in Node.js and TypeScript.

O que a skill ensina

A skill kept in Novu's repository, credited in its metadata to PostHog, for building terminal interfaces with Ink, which renders React in the command line, and the @inkjs/ui components, mainly for setup wizards and multi-step installers in Node.js and TypeScript. The screen shown is derived from session state: business logic writes to a store, a router picks the active screen from declared flow steps and their completion checks, and overlays handle interruptions such as errors. It explains adding screens and state, Ink's flexbox layout and how browser habits map to the terminal, and how to degrade in small terminals, piped input, CI logging mode and dark themes. Six reference files hold the details.

O que faz

  • Build terminal setup wizards with Ink
  • Route screens from session state
  • Lay out terminal UIs with flexbox
  • Fall back gracefully in CI and piped input