talira

A Rust library for building fast, lightweight, rich terminal user interfaces

open sourceMITfree

Ratatui is a Rust crate for building terminal user interfaces (TUIs): command-line applications, interactive dashboards, terminal games and other console programs, built from widgets such as blocks and paragraphs drawn each frame. It has cargo-generate templates to start a project, widget and app examples, and a site with tutorials. It was forked from the tui-rs crate in 2023 to continue its development, and its site counts more than 7,000 crates built with it.

Problems it solves

  • build an interactive terminal dashboard in Rust
  • give my Rust command-line tool a full-screen text interface with panels and lists
  • replace tui-rs now that it's no longer maintained
  • draw charts, tables and gauges in the terminal from a Rust program

Features

  • widgets for terminal user interfaces
  • cargo-generate project templates
  • widget and app examples
  • tutorials and API docs

Alternatives

The same job

These do what Ratatui 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. Ink React for interactive command-line apps

Compare Ratatui with the top 3