r/RatatuiRust • u/Suitable_Average1168 • 11h ago
Showcase I released Fast Text v0.9.0
r/RatatuiRust • u/SHENTRICK • 6h ago
r/RatatuiRust • u/Suitable_Average1168 • 11h ago
r/RatatuiRust • u/programmersd21 • 3d ago
One problem I've noticed is that AI-generated Ratatui code can easily end up using outdated APIs, incorrect crate versions, generic layouts, or keyboard interactions that don't actually work.
I wanted to make that process more reliable.
The skill gives the assistant a structured workflow:
The goal isn't to generate more code. It's to produce terminal applications that actually work and have some thought put into their design.
It's still evolving, and I'd genuinely appreciate feedback from people who work with Ratatui.
GitHub: https://github.com/programmersd21/ratatui-skill
What would you add to a workflow like this?
r/RatatuiRust • u/web_tas • 4d ago
I previously developed a GUI project for optimizing boot times on systemd-based Linux distros, and it got a lot of great feedback.
I also built a TUI version of it using Rust and Ratatui. Honestly, I think it is much faster and more practical to use: https://github.com/06ergin06/linux_boot_analyzer_tui
Main features:
Also, both the GUI and TUI versions share a common repository that holds the service list and descriptions:https://github.com/06ergin06/systemd-service-db
To help me find missing services in this database, I would really appreciate it if you could run sudo systemd-analyze blame > boot.txt and post the output as an issue in that repo.
r/RatatuiRust • u/programmersd21 • 4d ago
Ratatui co-maintainer u/joshuamck has published a proposal for a new terminal protocol that draws thin lines directly on the edges of terminal cells instead of using Unicode box-drawing characters (┌──┐).
Read the full article and interactive demos here: joshka.net
Why Box-Drawing Characters Fall Short
│ and ─ characters along with the content.How the Cell-Border Protocol Works
▖▗▘▝).ESC P 1 + b cell-border ; OP ; FIELDS... ESC \) with cursor pen commands, rectangle commands, and a capability query paired with DA1. Unsupported terminals seamlessly fall back to standard box-drawing characters.Working Prototypes
btop-style braille CPU graphs with gridlines and average lines drawn between dots without sacrificing rows.Joshka is looking for feedback from terminal and TUI authors on the protocol design. What are your thoughts on adopting cell-edge borders in Ratatui and terminal emulators?
r/RatatuiRust • u/programmersd21 • 7d ago
i've been building scribe, a rust-based terminal application for transcribing audio locally.
🎂 today's actually my birthday, so i thought it'd be a nice occasion to share something i've spent quite a bit of time building.
it uses whisper.cpp for cpu-based inference and supports local audio files as well as urls.
✨ features
🤖 a note on ai: i did use ai assistance throughout development, mainly for debugging, reviewing and helping with parts of the implementation. most of the development, architectural decisions, feature implementation, testing and iteration were done by me. ai was a tool in the process, not a replacement for building the project myself.
🦀 built with rust.
🔗 https://github.com/programmersd21/scribe
⭐ if you find it useful or interesting, consider leaving a star on github. it helps the project reach more people.
feedback, suggestions and criticism are all welcome!
r/RatatuiRust • u/programmersd21 • 8d ago
r/RatatuiRust • u/programmersd21 • 10d ago
After spending some time building a custom terminal multiplexer in Rust, I wanted to share a quick breakdown of the architectural bottlenecks I ran into and how Ratatui fit into the picture.
If you're thinking about building a TUI that hosts other terminal programs (or just complex multi-pane layouts), these were the biggest takeaways:
Early on, it's tempting to read from a PTY and immediately trigger a frame draw. That breaks down fast when a child process dumps massive output (like cat on a huge file or a noisy build log).
vt100 or alacritty_terminal) from Ratatui's render loop. Let background threads ingest PTY stdout into an in-memory terminal grid, and only notify the UI thread that a pane is "dirty." Ratatui then just reads the current grid state on its own tick/event cadence without blocking the child process.Ratatui’s Layout solver works cleanly when you model your workspace as a binary tree:
Walking the tree recursively during draw() to compute Rect bounds means resizing, closing, or swapping panes doesn't require manual coordinate math—you just mutate the tree and let Ratatui recalculate the geometry on the next frame.
When you are intercepting raw keystrokes (especially prefix keys or Ctrl+C) and running in the alternate screen, a single unhandled panic will leave the host terminal completely mangled. Setting up a custom std::panic::set_hook that explicitly disables raw mode and leaves the alternate screen before printing the backtrace is mandatory for staying sane while debugging.
A subtle edge case with multiplexers is double-resizing:
Rects.Rect dimensions (minus borders/padding) against each pane's previous dimensions, and only send a resize ioctl to the underlying PTY if the actual character grid size changed. Sending redundant resize signals causes flickering in nested TUIs like Vim or htop.For anyone else building heavy layout-driven apps or PTY wrappers in Ratatui—how are you handling ANSI escape sequence parsing or custom keybind routing?
r/RatatuiRust • u/programmersd21 • 11d ago
hey! i've been working on venti, a linux terminal multiplexer written in rust with ratatui.
the goal is to build a keyboard-driven terminal workspace that makes managing multiple sessions, panes and workspaces feel natural, without adding unnecessary complexity.
what it currently supports
a little about the implementation
venti uses ratatui for its interface, crossterm for terminal interaction, portable-pty for managing terminal sessions, and unix domain sockets for communication between clients and the persistent session server.
one area i've been exploring is terminal graphics support. venti has experimental support for kitty, sixel and iterm2 graphics protocols. this part is still a work in progress, particularly when panes are resized, moved or rearranged. i'd rather be clear about that than present it as finished.
the project is linux-only at the moment, and is still actively developing. there's plenty left to improve.
i'd genuinely appreciate feedback, especially from people familiar with ratatui, terminal emulators or terminal multiplexer internals. i'm interested in hearing what feels right, what feels awkward, and what could be designed better.
demo: https://youtu.be/GsD61wQLam0
source: https://github.com/programmersd21/venti
thanks for taking a look!
r/RatatuiRust • u/ImaginaryElephant336 • 12d ago
Hey so having tried Advent of Code last year, I though I would make a TUI for it. It saves your submissions via a Session cookie.
As for programming language, you can add any language you want in the config file or change it in the UI itself
It allows you to view, solve and submit advent of code problems. It also allows you to view previous year's problems.
r/RatatuiRust • u/programmersd21 • 13d ago
Ratatui is great for building terminal interfaces, but sometimes a static interface isn't enough. Transitions, fades and other small animations can make a TUI feel much more responsive.
That's where TachyonFX comes in.
TachyonFX is an effects and animation library built for Ratatui. It provides a collection of effects that can be composed, sequenced and applied directly to Ratatui's rendering buffer.
In this tutorial, we'll build a small application and learn how to integrate TachyonFX into a Ratatui render loop.
Create a new Rust project:
cargo new ratatui-effects
cd ratatui-effectsAdd the dependencies:
cargo add ratatui@0.30.2
cargo add tachyonfx@0.25.2Before writing code, there are three important things to understand:
The general rendering flow looks like this:
Replace src/main.rs with:
use std::{
io,
time::Instant,
};
use ratatui::{
crossterm::event::{self, Event, KeyCode},
prelude::*,
widgets::Paragraph,
};
use tachyonfx::{
fx,
EffectManager,
Interpolation,
};
fn main() -> io::Result<()> {
let mut terminal = ratatui::init();
let mut effects: EffectManager<()> = EffectManager::default();
let effect = fx::fade_to(
Color::Cyan,
Color::Gray,
(1_000, Interpolation::SineIn),
);
effects.add_effect(effect);
let mut last_frame = Instant::now();
loop {
let elapsed = last_frame.elapsed();
last_frame = Instant::now();
terminal.draw(|frame| {
let area = frame.area();
let paragraph = Paragraph::new(
"Hello, TachyonFX!"
)
.alignment(Alignment::Center);
frame.render_widget(paragraph, area);
effects.process_effects(
elapsed.into(),
frame.buffer_mut(),
area,
);
})?;
if event::poll(std::time::Duration::from_millis(16))? {
if let Event::Key(key) = event::read()? {
if key.code == KeyCode::Char('q') {
break;
}
}
}
}
ratatui::restore();
Ok(())
}Run it:
cargo runYou should see the text rendered in your terminal with a color transition.
Press q to exit.
One of the most useful features of TachyonFX is effect composition.
You don't have to implement every animation manually. You can combine existing effects.
There are two particularly useful composition functions.
Parallel
Runs multiple effects at the same time.
let effect = fx::parallel(&[
fx::fade_from_fg(Color::Red, 500),
fx::coalesce(800),
]);Sequence
Runs effects one after another.
let effect = fx::sequence(&[
fx::fade_from_fg(Color::Black, 300),
fx::coalesce(500),
]);These are useful when building transitions between different screens or revealing content gradually.
TachyonFX includes considerably more than simple fades.
Some interesting effects to explore:
| Effect | Purpose |
|---|---|
dissolve | Gradually dissolves content |
coalesce | Gradually materializes content |
slide_in | Slides content into view |
sweep_in | Reveals content using a sweep |
evolve | Transforms characters over time |
explode | Creates a particle-like dispersion |
hsl_shift | Animates colors through HSL |
glitch | Applies glitch-style visual effects |
It also supports spatial patterns such as radial, diagonal, checkerboard and spiral patterns.
You can explore interactive effect examples through TachyonFX FTL.
When integrating TachyonFX into a real application:
That's the basic idea behind using TachyonFX with Ratatui.
There's a lot more to explore, especially effect composition, custom effects, cell filtering and spatial patterns.
If you've used TachyonFX in your own Ratatui projects, I'd be interested to hear how you've integrated it and what effects you've found useful.
r/RatatuiRust • u/SpyderSC • 13d ago
A keyboard-driven terminal UI for rclone, with Vim keys. Browse your accounts and the local disk, copy and move between them, rename and delete, and keep transfers running in the background — even after you quit.
r/RatatuiRust • u/tuna4l • 13d ago
I've been using aerc for a while, but I honestly hated its ugly UI, so I decided to build Tmail, a faster, cleaner, and more modern terminal email client.
Built with Rust/Ratatui on top of Rataflow, it visualizes email threads as node-based graphs, with messages as cards and replies as edges. It also supports IMAP/SMTP, Maildir, PGP/S-MIME, Lua scripting, and more.
My favorite features are rendering HTML emails directly in the terminal, Markdown-to-HTML conversion, and the node-based reply system.
I didn't originally plan to vibe-code it and i designed the ui without ai help, but I ended up using Opus 5.5 to get something usable as quickly as possible. (cuz i made this for myself lol)
r/RatatuiRust • u/programmersd21 • 13d ago
0, 100, 200, 300, 400, 500, 600, 700, 800, 900 ❌
ratatuists, let's celebrate this, shall we? 😻✨🎊
drop a 🥳 in the comments below to show your support!!!
let's keep:
...and most importantly, being the #1 TUI community on Reddit! 💗
stay safe everyone, peace ✌️🕊️
*~ yours lovingly...*
s.d.
r/RatatuiRust • u/programmersd21 • 14d ago
r/RatatuiRust • u/orhunp • 15d ago
r/RatatuiRust • u/mustang6139 • 15d ago
Someone put a spell on me this week. I finally got home for a few days and had some time to code, then the machine I was working on died. Spent a day recovering data. Now I'm back on my old 2015 MacBook Air running Omarchy. Still does the job. 😅
I'm working on sdrtop using Rust and Ratatui, and have come to really appreciate what a powerful tool a terminal can be.
We often associate terminals with running commands, building and compiling code or administering a system, but they offer so much more.
Using Ratatui we can build fully featured applications with dynamic data, graphics, tables, views and fully keyboard driven controls all in a terminal.
It really does fit well with my project sdrtop. Radio is all about watching things that are constantly changing, so having a clean interface that shows my metrics, signal activity and useful information is great.
I also love how the same app can be used on an old laptop, via SSH and tmux or on my little cyberdeck.
There's no need for a bulky desktop environment.
Whilst the retro feel is a nice touch, Ratatui has really made me appreciate how powerful a terminal can be as an application platform.
There is still a lot to cook! 👨🏽🍳🐁
r/RatatuiRust • u/SpyderSC • 17d ago
https://syscallbrain.github.io/virsh-tui/images/dashboard.png
I manage my VMs with virsh and kept bouncing between virsh list --all, virsh domstats and virt-manager, so I wrote a terminal UI for it in Rust with ratatui.
Every action is a plain virsh (or virt-install) command. virsh-tui shows you the command before it runs and again after, so you know what it did and can paste it into a script later. It has the same permissions virsh has and works with qemu:///system, qemu:///session and remote hosts over qemu+ssh://.
What it does right now:
:wvirt-install command for you: command line with Tab completion for virsh flags; anything it doesn't know goes straight to virsh--dry-run prints what each key would run, and --demo lets you try it with no libvirt at all (the screenshot is from demo mode)Linux only. Install with cargo install --locked --git https://github.com/SyscallBrain/virsh-tui (needs Rust 1.88+).
GitHub: https://github.com/SyscallBrain/virsh-tui Docs: https://syscallbrain.github.io/virsh-tui/
It's still 0.1, so bug reports and "it can't do X" comments are very welcome.
r/RatatuiRust • u/programmersd21 • 18d ago
r/RatatuiRust
•
u/SpyderSC
•
18d ago
https://syscallbrain.github.io/lazybw/images/demo.gif
I use Bitwarden every day and kept switching to the browser just to copy a password or check a 2FA code, so I wrote a TUI for it. lazybw lets you browse, search, copy and edit your vault without leaving the terminal, with Vim-style keys. It's built with Ratatui and runs the official Bitwarden CLI (bw serve) underneath, so it never touches the vault crypto itself.
Some of what it does:
folder:work, is:weak …) and a Ctrl-p finderyu / yp / yt to copy username, password or the 2FA code; the clipboard clears itself$EDITOR for notes and raw JSONLinux only for now (x86_64 and aarch64; it also runs on Termux). There are .deb, .rpm, AUR packages (lazybw-bin, lazybw), static binaries and a Docker image with bw included.
GitHub: https://github.com/SyscallBrain/lazybw Docs: https://syscallbrain.github.io/lazybw/
It's at 1.2, so I'd really like to hear what breaks or what's missing. (Built with AI assistance.)
r/RatatuiRust • u/Few_Opinion430 • 18d ago
Hi everyone! I’m a backend engineer based in South Korea, and I’ve been working on an open-source database workspace called datarig, built in Rust.
I’ve always liked tools such as DataGrip, but found them rather heavy and sluggish at times. I started building datarig for my own day-to-day work, aiming for speed and efficiency without compromising on features or usability.
✨ Key Features
- PostgreSQL / MySQL support, SSH tunnelling and TLS
- Full keyboard and mouse support, including scrolling, clicking and dragging
- Vim-style SQL editor, autocompletion and schema explorer
- Efficient handling of large datasets with pagination and disk spilling
- EXPLAIN ANALYZE with multiple execution plan visualisations
- Real-time database performance monitoring
- SQL risk analysis and transaction safety
- Data editing and CSV / Excel / Parquet export
- CI-enforced performance budgets and regression testing
datarig is still pre-1.0, but I’m actively developing and improving it. I also plan to support more database engines, including SQLite, Redis and others.
More importantly, my long-term vision is to build a database workspace where developers and AI agents can work together, rather than just another database client.
I’d love to see datarig grow into a fast, reliable and capable open-source tool with the help of the community.
Any feedback, suggestions or contributions would be very much appreciated!
r/RatatuiRust • u/undy_aeon • 19d ago
r/RatatuiRust • u/programmersd21 • 21d ago
Hey everyone!
I've been working on a small Rust project called Runline.
It's a terminal UI for monitoring and investigating GitHub Actions runs. The idea is simple: when a CI run fails, I wanted a quicker way to find what went wrong without constantly switching between the terminal and GitHub's web interface.
Some things it supports:
It's written in Rust and uses the GitHub CLI (gh) for authentication and API access.
You can install it with:
cargo install runlineGitHub: https://github.com/programmersd21/runline
It's still a relatively new project, and I'd genuinely appreciate feedback from people who work with Rust, terminal applications, or CI/CD.
I'm particularly interested in thoughts on the TUI design, architecture and anything that could be improved.
Thanks for checking it out!