Streaming Markdown parser for TUIs
Top 93.1% on sourcepulse
Streamdown is a real-time, streaming Markdown parser designed for terminal-based applications, particularly those outputting content from Large Language Models (LLMs). It aims to provide a superior viewing and interaction experience within the terminal, enhancing readability, code copying, and interactive debugging for AI-generated text.
How It Works
Streamdown processes Markdown streams in real-time, rendering them directly in the terminal. It prioritizes preserving the integrity of code blocks for clean copying, unlike other renderers that may introduce artifacts with wrapped lines. The tool supports advanced features like embedded images, hyperlinks (OSC 8), and clipboard integration (OSC 52), and offers a plugin system for extensibility, such as rendering LaTeX. Its design allows it to function as a drop-in replacement for standard pagers or as an interactive wrapper for other programs, retaining full keyboard interactivity.
Quick Start & Requirements
pip install streamdown
or pipx install -e .
(from source).python/sd.py tests/*md
.Highlighted Details
curl
.PrettyBroken
.--exec
) retains full keyboard control.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Some features may not be supported on all operating systems, and users are encouraged to file tickets for missing platform support. The PrettyBroken
and PrettyPad
options, while enhancing appearance, can negatively impact code copying.
1 week ago
Inactive