Ratatui

Rust library for building rich terminal user interfaces and dashboards

Library
Cargo
v0.30.2
22,274stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
88/100Excellent
Development Activity96
Maintenance100
Community64
Maturity52
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
86/100Excellent
Architecture92
Code Quality90
Innovation85
Learning Curve78

Ratatui is a Rust crate for building terminal user interfaces (TUIs) — text-based dashboards, command-line tools with interactive layouts, and full-screen console applications. It provides an immediate-mode rendering model: on every frame you describe the widget tree you want drawn, and Ratatui diffs it against the terminal buffer to produce minimal, flicker-free updates.

Forked from the now-unmaintained tui-rs crate in 2023, Ratatui has grown into a modular workspace with a stable core rendering engine (ratatui-core), a widget library (ratatui-widgets), and pluggable backends for crossterm, termion, and termwiz so applications aren’t locked into one terminal I/O library. It ships a constraint-based layout system, a broad set of built-in widgets (tables, charts, gauges, lists, paragraphs with text wrapping), and cargo-generate templates to scaffold a new TUI project in seconds.

What You Get

  • Immediate-mode rendering: describe your UI tree each frame, Ratatui diffs and redraws only what changed
  • Constraint-based layout system for splitting terminal space into rows/columns/nested areas
  • A broad built-in widget set: tables, lists, charts, gauges, tabs, paragraphs with text wrapping, and more
  • Pluggable backends (crossterm, termion, termwiz) so you aren’t locked to one terminal I/O library
  • cargo-generate project templates to scaffold a new TUI application instantly
  • A modular workspace (ratatui-core, ratatui-widgets, backend crates) so you can depend on only what you need

Common Use Cases

  • Building interactive CLI dashboards for monitoring servers, logs, or system metrics
  • Creating full-screen terminal applications (git clients, file managers, chat clients)
  • Adding a rich interactive UI layer to an existing command-line tool
  • Prototyping developer tools that need tables, charts, or forms without a GUI framework

Under The Hood

Architecture - Ratatui is organized as a Cargo workspace of focused crates rather than one monolith: ratatui-core defines the buffer/widget/layout traits that everything else builds on, ratatui-widgets implements the concrete widget set (tables, charts, gauges, lists) against that core, and separate ratatui-crossterm/ratatui-termion/ratatui-termwiz/ratatui-termina crates implement the Backend trait for each terminal I/O library, with the top-level ratatui crate re-exporting everything behind Cargo feature flags (crossterm, termion, all-widgets, macros); each render pass diffs a new Buffer against the previous frame to emit minimal terminal writes. Tech Stack - Pure Rust, edition 2024, with workspace-pinned dependencies including crossterm for the default terminal backend, kasuari (a fork of the Cassowary constraint solver) for layout resolution, bitflags, compact_str, and itertools; tooling includes cargo-generate for project templates, git-cliff for changelog generation, and deny.toml/typos.toml for dependency and spelling linting. Code Quality - The workspace carries an extensive unit and doc-test suite (40+ files under ratatui-core alone reference #[test]), enforces rustfmt/clippy config in-repo (rustfmt.toml, clippy.toml), and documents a formal breaking-changes policy (BREAKING-CHANGES.md) plus an ARCHITECTURE.md explaining the crate split — evidence of a mature, process-driven maintenance model with 286 contributors. API Design - The immediate-mode Frame/render_widget pattern keeps the core loop (terminal.draw(render)) to a handful of lines as shown in the README quickstart, feature flags let consumers opt out of unused widgets or backends to control binary size, and the widget trait design (implement Widget for custom types) is consistent across the built-in and third-party widget ecosystem documented in the separate awesome-ratatui list.

Used by 8 apps in this directory

Rust
100%
MIT

abtop

Developer Tools · Monitoring

3,456

Like htop, but for your AI coding agents — monitor Claude Code, Codex CLI, and OpenCode sessions, tokens, context windows, rate limits, and orphan ports all from one terminal screen.

View details
77
Repo Health
79
Technical
80
Dependency
Built with
Rust100%
Updated 3 weeks ago
Rust
54%
Other

Cameleer

AI Agents

23

A local-first desktop workspace for managing AI agents in an enterprise-style workflow — agent directory, Kanban task tracking, workspace chat, and a full runtime/audit log of agent actions and tool approvals.

View details
48
Repo Health
65
Technical
76
Dependency
Built with
Rust54%
JavaScript24%
TypeScript15%
Updated 4 weeks ago
Rust
91%
Apache 2.0

herdr

AI Agents · Developer Tools

30,468

A terminal-native agent multiplexer that runs Claude, Codex, Gemini, and other coding agents side by side in real, persistent panes you can detach from and reattach to from anywhere.

View details
83
Repo Health
84
Technical
76
Dependency
Built with
Rust91%
Updated today
Rust
41%
Other

Hook0

Devops

1,477

Open-source Webhooks-as-a-Service: deliver events to your users with auto-retry, signed payloads, and a real-time subscriber dashboard — all without building the infrastructure yourself.

View details
83
Repo Health
82
Technical
70
Dependency
Built with
Rust41%
TypeScript17%
JavaScript15%
Updated today
Rust
72%
Apache 2.0

mesh-llm

AI Development · AI Agents

3,258

Mesh LLM pools GPUs and memory across every machine you own into one OpenAI-compatible API, so agents tap distributed compute instead of a single GPU box or a metered cloud bill.

View details
83
Repo Health
91
Technical
70
Dependency
Built with
Rust72%
TypeScript16%
Updated today
Python
74%
AGPL 3.0

OpenViking

Databases · AI Development

29,711

An open-source context database that gives AI agents a unified filesystem for memory, resources, and skills with hierarchical tiered retrieval.

View details
84
Repo Health
75
Technical
65
Dependency
Built with
Python74%
Rust14%
Updated today
Python
55%
Other

PostHog

Analytics · Monitoring · Developer Tools

37,777

The all-in-one open source product platform combining analytics, session replay, feature flags, error tracking, AI observability, and a built-in data warehouse in a single self-hostable stack.

View details
92
Repo Health
80
Technical
67
Dependency
Built with
Python55%
TypeScript36%
Updated today
Rust
77%
AGPL 3.0

Spacedrive

File Storage · Collaboration

38,790

One file manager for all your devices and clouds — powered by a Virtual Distributed File System built in Rust.

View details
60
Repo Health
84
Technical
65
Dependency
Built with
Rust77%
TypeScript20%
Updated 3 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search