Caret TUI Framework

Sculpting
the terminal.

A premium component library for terminal user interfaces. Bringing modern editorial design and declarative layouts to the command line.

01 // Syntax

Expressive & Declarative

Stop wrestling with manual string manipulation and ANSI escape codes. Caret TUI offers a clean, React-like declarative syntax for rendering complex terminal output.

02 // Layout

Responsive Layouts

Build interfaces that automatically adapt to terminal resizing. Leverage Flexbox and Grid principles right in your command line applications for pixel-perfect precision.

03 // Styling

Thematic Control

First-class support for high-fidelity colors, sophisticated themes, and dynamic styling rules. Elevate your CLI tools from utilitarian to undeniably beautiful.

Beyond the basics

Everything you need to build production-grade terminal applications.

Interactive Inputs

Capture user keyboard events, create complex forms, and handle mouse events natively.

Hooks

`useInput`, `useStdout`, `useApp` — fully compatible with React hooks.

Focus

Built-in focus management for complex interactive applications.

Animation

Bring your terminal to life with built-in animation components and high-performance rendering.

"The terminal is no longer a constraint. It's a blank canvas."

Install in seconds

Start building beautiful terminal interfaces today with NPM or your favorite package manager.

$npm install caret-tui

Ready to shape your next command line experience?

Start Reading the Docs