Beta

Stream Markdown and text

@pierre/words is an incredibly fast and lightweight streaming Markdown renderer written in WebAssembly Text. Renders directly to HTML, supports GitHub Flavored Markdown, and pairs with @pierre/highlights for syntax highlighting. Includes incremental updates, HTML render hooks, and optional token fades. The base React renderer is 65% smaller than Streamdown in our gzip benchmark.

Explore the docs

Markdown rendering benchmarks

From everyday AI replies to full specifications, compare rendering speed, streaming work, memory use, and download size from Markdown to HTML and React.

Measures
Document
Words
449.2MiB/s
md4x (NAPI)
234.9MiB/s
md4x (Wasm)
185.0MiB/s
markdown-it
26.1MiB/s

Streaming in the browser

The same five documents, streamed through React in Chromium.

Streaming work

Total time for every update to reach the DOM, before paint, while the whole document streams in. Lower is better.


Document
Rendering
Words
11.6ms
Streamdown
70.2ms

Memory after streaming

JavaScript memory kept after the full document has rendered. Lower is better.


AI code review · 5.4 KiB
Words
0.5MB
Streamdown
11MB

Browser download

JavaScript transferred to load the renderer and selected languages, compressed with gzip. Lower is better.


React renderer · gzip
Words
253.6KB
Streamdown
1,057.8KB
How we measure

HTML and React benchmarks

Five documents cover short Markdown, AI responses, and technical specifications. HTML throughput measures input MiB per second. React replays deliver chunks of up to 256 UTF-16 code units in JSDOM, without highlighting or animations. This measures parsing and DOM work; it does not include browser layout or paint. Memory is median peak process growth through import and rendering, measured in five fresh processes per engine and document.

November 16, 2026 · Node v24.11.0 · Apple M4 Pro · 48 GiB RAM · commit f318c354. md4x 0.0.29, markdown-it 15.0.0, React 19.2.7, Streamdown 2.7.1, JSDOM 26.1.0.

Browser streaming and memory

The browser uses the same five documents, delivered in chunks of 256 UTF-16 code units. Both libraries use their native streaming paths, with the next chunk 40 ms after each commit. Streaming work is the sum of all update times, from the state update until both renderers have written the DOM. Results are the median of 3 fresh-browser runs, after warming startup and every grammar the document uses, in a 1280 × 960 viewport. Auto-scrolling, code controls, and line numbers are off.

Memory is settled V8 heap growth after forced garbage collection; it excludes native DOM, Wasm, and graphics memory. Words fades delivered chunks, including code; Streamdown fades prose words.

November 16, 2026 · Apple M4 Pro · 48 GiB RAM · Chromium 134.0.6998.35 · Bun 1.4.0 · React 19.2.7 · Streamdown 2.7.1 · commit f318c354 with uncommitted changes.

Browser download

Minified JavaScript, gzipped per file, with React external. The base renderer counts initial static imports; the language total counts every chunk loaded for the same 148 languages and GitHub light/dark themes. Words includes all 152 built-in languages. Streamdown loads languages on demand, including required embedded grammars. Streamdown downloads less than this total on pages that use fewer languages. CSS is separate: 1.2 KB for Words and 0.4 KB for Streamdown.

November 16, 2026 · Bun 1.4.0 · commit f318c354 with uncommitted changes.

Explore or reproduce the results

The benchmark source includes setup instructions, commands, and the Markdown documents used here. Raw results include frame timings for every run.

A softer arrival

Fade in new text with animated. Existing text keeps its place, and reduced-motion preferences are respected. Adjust the duration and replay to find the right pace.

Speed
PreviewReady

A little room for better ideas

Good tools get out of your way. Great tools make you want to keep going.

This response arrives a few characters at a time. Watch emphasis, links, and code find their shape.

  • Start with an idea
  • Add a little more detail
  • Keep the conversation going

The best part of a good tool is what you make with it.

376 / 376 charactersEdit the source or replay the response.
Use it in React

Built for the conversation

Stream a response without waiting for the final token. Emphasis, links, lists, and late references settle into place as text arrives.

PreviewReady

A little room for better ideas

Good tools get out of your way. Great tools make you want to keep going.

This response arrives a few characters at a time. Watch emphasis, links, and code find their shape.

  • Start with an idea
  • Add a little more detail
  • Keep the conversation going

The best part of a good tool is what you make with it.

376 / 376 charactersEdit the source or replay the response.
Use it in React