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.
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
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
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.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.