vercel avatar

Streamdown

This handles React markdown rendering optimized for AI streaming responses. Built as a drop-in replacement for react-markdown, it includes syntax highlighting via Shiki, Mermaid diagrams, LaTeX math, and streaming-friendly features like animated carets and copy buttons that disable during active streaming. Works directly with Vercel AI SDK's useChat hook. The Tailwind setup is mandatory and commonly missed, you need to add source directives for the dist files or styles won't load. Security defaults are solid with link confirmation modals and URL sanitization built in. Good for AI chat interfaces where you're rendering streamed markdown and want polish without building everything from scratch.

skills.sh installs
3.3K
GitHub stars
5.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add vercel/streamdown --skill streamdown --agent claude-code

Installs into .claude/skills of the current project.

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";

Sponsors

Details

Repository
github.com/vercel/streamdown
Categories
Frontend Development, Security, Debugging, Cloud & Infrastructure
1gogf avatargoframe-v2gogf/skillsGoFrame v2 development skill. Use only when the target Go project uses or is explicitly adopting GoFrame v2: the nearest go.mod requires github.com/gogf/gf/v2, 3.3Kskills.sh installs
2onmax avatarvitestonmax/nuxt-skillsUse when writing unit/integration tests for Vite projects - configure vitest.config.ts, write test suites with describe/it, create mock implementations with vi.3.2Kskills.sh installs
3freshtechbro avatarmodern-web-designfreshtechbro/claudedesignskillsModern web design trends, principles, and implementation patterns for 2024-2025. Use this skill when designing websites, creating interactive experiences, imple3.1Kskills.sh installs
4benjaminsehl avatarliquid-theme-standardsbenjaminsehl/liquid-skillsCSS, JavaScript, and HTML coding standards for Shopify Liquid themes. Covers BEM naming inside stylesheet tags, design tokens, CSS custom properties, Web Compon3.1Kskills.sh installs
5forcedotcom avatargenerating-lwc-componentsforcedotcom/sf-skillsLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patte3.1Kskills.sh installs
6markdown-viewer avatarinfocardmarkdown-viewer/skillsCreate editorial-style information cards using HTML/CSS in Markdown. Best for knowledge summaries, data highlights, event announcements, and single-topic conten3.1Kskills.sh installs