# ratatui

> A Rust crate for cooking up terminal user interfaces (TUIs) ‍

- Type: agent or tool
- Field: System & Self-hosted
- Repository: https://github.com/ratatui/ratatui
- GitHub stars: 23420
- Licence: MIT
- Language: Rust
- Last push: 2026-11-24
- Page: https://imutechz.in/agents/ratatui

## What it is
Ratatui is a Rust crate for building terminal user interfaces (TUIs). It provides a simple and flexible way to create text-based interfaces in the terminal, for command-line applications, dashboards, and other interactive console programs. It was forked from the tui-rs crate in 2023 to continue its development, and it also runs on no std targets such as microcontrollers using a backend like Mousefood.

## Features
- Rust crate for building text-based terminal user interfaces
- Templates available via cargo-generate for quick starts
- Widget and app example collections
- Runs on no std targets such as microcontrollers with a suitable backend
- Layout cache can be enabled when default features are off
- Licensed under the MIT License

## Best for
- Command-line applications
- Terminal dashboards
- Interactive console programs
- Embedded and no std targets

## Pros
- Simple and flexible way to create text-based interfaces
- Templates help you get started quickly
- Runs on no std targets such as microcontrollers
- MIT licensed

## Cons
- Turning off default features also turns off the layout cache, which must be re-enabled and sized for the device
- no std use requires a backend such as Mousefood

## Install
```
cargo install --locked cargo-generate
cargo generate ratatui/templates
```

## Usage
```
frame.render_widget("hello world", frame.area());
```

Tags: rust, tui, terminal, user-interface, no-std, embedded, crate, console
