talira

React for interactive command-line apps

open sourceMITself-hostablefree

Ink is a React renderer for the terminal: it builds command-line apps from React components, with the same component and hooks model React offers in the browser. Layout uses Yoga, so Flexbox and most CSS-like properties work in the terminal, and every React feature is supported because Ink is a React renderer. Output can be built and tested as components. Claude Code, Gemini CLI, GitHub Copilot CLI and Cloudflare's Wrangler are among the tools built with it. It's an MIT-licensed project by Vadim Demedes, supported by the community.

Problems it solves

  • build an interactive terminal UI for my Node.js CLI using the React I already know
  • lay out a command-line app's output with flexbox instead of counting columns by hand
  • show live progress, spinners and lists that update in place in the terminal
  • write tests for what my CLI prints
  • build an agent-style chat interface that runs in the terminal

Features

  • React components and hooks for terminal output
  • Flexbox layout with Yoga
  • all React features supported
  • test CLI output as components

Capabilities

Has official SDKsplan not known

Alternatives

The same job

These do what Ink does.

  1. Bubble Tea A Go framework for building terminal apps, based on The Elm Architecture
  2. Textual Build cross-platform user interfaces with a simple Python API, in the terminal or a web browser
  3. Ratatui A Rust library for building fast, lightweight, rich terminal user interfaces

Compare Ink with the top 3