Markstream
Make streaming AI Markdown look finished before it is.
Markstream is a free, open-source renderer for Markdown that arrives token by token in AI chat interfaces. It keeps incomplete Markdown stable while streaming, then progressively renders code highlighting, Mermaid diagrams, KaTeX math, and other rich blocks without the usual broken syntax or jumpy layout.
I built it because ordinary Markdown renderers assume a finished document, while AI responses are constantly incomplete. The delightful part is watching a half-written response settle smoothly into polished content as it arrives. It works with Vue/Nuxt, React/Next.js, Svelte, Angular, and Vue 2, and the public playground runs without an account.
Disclosure: I am the maintainer of Markstream.
Wave goodbye to awkward half-rendered AI markdown! This tool turns messy, streaming AI text into sleek, polished markdown in real time, making your chat and code displays look flawless before theyβre even finished.
Key features:
- π₯ Supports Vue 3, React, Svelte, Angular, and more
- β‘ Handles streaming and incomplete Markdown like a pro
- π― Renders Mermaid diagrams and KaTeX math on the fly
- π Perfect for long AI responses and live token streams
This summary was generated by GitHub Copilot based on the project README.