awesome-repositories.com
المدونة
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعحولكيفية ترتيب النتائجالصحافةخادم MCP
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
vercel avatar

vercel/streamdown

0
View on GitHub↗
4,420 نجوم·223 تفرعات·TypeScript·other·4 مشاهداتstreamdown.ai↗

Streamdown

Streamdown is a streaming markdown renderer for React that transforms incoming markdown text into sanitized HTML in real time, handling incomplete blocks as they arrive. It parses GitHub-Flavored Markdown syntax including tables, task lists, and footnotes, and renders LaTeX math expressions using KaTeX, Mermaid diagrams as interactive SVGs, and code blocks with Shiki-based syntax highlighting supporting over 200 languages with dual light and dark themes. The renderer includes an XSS-safe HTML sanitizer that strips dangerous tags and validates URLs to prevent injection attacks.

What distinguishes Streamdown is its streaming-first architecture: it parses markdown into blocks as tokens arrive, detecting and completing unterminated fences and math delimiters so partial content appears styled immediately without waiting for the full document. Deferred diagram rendering delays Mermaid SVG generation until the code block is complete, preventing flicker during streaming, while a memoized block cache updates only changed blocks to avoid full re-renders. The component override system lets developers replace any standard HTML element with a custom React component, and the plugin pipeline supports custom rehype and remark plugins for extended transformations.

The renderer provides interactive controls including hover-activated copy buttons and download menus on code blocks, a blinking caret indicator during active streaming, and a confirmation modal for external links. It supports configurable HTML sanitization with allow and deny lists, URL protocol and domain restrictions, image source restrictions, and trusted domain safelisting. Performance optimizations include lazy-loaded syntax highlighters, internal render memoization, and caching of parsed tokens and highlighter instances.

Features

  • Real-Time Streaming Renderers - Transforms incoming markdown text streams into sanitized HTML components with real-time rendering of incomplete blocks.
  • Streaming Block Parsers - Parses markdown into blocks as tokens arrive, handling incomplete fences and math delimiters without waiting for the full document.
  • HTML Element Filters - Controls which HTML elements appear in the output by whitelisting, blacklisting, or applying custom filter functions.
  • Markdown-to-HTML Transpilers - Transforms incoming markdown text into sanitized HTML, handling incomplete blocks and partial content as it arrives.
  • GitHub Flavored - Parses GFM syntax including tables, task lists, strikethrough, autolinks, and footnotes from streaming content.
  • Markdown Renderers - Renders tables, task lists, strikethrough, autolinks, and footnotes from incoming markdown streams.
  • Partial Stream Parsing - Parses incomplete Markdown blocks as they arrive and applies progressive formatting so partial content appears styled immediately.
  • Incomplete Code Block Streaming - Displays partially streamed code blocks gracefully, rendering content before closing backticks arrive.
  • Incomplete Markdown Syntax Handling - Detects unterminated Markdown tokens and completes them automatically to prevent broken rendering during streaming.
  • Mermaid Diagram Renderers - Renders text-based Mermaid diagrams as interactive SVGs with fullscreen, download, and copy controls.
  • Deferred Diagram Renderers - Delays Mermaid SVG generation until the code block is complete, preventing flicker during streaming.
  • Deferred Diagram Rendering - Defers Mermaid rendering until the code block is complete during streaming, preventing flicker and re-rendering on partial content.
  • LaTeX Math Rendering - Renders LaTeX mathematical notation into fast, accessible HTML using KaTeX, supporting both inline and block equations.
  • HTML Content Sanitization - Strips dangerous HTML tags and validates URLs to prevent XSS attacks in rendered markdown output.
  • XSS Protections - Strips dangerous elements and attributes from rendered output using configurable allow or deny lists.
  • Built-in Markdown Plugins - Supports GFM, KaTeX math, raw HTML, and CJK-friendly rendering without extra plugin installations.
  • Markdown Plugin Pipelines - Processes markdown through a configurable chain of unified rehype and remark plugins for extensible transformations.
  • Component Override Systems - Provides a mechanism to replace standard HTML elements with custom React components via configuration.
  • Markdown Renderers - Configures syntax highlighting themes, custom components, and allowed HTML tags for streaming markdown rendering.
  • Markdown Table Rendering - Formats tabular data with column alignment options, producing structured HTML tables from pipe-delimited markdown.
  • Component Overrides - Allows replacing any of the standard HTML elements rendered from markdown with a custom React component.
  • Raw HTML Rendering - Preserves inline HTML tags intact and renders them directly within the markdown output.
  • Syntax Highlighters - Applies Shiki-based syntax highlighting to code blocks with 200+ languages and dual light/dark themes.
  • Lazy-Loaded - Loads syntax highlighting themes and languages on demand, caching each highlighter instance for reuse across code blocks.
  • Shiki - Applies automatic syntax highlighting to code blocks using Shiki with support for 200+ languages and dual themes.
  • Parsed Block Caching - Caches parsed and rendered blocks by content hash, updating only changed blocks to avoid full re-renders.
  • Streaming Caret Indicators - Displays a blinking visual indicator during active streaming to signal that content is still being generated.
  • Interactive Task Lists - Converts checkbox-style markdown lists into clickable todo items that users can check off.
  • Code Block Copy and Download Controls - Provides hover-activated copy buttons and download menus on code blocks for easy content reuse.
  • Code Block Styling - Configures line numbers, start line offset, dual light/dark themes, and responsive styling for code blocks.
  • Markdown Plugin Array Customizations - Allows replacing or extending the default set of processing plugins by supplying a custom plugin array.
  • Incomplete Equation Handling - Detects and closes unterminated block-level math delimiters during streaming for correct partial equation rendering.
  • HTML Allowlists - Permits specific unknown HTML tags in rendered output while stripping all attributes not explicitly listed.
  • Incomplete Code Fence Detection - Provides a hook to check if the current code block is still being streamed, enabling a loading state.
  • Unified Plugin Pipelines - Attaches rehype and remark plugins for custom transformations, security hardening, and extended syntax support.
  • Custom Block Parsing Overrides - Allows overriding how the markdown stream is split into blocks and how each block is rendered by supplying custom parsing and component logic.
  • Streaming State Transitions - Updates rendered output from incomplete to complete states without visual jumps or layout shifts.
  • Custom Component Tags - Accepts a list of allowed custom HTML tags so structured data from AI responses renders as interactive components.
  • Phrase Line Break Preservers - Preserves single newlines within paragraphs as spaces, combining lines into one paragraph unless forced breaks are used.
  • Prose Typography Styling - Applies prebuilt typographic styles to paragraphs, headings, and lists from rendered markdown.
  • Interactive Content Controls - Adds hover-activated copy buttons, download menus, and link-confirmation modals to rendered markdown elements.
  • Token and Highlighter Caches - Caches tokens, lazy-loads syntax highlighters, and skips animation when not needed to reduce processing overhead.
  • Strikethrough Text Decorations - Displays text with a horizontal line through it to indicate deletion or outdated content.
  • Memoized Rendering - Caches rendered output to avoid unnecessary re-renders, eliminating the need for manual memoization wrappers.
  • Feature Toggles - Enables or disables Mermaid diagrams, animation controls, link safety checks, and UI icons through dedicated configuration props.
  • Block-Level Content Caches - Prevents unnecessary re-renders by caching parsed blocks and only updating blocks whose content has changed during streaming.
  • Streaming Content Animations - Imports animation CSS to enable the built-in animated prop for streaming markdown rendering.

سجل النجوم

مخطط تاريخ النجوم لـ vercel/streamdownمخطط تاريخ النجوم لـ vercel/streamdown

بحث بالذكاء الاصطناعي

استكشف المزيد من المستودعات الرائعة

صف ما تحتاجه بلغة بسيطة — وسيقوم الذكاء الاصطناعي بترتيب آلاف المشاريع مفتوحة المصدر المنسقة حسب الصلة.

Start searching with AI

بدائل مفتوحة المصدر لـ Streamdown

مشاريع مفتوحة المصدر مشابهة، مرتبة حسب عدد الميزات المشتركة مع Streamdown.
  • remarkjs/react-markdownالصورة الرمزية لـ remarkjs

    remarkjs/react-markdown

    15,779عرض على GitHub↗

    react-markdown is a React markdown renderer that transforms markdown strings into React elements for display in a user interface. It functions as a plugin-based markdown parser and component library that converts raw text into safe interface elements. The project utilizes a plugin system to extend markdown syntax, allowing support for tables, tasklists, and mathematical notation. It enables custom component mapping, which replaces standard markdown output with specialized components to control the visual styling and behavior of specific content blocks. The renderer supports the processing an

    JavaScriptcommonmarkgfmmarkdown
    عرض على GitHub↗15,779
  • vanessa219/vditorالصورة الرمزية لـ Vanessa219

    Vanessa219/vditor

    11,074عرض على GitHub↗

    Vditor is a browser-based Markdown editor and rendering engine that supports multiple editing interfaces, including a visual rich-text experience, instant rendering, and a traditional side-by-side split-view preview. It serves as an authoring tool for technical documentation and a component for web-based editor integration. The project is distinguished by its support for complex technical content, utilizing specialized rendering for mathematical formulas, flowcharts, sequence diagrams, and mind maps. It also functions as a collaborative document review tool, enabling users to attach anchored

    TypeScriptcommonmarkeditorgfm
    عرض على GitHub↗11,074
  • rexxars/react-markdownالصورة الرمزية لـ rexxars

    rexxars/react-markdown

    15,773عرض على GitHub↗

    react-markdown is a React renderer that converts markdown text into a virtual DOM to safely display formatted content. It functions as a markdown syntax parser and renderer that transforms markdown strings into structural elements, ensuring XSS-safe content delivery. The project allows for the mapping of standard markdown elements to custom React components for specialized styling and behavior. It supports syntax extensions through a plugin system, enabling additional formatting features such as tables, footnotes, and tasklists. The system includes security primitives for HTML and URL saniti

    JavaScript
    عرض على GitHub↗15,773
  • tencent/cherry-markdownالصورة الرمزية لـ Tencent

    Tencent/cherry-markdown

    4,727عرض على GitHub↗

    Cherry Markdown is a web-based Markdown editor and parsing engine that converts markup text into sanitized HTML with a real-time synchronized preview pane. It functions as a rich text interface and WYSIWYG tool, providing a system for transforming markup strings into HTML documents or portable formats. The project distinguishes itself through high-performance rendering and a flexible extensibility model. It uses virtual DOM diffing and partial rendering to maintain responsiveness in large documents, and it allows for the creation of custom parsing rules and specialized HTML components via a p

    JavaScripteditorjavascriptmarkdown
    عرض على GitHub↗4,727
عرض جميع البدائل الـ 30 لـ Streamdown→

الأسئلة الشائعة

ما هي وظيفة vercel/streamdown؟

Streamdown is a streaming markdown renderer for React that transforms incoming markdown text into sanitized HTML in real time, handling incomplete blocks as they arrive. It parses GitHub-Flavored Markdown syntax including tables, task lists, and footnotes, and renders LaTeX math expressions using KaTeX, Mermaid diagrams as interactive SVGs, and code blocks with Shiki-based syntax highlighting supporting over 200 languages with dual light and dark themes. The renderer…

ما هي الميزات الرئيسية لـ vercel/streamdown؟

الميزات الرئيسية لـ vercel/streamdown هي: Real-Time Streaming Renderers, Streaming Block Parsers, HTML Element Filters, Markdown-to-HTML Transpilers, GitHub Flavored, Markdown Renderers, Partial Stream Parsing, Incomplete Code Block Streaming.

ما هي البدائل مفتوحة المصدر لـ vercel/streamdown؟

تشمل البدائل مفتوحة المصدر لـ vercel/streamdown: remarkjs/react-markdown — react-markdown is a React markdown renderer that transforms markdown strings into React elements for display in a user… vanessa219/vditor — Vditor is a browser-based Markdown editor and rendering engine that supports multiple editing interfaces, including a… rexxars/react-markdown — react-markdown is a React renderer that converts markdown text into a virtual DOM to safely display formatted content.… tencent/cherry-markdown — Cherry Markdown is a web-based Markdown editor and parsing engine that converts markup text into sanitized HTML with a… shuding/nextra — Nextra is a documentation framework for Next.js that functions as an MDX static site generator. It enables the… sindresorhus/github-markdown-css — The minimal amount of CSS to replicate the GitHub Markdown style.