Introducing Streamdown: Open source Markdown for AI streaming

1 min read

Streamdown is a new open source, drop-in Markdown renderer built for AI streaming. It powers the AI Elements Response component, but can also be used standalone to give developers a fully composable, independently managed option with npm i streamdown.

Streamdown is designed to handle unterminated chunks, interactive code blocks, math, and other cases that are unreliable with existing Markdown packages.

It's available now, and ships with:

  • Tailwind typography styles: Preconfigured classes for headings, lists, and code blocks

  • GitHub Flavored Markdown: Tables, task lists, and other GFM features

  • Interactive code blocks: Shiki highlighting with built-in copy button

  • Math support: LaTeX expressions via remark-math and KaTeX

  • Graceful chunk handling: Proper formatting for unterminated Markdown chunks

  • Security hardening: Safe handling of untrusted content with restricted images and links

You can get started with start with AI Elements:

npx ai-elements@latest add response

Or as a standalone package:

npm i streamdown

Read the docs and upgrade your AI-powered streaming.