vercel/streamdown/streamdown
Claude Code and agent skill by vercel/streamdown
- community
- verified
Checking that the SKILL.md file is still in the repository.
Implement, configure, and customize Streamdown — a streaming-optimized React Markdown renderer with syntax highlighting, Mermaid diagrams, math rendering, and CJK support. Use when working with Streamdown setup, configuration, plugins, styling, security, or integration with AI streaming (e.g., Vercel AI SDK). Triggers on: (1) Installing or setting up Streamdown, (2) Configuring plugins (code, mermaid, math, cjk), (3) Styling or theming Streamdown output, (4) Integrating with AI chat/streaming, (5) Configuring security, link safety, or custom HTML tags, (6) Using carets, static mode, or custom components, (7) Troubleshooting Tailwind, Shiki, or Vite issues.
Install
npx vskill@latest install vercel/streamdown/streamdownSKILL.md
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
Optional plugins (install only what's needed):
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:
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";
Tailwind v3 — add to tailwind.config.js:
3. Basic Usage
4. With AI Streaming (Vercel AI SDK)
5. Static Mode (Blogs, Docs)
Key Props
| Prop | Type | Default | Purpose | ||
|---|---|---|---|---|---|
children | string | — | Markdown content | ||
mode | `"streaming" \ | "static"` | "streaming" | Rendering mode | |
plugins | { code?, mermaid?, math?, cjk? } | — | Feature plugins | ||
isAnimating | boolean | false | Streaming indicator | ||
caret | `"block" \ | "circle"` | — | Cursor style | |
components | Components | — | Custom element overrides | ||
controls | `boolean \ | object` | true | Interactive buttons; download: { filename } sets custom download names | |
linkSafety | LinkSafetyConfig | { enabled: true } | Link confirmation modal | ||
shikiTheme | [light, dark] | ['github-light', 'github-dark'] | Code themes | ||
className | string | — | Container class | ||
allowedElements | string[] | all | Tag names to allow | ||
disallowedElements | string[] | [] | Tag names to disallow | ||
allowElement | AllowElement | — | Custom element filter | ||
unwrapDisallowed | boolean | false | Keep children of disallowed elements | ||
skipHtml | boolean | false | Ignore raw HTML | ||
urlTransform | UrlTransform | defaultUrlTransform | Transform/sanitize URLs |
For full API reference, see references/api.md.
Plugin Quick Reference
| Plugin | Package | Purpose | |
|---|---|---|---|
| Code | @streamdown/code | Syntax highlighting (Shiki, 200+ languages) | |
| Mermaid | @streamdown/mermaid | Diagrams (flowcharts, sequence, etc.) | |
| Math | @streamdown/math | LaTeX via KaTeX (requires CSS import) | |
| CJK | @streamdown/cjk | Chinese/Japanese/Korean text support |
Math requires CSS:
For plugin configuration details, see references/plugins.md.
References
Use these for deeper implementation details:
- [references/api.md](references/api.md) — Complete props, types, and interfaces
- [references/plugins.md](references/plugins.md) — Plugin setup, configuration, and customization
- [references/styling.md](references/styling.md) — CSS variables, data attributes, custom components, theme examples
- [references/security.md](references/security.md) — Hardening, link safety, custom HTML tags, production config
- [references/features.md](references/features.md) — Carets, remend, static mode, controls, GFM, memoization, troubleshooting
Example Configurations
Copy and adapt from assets/examples/:
- [basic-streaming.tsx](assets/examples/basic-streaming.tsx) — Minimal AI chat with Vercel AI SDK
- [with-caret.tsx](assets/examples/with-caret.tsx) — Streaming with block caret cursor
- [full-featured.tsx](assets/examples/full-featured.tsx) — All plugins, carets, link safety, controls
- [static-mode.tsx](assets/examples/static-mode.tsx) — Blog/docs rendering
- [custom-security.tsx](assets/examples/custom-security.tsx) — Strict security for AI content
Common Gotchas
- Tailwind styles missing — Add
@sourcedirective orcontententry fornode_modules/streamdown/dist/*.js - Math not rendering — Import
katex/dist/katex.min.css - Caret not showing — Both
caretprop ANDisAnimating={true}are required - Copy buttons during streaming — Disabled automatically when
isAnimating={true} - Link safety modal appearing — Enabled by default; disable with
linkSafety={{ enabled: false }} - Shiki warning in Next.js — Install
shikiexplicitly, add totranspilePackages - `allowedTags` not working — Only works with default rehype plugins
- Math uses `$$` not `$` — Single dollar is disabled by default to avoid currency conflicts
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 6 Mar 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/streamdown/SKILL.md
Popularity
- Repository stars
- 4,539
- Repository forks
- 230
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vercel/streamdown/streamdown)