qmetrics.net

Streamdown

Streaming Markdown renderer for AI chat UIs

Streamdown screenshot

Streamdown is a React-oriented package meant as a drop-in stand-in for react-markdown when model output arrives token by token.

Overview

Streamdown renders Markdown that arrives incrementally from AI models, where ordinary Markdown parsers struggle with incomplete or unterminated blocks. It targets the streaming case rather than static documents.

It can replace react-markdown in existing setups and also powers the AI Elements Message component, or be installed alone for custom streaming UIs. Parsing handles unfinished blocks with help from remend, and supports GitHub Flavored Markdown, LaTeX via KaTeX, Mermaid diagrams, and syntax highlighting with Shiki.

Security-oriented hardening is built in through rehype-harden, and rendering is memoized for efficient updates as new chunks arrive. Tailwind and shadcn-style CSS variables are expected for correct styling unless you already use that design setup.

Optional plugins extend code, CJK, math, and Mermaid behavior, and you can supply a fallbackComponent for tags outside the built-in map while overriding specific tags through a components map.

Key features

  • Incomplete Markdown while streaming
  • GitHub Flavored Markdown
  • KaTeX math rendering
  • Mermaid diagram blocks
  • Shiki code highlighting
  • Security-focused HTML hardening
  • Memoized render updates
  • Custom tag fallback component

Use cases

  • AI chat message rendering
  • Streaming assistant interfaces
  • Token-by-token Markdown display
  • React apps using the AI SDK

Tags

Similar software

Gradio

Python toolkit for machine learning web demos and apps

Gradio is a Python package for building demos or web applications around ML models, APIs, or arbitrary Python functions, with optional link sharing and no JavaScript required.

★ 44.2k⟳ 4 days agoApache-2.0

A2A Protocol

Standard protocol for opaque AI agent communication and collaboration

Agent2Agent (A2A) is a protocol that lets agentic applications on different frameworks and servers discover each other, negotiate interaction, and collaborate securely without sharing internal state.

★ 26.7k⟳ 2 days agoApache-2.0

AG-UI Overview

Event-based protocol linking AI agents to user-facing applications

AG-UI standardizes bi-directional event streams between agent backends and frontends so chat, tools, shared state, and human approvals work consistently across frameworks and clients.

★ 21.9k⟳ 4 days agoMIT

A2UI

Generative UI framework for agent-streamed native interfaces

A2UI lets agents send layout data over a streaming protocol while client apps draw the UI with native widgets in major web and mobile frameworks.

★ 18.9k⟳ 2 days agoApache-2.0

assistant-ui

TypeScript React primitives and runtimes for production AI chat UIs

React library for assembling ChatGPT-style chat with streaming, tools, attachments, and pluggable backends via the Vercel AI SDK, LangGraph, and other adapters.

★ 13.5k⟳ yesterdayMIT

II ElevenLabs UI

React UI components for audio and agent applications

ElevenLabs UI is a shadcn/ui-based component library for agent and audio interfaces in Next.js apps. A CLI adds orbs, waveforms, voice agents, players, and related widgets to your project.

★ 2.5k⟳ 11 days agoMIT