Mermaid to ASCII art (mermaid-ascii)

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

Why it matters

Developers who render Mermaid diagrams in terminals or plain-text contexts now have a second, color-capable WebAssembly-compiled option, but impact beyond that niche is minimal.

Read this as

Simon Willison built a web tool called mermaid-ascii that converts Mermaid diagrams, a way of drawing flowcharts using plain text code, into ASCII art, the diagrams made of text characters you see in terminals. He previously compiled a Rust implementation using the Grok Build model, then had Claude Fable 5 compile an older Go library by AlexanderGrooff to WebAssembly for comparison. This Go-based version adds color support, which the screenshot shows as green, yellow and red boxes in a Build-Test-Deploy flowchart. It matters mainly to people who document systems in text-only environments.

This is a small developer-convenience release, not a market event: Simon Willison compiled a Go library, AlexanderGrooff's mermaid-ascii, to WebAssembly using the Claude Fable 5 model, adding to his earlier Rust-based tool built with Grok Build. The payoff is ASCII diagram rendering with color support in the browser. No costs, competitive stakes or adoption figures are discussed, so the business relevance is limited to teams needing text-renderable diagrams.

Willison compiled AlexanderGrooff's mermaid-ascii Go library to WebAssembly using Claude Fable 5, following his earlier WebAssembly port of a Rust implementation generated with Grok Build. The hosted tool at tools.simonwillison.net exposes configurable padding (X: 5, Y: 5, box padding: 1), an 'ASCII only' toggle, and a classDef-based color pipeline mapping classes to hex colors like #3fb950. It supports flowcharts, subgraphs, sequence diagrams, alt fragments and parallel blocks; no performance comparisons between the two ports are provided.

Read the original

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

Key terms

mermaid-ascii Claude Fable 5 Grok Build WebAssembly Mermaid Go

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.