Sculpting
the terminal.
A premium component library for terminal user interfaces. Bringing modern editorial design and declarative layouts to the command line.
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.
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.
Thematic Control
First-class support for high-fidelity colors, sophisticated themes, and dynamic styling rules. Elevate your CLI tools from utilitarian to undeniably beautiful.
import { Box, Text } from 'caret-tui';
const App = () => (
<Box borderStyle="round" borderColor="primary">
<Text color="foreground">
Hello, Terminal.
</Text>
</Box>
);
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.