Ratatui vs tui-rs: Architecture and Development Differences
Where the fork came from, what changed in the API and crate layout, and a step-by-step checklist for moving a tui-rs project to Ratatui.
A fair, side-by-side look at three popular TUI libraries across language, architecture, styling and ecosystem to help you choose.

Terminal user interfaces are having a moment. Developers want fast, keyboard-driven tools that work over SSH, and three libraries stand out in their ecosystems: Ratatui for Rust, Bubble Tea for Go and Textual for Python. All three are open source under the MIT license and capable of producing polished applications, but they make very different design choices. This comparison explains those choices, where each library shines and how to pick the right one for your project. It describes documented features and architecture only; we deliberately avoid invented benchmark numbers.
Ratatui is a Rust library for building TUIs with immediate-mode rendering. Your code redraws the whole interface from application state each frame, and Ratatui writes only the changed cells to the terminal. It is the maintained successor of tui-rs and offers a large widget catalog with full control over layout and styling. The current release is 0.30.2.
Bubble Tea is a Go framework from Charm based on The Elm Architecture. You define a model, an Update function that handles messages and a View function that returns a string. Companion libraries provide components (Bubbles) and styling (Lip Gloss).
Textual is a Python framework from Textualize, built on the Rich library. It uses a retained tree of widgets, styled with a CSS-like language, and an asynchronous event system. Textual applications can also be served in a web browser.

Ratatui gives you building blocks rather than a framework. You write the event loop, decide when to draw and store state however you like. Inside terminal.draw() you split the screen with layouts and render widgets. Nothing persists between frames except your own state and small widget-state objects. This makes the screen easy to reason about and fits many architectures: a simple loop, an Elm-style update function, or a component system you design.
Bubble Tea prescribes a structure. Your model implements Init, Update and View. Every input, timer and asynchronous result arrives as a message; Update returns a new model and optional commands that produce future messages. The framework owns the loop and renders whatever View returns. The structure guides teams toward consistent code, and the message-passing model makes side effects explicit.
Textual feels closer to web or desktop GUI development. You compose an app from widget objects that live in a tree (similar to a DOM), handle events with methods, update reactive attributes and let the framework repaint what changed. Layout and appearance are defined in Textual CSS files, separate from code. This makes it very fast to build feature-rich interfaces, especially for developers coming from web development.
The host language shapes much of the experience. Ratatui apps compile to native binaries with no runtime or garbage collector, which yields small memory footprints and predictable latency, and you can ship a single executable. Go also produces single static binaries with fast startup, and its garbage collector is rarely noticeable in TUIs. Python applications need an interpreter and dependencies, typically installed with pip or pipx; startup and memory use are higher, but development speed is excellent and the Python ecosystem is enormous.
For most interactive tools, all three are fast enough. The differences matter at the edges: very large data sets rendered every frame, constrained environments such as small containers or embedded devices, and distribution to users who should not need a language runtime.
Ratatui ships widgets such as Block, Paragraph, List, Table, Tabs, Gauge, Sparkline, Chart, BarChart, Canvas, Scrollbar and Calendar, plus many community crates for text inputs, trees and more. Bubble Tea's core is intentionally minimal; the Bubbles library supplies text inputs, lists, tables, spinners, progress bars, viewports and file pickers. Textual includes a broad built-in set, among them buttons, inputs, data tables, trees, tabs, markdown viewers and modal screens, so complex forms take little code.
If your interface is form-heavy, Textual's built-ins give a head start. If it is data-heavy, such as charts, live tables and custom visualizations, Ratatui's rendering model and canvas give fine-grained control. Bubble Tea sits in between, with composable components that follow the same message-driven pattern as your app.
Ratatui styles content in code with Style, colors and modifiers, and positions it with a constraint-based layout engine (Length, Percentage, Fill and friends). Bubble Tea uses Lip Gloss to style and join strings, so layout is composed from styled blocks of text. Textual separates presentation into CSS-like stylesheets with selectors, grid and dock layouts, and live reloading during development. Designers and web developers often find Textual's approach most familiar; developers who prefer everything in typed code tend to like Ratatui's.
In Ratatui, input comes from the backend, usually crossterm, and you decide how to process it. Concurrency is your choice too: threads, channels or Tokio with crossterm's event stream all work. Bubble Tea delivers input, window-size changes and command results as messages to Update, and commands run concurrently via goroutines managed by the framework. Textual is built on Python's asyncio: event handlers can be async, workers run background tasks and the framework routes events through the widget tree.
Ratatui includes TestBackend, which renders into memory so tests can assert on exact buffer contents. Bubble Tea models are plain values with pure Update and View functions, which makes unit testing straightforward, and Charm provides additional testing helpers. Textual offers a pilot API for simulating key presses and clicks in tests, plus snapshot testing tools and a developer console. All three integrate with their language's standard test runners.
Each library benefits from a strong ecosystem. Ratatui has an official site with tutorials and templates, plus many widget crates on crates.io. Bubble Tea is part of Charm's family of terminal tools, alongside Lip Gloss, Bubbles and other utilities used together in many Go command-line projects. Textual builds on Rich, one of the most popular Python libraries for terminal formatting, and has extensive documentation with a tutorial and widget gallery. All three projects are actively developed in public on GitHub.
| Criteria | Ratatui | Bubble Tea | Textual |
|---|---|---|---|
| Language | Rust | Go | Python |
| Architecture | Immediate mode; app owns loop | The Elm Architecture | Retained widget tree |
| Styling | Code: Style, Color, Modifier | Lip Gloss | Textual CSS stylesheets |
| Layout | Constraint solver | Composed styled strings | CSS grid, dock, vertical/horizontal |
| Built-in widgets | Large set incl. charts and canvas | Via Bubbles library | Large set incl. forms and data tables |
| Concurrency | Your choice: threads or async | Commands and messages | asyncio and workers |
| Distribution | Single native binary | Single native binary | Python environment (pip/pipx) |
| Browser support | No (terminal backends) | No | Yes, via Textual serve |
| Testing | TestBackend buffer assertions | Pure functions, test helpers | Pilot API and snapshots |
| License | MIT | MIT | MIT |
In practice, the deciding factor is usually the language your team already uses and the ecosystem your tool depends on. All three libraries are mature enough for production tools.
Ratatui compiles to native code without a garbage collector, which generally means lower memory use and startup time than a Python app. For typical interactive tools, both feel responsive; measure your own workload before deciding on performance grounds.
Visually, yes. Both draw styled text in a terminal grid, so with similar colors and borders the results can be nearly identical. The differences are in how you write the code.
Not built in, but you can implement one. Many Ratatui apps use a model, a message enum and an update function, because Ratatui leaves the loop and state design to you.
It depends on the language you know. Python developers usually find Textual quickest, Go developers find Bubble Tea natural, and Rust developers can be productive with Ratatui once comfortable with ownership.
Yes. Ratatui, Bubble Tea and Textual are all released under the MIT license, which permits commercial use with attribution.
Ratatui, Bubble Tea and Textual solve the same problem with three philosophies: Ratatui gives Rust developers immediate-mode control and leaves architecture to them, Bubble Tea gives Go developers a disciplined Elm-style framework, and Textual gives Python developers a high-level widget tree with CSS. Pick the one that matches your language and the shape of your interface. If Ratatui fits, start with our first-app tutorial and the download options; to learn about Ratatui's own lineage, read Ratatui vs tui-rs. For the other libraries, consult their official documentation at Bubble Tea on GitHub and textual.textualize.io.