
Description
markstream-vue is a streaming Markdown renderer for Vue 3, Nuxt and VitePress, built for AI chat interfaces. Language model answers arrive a few tokens at a time, so the Markdown is often incomplete while the user reads it. markstream-vue renders partial Markdown in stable states, handles long responses, and renders Mermaid diagrams, KaTeX math and streaming code blocks as the text arrives. It is meant for AI chat, LLM token streams, server-sent events and WebSocket output, and it works on mobile WebViews and keeps component rendering safe. The package is installed with pnpm add markstream-vue. Version 2 is on npm's latest tag, and version 1 is kept on the legacy tag for projects that need to stay on the older line. An optional stream-diffs peer adds enhanced code and diff blocks. The project is part of a wider family that includes renderers for React, Svelte, Angular, Octane and Vue 2, plus a framework-agnostic parser and core package. The authors recommend marked, markdown-it or react-markdown for finished Markdown documents, and markstream when the Markdown is still changing while it is shown. The source is public on GitHub.…
Highlights
- Streaming Markdown for AI chat interfaces
- Mermaid diagrams and KaTeX math
- Renders incomplete Markdown in stable states
- Streaming code blocks and diffs
- Renderers for Vue, React, Svelte and Angular
Ratings & Reviews
No ratings yet
Be the first to rate markstream-vue.
People also visit
markstream-vue FAQ
What is markstream-vue?
It is a Vue 3, Nuxt and VitePress component for rendering Markdown that is still streaming in from a language model.
How do I install it?
Run pnpm add markstream-vue. Add the optional stream-diffs peer only when you need enhanced code and diff blocks.
Should I use it for finished documents?
No. The project suggests marked, markdown-it or react-markdown for finished documents, and markstream when the Markdown changes while the user reads it.
Does it support diagrams and math?
Yes. It renders Mermaid diagrams and KaTeX math, including while the content is streaming.
Which version should I use?
Version 2 is stable on npm's latest tag. Version 1 remains on the legacy tag, and the project has a migration guide from 1.x to 2.0.
Is it free?
Yes. The source is open on GitHub under Simon-He95.
What are the best markstream-vue alternatives?
Popular alternatives to markstream-vue include react-markdown, vue3-marquee and react-markdown. See all markstream-vue alternatives












