New advertisers: 50% off your first month with code FIRSTMONTHSee slots
vercel avatar

Streamdown

A React Markdown renderer for streaming AI output, covering setup, plugins, styling, and security.

skills.sh installs
3.4K
GitHub stars
5.8K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers installation, Tailwind CSS configuration, basic and AI-streaming usage, and static mode for blogs and docs
  • Includes plugins for code, Mermaid, math, and CJK, plus props for carets, controls, link safety, and custom elements
  • Requires @source or content entries for streamdown/dist and a KaTeX CSS import for math rendering
  • Designed for React projects that render streamed Vercel AI SDK chat output or static Markdown content

Install

$ npx -y skills add vercel/streamdown --skill streamdown -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Streamdown

Streaming-optimized React Markdown renderer. Drop-in replacement for react-markdown with built-in streaming support, security, and interactive controls.

Quick Setup

1. Install

npm install streamdown

Optional plugins (install only what's needed):

npm install @streamdown/code @streamdown/mermaid @streamdown/math @streamdown/cjk

2. Configure Tailwind CSS (Required)

This is the most commonly missed step. Streamdown uses Tailwind for styling and the dist files must be scanned.

Tailwind v4 — add to globals.css:

@source "../node_modules/streamdown/dist/*.js";

Add plugin @source lines only for packages you have installed (omitting uninstalled plugins avoids Tailwind errors). See plugin pages for exact paths:

  • Code: @source "../node_modules/@streamdown/code/dist/*.js";
  • CJK: @source "../node_modules/@streamdown/cjk/dist/*.js";
  • Math: @source "../node_modules/@streamdown/math/dist/*.js";
  • Mermaid: @source "../node_modules/@streamdown/mermaid/dist/*.js";

Details

Repository
github.com/vercel/streamdown
Categories
Frontend & UI Code, AI Agents & LLM Apps

Similar to Streamdown

More Frontend & UI Code