vercel/streamdown

A drop-in replacement for react-markdown, designed for AI-powered streaming.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 9 minutes ago
Added to GitGenius on September 12th, 2026
Created on August 15th, 2025
Open Issues & Pull Requests: 32 (+0)
GitHub issues: Enabled
Number of forks: 299
Total Stargazers: 5,614 (+0)
Total Subscribers: 11 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.3 days
Mean response time: 19.4 days
90th percentile: 69.7 days
Tracked items: 271

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 11% of issues opened in the past year have been closed. Three people close 95% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 12
New in 7 days: 1
Closed in 7 days: 3
Avg open age: 124 days
Stale 30+ days: 6
Stale 90+ days: 4

Recent activity

Opened in 7 days: 1
Closed in 7 days: 3
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (151)
  • enhancement (78)
  • upstream (9)
  • question (6)
  • documentation (4)

Detailed Description

Streamdown is a React component library that renders Markdown with support for streaming content from AI models.

The core problem Streamdown addresses is that standard Markdown renderers struggle when content arrives incrementally as tokens from an AI stream. Incomplete or unterminated Markdown blocks cause formatting to break or render incorrectly. Streamdown handles this by parsing and displaying Markdown gracefully even when blocks are partial or malformed, allowing the content to update smoothly as new tokens arrive. It achieves this through streaming-optimized parsing built on top of rehype and remark, combined with memoized rendering to avoid unnecessary recalculations.

Streamdown is designed as a drop-in replacement for react-markdown, so teams already using that library can switch with minimal code changes. It suits projects that stream AI-generated content to users, particularly those using the Vercel AI SDK. The tool includes built-in support for GitHub Flavored Markdown, LaTeX math rendering via KaTeX, Mermaid diagram rendering, syntax-highlighted code blocks via Shiki, and security hardening through rehype-harden. It uses Tailwind CSS for styling and integrates with shadcn/ui's design system, requiring CSS custom properties to be configured in your project.

The project shows active development with regular updates addressing streaming edge cases and adding plugin support for optional features like math rendering, code highlighting, and CJK text handling. Documentation is comprehensive and includes setup guidance for both standard and monorepo environments, with clear instructions for configuring Tailwind and CSS variables. The codebase is maintained with attention to performance optimization and security considerations specific to rendering untrusted AI-generated content.