Mermaid to Unicode box art (grok-mermaid)

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers can now render Mermaid diagrams as plain-text Unicode box art in the browser, making diagrams usable anywhere text-only output works, terminals, diffs, and chat.

Read this as

Simon Willison found a piece of open-source code called mermaid.rs inside xAI's newly released Grok CLI coding agent. That code draws flowcharts as plain text characters in a terminal. He converted it to WebAssembly, a technology that runs such code in a web browser, so anyone can use it at his tools site. People who write documentation or chat with AI assistants can now paste diagrams as plain text instead of images.

This is a small developer-experience story, not a business event. Willison ported xAI's Rust-based terminal diagram renderer to a free, public web tool using WebAssembly. The competitive angle is marginal but real: it signals xAI's Grok CLI ships polished, reusable internals that the community is already extracting value from. No costs, revenue or strategic risks are discussed.

Willison found mermaid.rs, a self-contained Rust terminal renderer for Mermaid diagrams, in xAI's open-sourced Grok CLI repository (xai-grok-markdown crate). He compiled it to WebAssembly via a prompt run in Claude Code for web using the Fable 5 model, yielding the tool 'grok-mermaid' on tools.simonwillison.net. The linked GitHub PR shows the exact prompt; no benchmark numbers or limitations are given.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Simon Willison Grok CLI xAI mermaid.rs WebAssembly Claude Code Fable 5

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.