RatatuiRuby is a RubyGem that brings terminal user interfaces to Ruby by wrapping Rust's Ratatui library. It supports both inline viewports for adding rich elements like spinners and menus to CLI scripts without taking over the screen, and full-screen TUI applications with keyboard and mouse input. The library includes built-in testing capabilities with headless terminal support, event injection, and snapshot comparisons. For complex applications, it integrates with Rooibos (MVU framework) or the upcoming Kit (component-based architecture). The native Rust extension provides performance while keeping Ruby's expressiveness for UI logic.

7m read timeFrom ratatui-ruby.dev
Post cover image

Sort: