r3bl-open-core
Fully async Rust TUI engine π¦. For powering AI/LLM coding agents, Cloud/SSH workflows & interactive CLIs: non-blocking readline, inline dialogs, React/Elm-styl
What is r3bl-open-core?
Fully async Rust TUI engine π¦. For powering AI/LLM coding agents, Cloud/SSH workflows & interactive CLIs: non-blocking readline, inline dialogs, React/Elm-style full-screen TUI, Markdown editor, PTY multiplexing & rust-analyzer MCP server.
Overview of r3bl-open-core
What it is
r3bl-open-core (ROC) is a fully async Rust TUI engine designed for powering AI/LLM coding agents, Cloud/SSH workflows, and interactive CLIs. It provides four foundational interaction primitives built from scratch in pure Rust: non-blocking async readline for CLI/REPLs, inline multi-select dialogs, a full-screen TUI with React/Elm-style architecture, and terminal multiplexing with PTY orchestration. The framework is loosely coupled and strongly coherent, allowing components to be used independently or composed seamlessly.
Key features
- Non-blocking async readline (
readline_async) that allows background tasks to print concurrently without pausing line editing. - Inline partial TUI dialogs (
choose) for single-shot interactive multi-select in terminal scrollback. - Full-screen TUI with unidirectional data flow, responsive flexbox layouts, declarative CSS-like styling, and a reactive state architecture.
- Full-featured Markdown editor component with custom parser, custom syntax highlighter, and fast zero-copy gap buffer.
- Terminal multiplexing primitives with in-memory virtual terminals, virtual tabs, deterministic process orchestration, and 2D horizontal viewport panning.
- Automated headless testing via PTY subprocess orchestration (
generate_pty_test!macro) and visual UI snapshot testing using offscreen buffers.
Use cases
- AI/LLM coding agents and execution harnesses: building fast, interactive terminal interfaces in pure Rust with native PTY orchestration and zero-latency ANSI input decoding.
- DevOps and cloud workflows: transforming terminal sessions into rich workspaces with virtual terminal emulation, tabs, and double-buffered diff rendering over SSH.
- Interactive document and Markdown workflows: rich editing, syntax highlighting, and real-time code block execution inside Markdown documents.
- Developer productivity infrastructure: high-efficiency tooling and composable terminal infrastructure for everyday command-line workflows.
Getting started
See the repository README for installation and usage instructions.
License and pricing
Licensed under Apache-2.0. Open source.
Based on the project's public README and repository metadata.