r/Frontend • u/Awkward-Let-4628 • 21h ago
flowdown: streaming Markdown for AI agents. On average 17× faster than popular React renderers, 37 KB, zero dependencies
I built flowdown to render what agents and chat models write, while they're still writing it.
- Fast while streaming. Each token re-parses only the last block, so cost stays linear. A 100k-character reply streams in 0.15 s; the next fastest renderer takes 2.4 s.
- No flicker. Half-written bold, links, code fences and tables never show raw syntax.
- Light. One package, no dependencies, 37 KB gzipped. Streamdown is 155 KB and installs 118 packages.
- Made for agent output. Steps, tabs, callouts, file trees, diffs, and code highlighted line by line as it's written.
- Works everywhere. React, plain HTML, DOM, a web component, a terminal for CLI agents, plus a Rust crate.
- Correct. Passes every CommonMark and GFM spec example.
"17× on average" is the geometric mean across 6 kinds of reply and 5 renderers (react-markdown, Streamdown, markdown-to-jsx, markstream, marked-react). Against the fastest one for each kind it's 3.9×. Every number comes from scripts in the repo (Bun + happy-dom, Apple M5).
GitHub: https://github.com/localixai/flowdown
Docs: https://flowdown.localix.ai
MIT. Feedback welcome, especially replies it renders badly.