vercel/streamdown là dự án TypeScript với 5.8k sao trong nhóm AI Tools. A drop-in replacement for react-markdown, designed for AI-powered streaming.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
A drop-in replacement for react-markdown, designed for AI-powered streaming.
Overview
Formatting Markdown is easy, but when you tokenize and stream it, new challenges arise. Streamdown is built specifically to handle the unique requirements of streaming Markdown content from AI models, providing seamless formatting even with incomplete or unterminated Markdown blocks.
Streamdown powers the AI Elements Message component but can be installed as a standalone package for your own streaming needs.
🎨 Unterminated block parsing - Build with remend for better streaming quality
📊 GitHub Flavored Markdown - Tables, task lists, and strikethrough support
🔢 Math rendering - LaTeX equations via KaTeX
📈 Mermaid diagrams - Render Mermaid diagrams as code blocks with a button to render them
🎯 Code syntax highlighting - Beautiful code blocks with Shiki
🛡️ Security-first - Built with rehype-harden for safe rendering
⚡ Performance optimized - Memoized rendering for efficient updates
Installation
npm i streamdown
Then, update your Tailwind globals.css to include the following so that Tailwind can detect the utility classes used by Streamdown.
@source "../node_modules/streamdown/dist/*.js";
The path must be relative from your CSS file to the node_modules folder containing streamdown. In a standard Next.js project where globals.css lives in app/, the default path above should work.
If you install optional Streamdown plugins, add their matching @source lines from the relevant plugin docs (/docs/plugins/code, /docs/plugins/cjk, /docs/plugins/math, /docs/plugins/mermaid). Only include plugin @source entries for packages that are actually installed.
In a monorepo (npm workspaces, Turbo, pnpm, etc.), dependencies are typically hoisted to the root node_modules. You need to adjust the relative path to point there:
/* apps/web/app/globals.css → 3 levels up to reach root node_modules */
@source "../../../node_modules/streamdown/dist/*.js";
Adjust the number of ../ segments based on where your CSS file lives relative to the root node_modules. If you install Streamdown plugins, add their respective @source entries only when those packages are installed.
CSS Custom Properties (Design Tokens)
Streamdown components are built using shadcn/ui's design system and rely on CSS custom properties for colors, border radius, and spacing. Without these variables defined, components may render with missing backgrounds, borders, or incorrect spacing.
If you are already using shadcn/ui, these variables are set up automatically. If not, add the following minimal set to your global CSS:
fallbackComponent — fallback for missing map entries
Streamdown ships built-in renderers for common markdown tags. For tags that are
not in that map — and not overridden via components — you can provide a
fallbackComponent. Useful for allowedTags custom elements and uncovered HTML
tags like <span>, <em>, <div>, or <br>.
This is not a full unstyled mode: built-in entries (and any explicit
components overrides) still take precedence. To restyle tags that already have
defaults (e.g. h1, p, code), pass them in components.
import { createElement } from "react";
import { Streamdown } from "streamdown";
// Render missing map entries / allowedTags via a pass-through
<Streamdown
allowedTags={{ mention: ["user_id"] }}
fallbackComponent={({ node, children, ...props }) =>
createElement(node!.tagName, props, children)
}
>
{markdown}
</Streamdown>
Combine with explicit overrides when some tags need special treatment:
vercel/streamdown thuộc nhóm AI Tools trên TopGit, cùng 3 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về vercel/streamdown ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/vercel/streamdown là nguồn chính thức.
vercel/streamdown có bao nhiêu sao?
vercel/streamdown có 5.8k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/vercel/streamdown. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
vercel/streamdown có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho vercel/streamdown. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
vercel/streamdown có trang demo không?
Dự án có trang chủ ở https://streamdown.ai. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
vercel/streamdown là gì?
vercel/streamdown (vercel/streamdown) là dự án TypeScript trên GitHub. Theo mô tả gốc: A drop-in replacement for react-markdown, designed for AI-powered streaming.
vercel/streamdown so với các dự án AI Tools khác thế nào?
vercel/streamdown được TopGit xếp vào nhóm AI Tools, với 5.8k sao GitHub và viết bằng TypeScript. Xem trang chủ đề AI Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc streamdown có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về streamdown.