RepositoryRustFRFrance
FD

fdehau/tui-rs

Build terminal user interfaces and dashboards using Rust

10.9kstars
481forks
0issues
4views

🖥️ Xây giao diện terminal đẹp chỉ với Rust — tui-rs

Thư viện Rust để build TUI và dashboard ngay trong terminal, lấy cảm hứng từ blessed-contrib và termui.

tui-rs là một thư viện Rust giúp bạn xây dựng giao diện người dùng đẹp mắt và tương tác ngay trong terminal. Nó hỗ trợ nhiều backend như crossterm (mặc định) và termion, hoạt động dựa trên nguyên tắc render ngay lập tức với bộ đệm trung gian.

✨ Điểm nổi bật

  • Hỗ trợ nhiều backend: crossterm (mặc định), termion — dễ dàng chuyển đổi giữa các nền tảng.
  • Render ngay lập tức: xây dựng lại toàn bộ giao diện mỗi khung hình, linh hoạt nhưng tối ưu số lượng escape sequence.
  • Danh sách widget phong phú: Block, Gauge, Sparkline, Chart, BarChart, List, Table, Paragraph, Canvas, Tabs — đáp ứng mọi nhu cầu hiển thị.
  • Ví dụ đi kèm: mỗi widget đều có ví dụ minh họa rõ ràng, dễ chạy bằng cargo.
  • Không xử lý input: tập trung vào việc render giao diện, để bạn tự do kết hợp với thư viện xử lý sự kiện khác.
  • Yêu cầu Rust ổn định: từ phiên bản 0.17.0 trở lên cần rustc >= 1.56.1.

💡 Vì sao đáng chú ý

tui-rs nổi bật nhờ thiết kế render ngay lập tức, mang lại sự linh hoạt cao khi xây dựng giao diện động. Mặc dù có thể tạo overhead với nội dung thay đổi liên tục, nhưng nhờ tốc độ của Rust, gánh nặng thực sự đến từ trình giả lập terminal chứ không phải thư viện.

Dự án phù hợp cho các công cụ CLI cần giao diện đẹp như dashboard hệ thống, công cụ giám sát, hoặc bất kỳ ứng dụng nào chạy trong terminal nhưng muốn trải nghiệm người dùng phong phú.


#Rust #TUI #Terminal #Dashboard #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
sxyazi/yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.

43.8k
Dec 1, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

158.7k
Dec 2, 2026
RepositoryShell
ohmyzsh/ohmyzsh

🙃 A delightful, community-driven framework for managing your zsh configuration. Built by 2,600+ contributors, with hundreds of plugins (git, rails, laravel, node, python, docker, kubectl, aws, and more), themes to spice up your terminal, and automatic updates to keep your command line feeling like home.

191.0k
Nov 29, 2026
RepositoryRust
alacritty/alacritty

A cross-platform, OpenGL terminal emulator.

66.4k
Dec 1, 2026
RepositoryRust
warpdotdev/warp

Warp is an agentic development environment, born out of the terminal.

66.2k
Dec 1, 2026
RepositoryRust
sharkdp/bat

A cat(1) clone with wings.

61.6k
Nov 29, 2026
RepositoryRust
sharkdp/fd

A simple, fast and user-friendly alternative to 'find'

45.4k
Dec 2, 2026
RepositoryRust
codewhale-hq/Codewhale

Open-source Rust coding agent for terminal, web, and desktop. Any model, multi-agent fleets, MCP & plugins, OS sandboxing, and session receipts.

41.2k
Nov 26, 2026