streamdown: Render Markdown During AI Streaming

Summary
Streamdown is a React Markdown renderer built for text arriving incrementally from AI models. It handles incomplete Markdown while supporting common formats such as tables, math, diagrams, and highlighted code.
At a glance
- Language
- TypeScript
- License
- NOASSERTION
- Stars
- 5.7k
- Forks
- 305
- Added to OSRepos
- November 28, 2025
- Last analyzed
- October 3, 2026
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
Streamdown is a React Markdown renderer for applications that display AI-generated text as it arrives. Unlike a renderer aimed only at complete documents, it is designed to format partial Markdown gracefully, including blocks that have not been closed yet.
It suits teams building chat interfaces or other streaming experiences with React. Use it when incremental rendering is central to the interface; for static Markdown, a conventional renderer may be sufficient. The project also powers the AI Elements Message component and is available as a standalone package.
Key Features
- Drop-in replacement for
react-markdownin React projects. - Handles incomplete and unterminated Markdown during streaming.
- Supports GitHub Flavored Markdown features such as tables, task lists, and strikethrough.
- Optional rendering plugins provide LaTeX math, Mermaid diagrams, and code syntax highlighting.
- Uses
rehype-hardenfor security-focused rendering. - Offers memoized rendering to support efficient updates.
- Supports custom components and fallback rendering for tags without built-in renderers.
Use Cases
- React chat interfaces that render model responses while they are still streaming.
- AI product teams that need formatted tables, equations, or code in live responses.
- Developers building streaming interfaces who want Markdown rendering without waiting for a complete response.
- Applications that need custom rendering for selected Markdown or allowed HTML tags.
Project Facts
- Language: TypeScript
- License: NOASSERTION
- Stars: 5.7k
- Forks: 305
- Topics: ai, markdown, streaming
- Archived: No
Getting Started
Install the package:
npm i streamdown
See the README and documentation for setup details, styling, and plugin configuration.
Alternatives
- x: Ant Design X is a broader AI interface toolkit with conversation components and streaming utilities, while Streamdown focuses on rendering streaming Markdown.
Considerations
- This is a React package, so it is intended for React applications rather than framework-agnostic Markdown rendering.
- Tailwind CSS users need to configure source paths so Tailwind detects Streamdown's utility classes. Optional plugins may need their own source entries.
- Some components rely on shadcn/ui CSS custom properties. Projects without those variables may need to define them.
- The supplied license value is
NOASSERTION, so verify licensing requirements before adopting it.
Found this useful?
Share it with someone who would like streamdown.
Comparisons
Source repository
Open the original repository on GitHub.
21 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

agentwatch: Monitor AI Agent Activity Locally
October 6, 2026
agentwatch combines logs from multiple coding agents into a local timeline with event details, cost tracking, alerts, and search. It suits developers who run several agents and want visibility without sending data to a cloud service.

image-blaster: Turn Images into 3D Environments and Assets
October 5, 2026
image-blaster uses Claude skills and external generation services to turn an image into a 3D environment, object meshes, and sound effects. It is designed to quickly create starting points for game, 3D, and web projects.

OrcaReplay: Record and Replay AI Agent Runs
October 2, 2026
OrcaReplay records AI agent runs so developers can inspect what happened, replay interactions offline, and fork a run from a checkpoint onto another model. It is a TypeScript CLI for debugging and comparing agent behavior without modifying the agent.

openmake_llm: Coordinate AI Models, Agents, and Tools
October 1, 2026
OpenMake is a self-hosted AI workspace that coordinates chat models, agents, and tools in one place. It suits people who want multi-step AI workflows with local or open-weight models, while keeping infrastructure and model choices under their control.