Analysis updated 2026-05-18
Display formatted README or documentation content inside a terminal application.
Render Mermaid sequence, pie, gantt, or state diagrams directly in a text UI.
Build a terminal file or config viewer with a collapsible JSON or TOML tree.
Show syntax-highlighted code snippets inside a command line tool.
| celestia-island/ratatui-markdown | dollspace-gay/thermite | laravel/moat | |
|---|---|---|---|
| Stars | 16 | 16 | 16 |
| Language | Rust | Rust | Rust |
| Setup difficulty | easy | hard | easy |
| Complexity | 2/5 | 5/5 | 2/5 |
| Audience | developer | researcher | ops devops |
Figures from each repo's GitHub metadata at analysis time.
Add as a Cargo dependency, optional features like syntax highlighting need extra feature flags enabled.
ratatui-markdown is a Rust library for rendering markdown inside terminal user interfaces built with ratatui. If you are building a command line tool that needs to show formatted text in the terminal, such as documentation, README files, or chat messages, this library turns markdown into styled terminal output. It handles the common markdown elements: headings, lists, code blocks, blockquotes, tables, images, and inline formatting like bold, italic, and inline code. Beyond plain markdown, it can render Mermaid diagrams such as sequence, pie, gantt, and state diagrams directly from fenced code blocks, and it supports syntax highlighted code blocks using tree-sitter, with each programming language available as an optional feature so you only include what you need. The library also includes a collapsible tree viewer for exploring JSON or TOML data with expand and collapse controls and keyboard navigation, plus a hybrid scrolling system that lets users freely scroll through content or move between individual focusable items. These pieces combine into ready made widgets called MarkdownPreview and MarkdownViewer, which bundle the markdown renderer, tree view, and scrolling into a single component you can drop into an application. Styling is handled through a theme system with more than 15 color slots covering text, borders, JSON values, and popups, so the look can be customized to match an application. The library also correctly handles the width of CJK characters like Chinese, Japanese, and Korean text, and can strip TOML frontmatter from the top of a document before rendering. Most features are included by default, but they can be turned on or off individually, and the project ships several runnable examples covering basic markdown, syntax highlighting, images, Mermaid diagrams, and tree views. It requires Rust 1.74 or newer and the ratatui framework version 0.29, and is dual licensed under MIT or Apache-2.0.
ratatui-markdown renders markdown, Mermaid diagrams, and syntax-highlighted code inside terminal apps built with the ratatui framework in Rust.
Mainly Rust. The stack also includes Rust, ratatui, tree-sitter.
Dual licensed under MIT or Apache-2.0, free to use in personal or commercial Rust projects.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.