Use cases
Markstream is designed for scenarios where Markdown arrives incrementally. Here are the most common use cases.
AI chat and LLM streaming
- AI chat streaming Markdown — render LLM token streams in Vue, React, Svelte, and Angular
- SSE and WebSocket streaming — handle Server-Sent Events and WebSocket Markdown output
Progressive heavy blocks
- Streaming Mermaid and KaTeX — render diagrams and math incrementally during streaming
Performance at scale
- Long AI responses — virtualized rendering for 50 KB+ AI output
Quick reference by framework
| Framework | Package | AI chat | SSE/WS | Mermaid/KaTeX | Long docs |
|---|---|---|---|---|---|
| Vue 3 / Nuxt | markstream-vue | ✅ | ✅ | ✅ | ✅ |
| React / Next.js | markstream-react | ✅ | ✅ | ✅ | ✅ |
| Svelte 5 | markstream-svelte | ✅ | ✅ | ✅ | ✅ |
| Angular | markstream-angular | ✅ | ✅ | ✅ | ✅ |
| Vue 2 | markstream-vue2 | ✅ | ✅ | ✅ | Partial |