Back to timeline

Thu, July 1608:33Open SourceModel releasesAPI & pricingAI coding

Grok Open-Sources Mermaid Terminal Renderer, Ported to WebAssembly

Decision Brief

What changedxAI's Grok CLI includes a Rust-based Mermaid terminal renderer, now ported to the browser via WebAssembly by Simon Willison.
Why it mattersDevelopers can render Mermaid diagrams in-browser without Rust setup, lowering barriers for terminal chart tools.
Who should careOpen-source model users, AI coding tool users
Affected stackClaude CodexAI
Source confidenceMedium · Reliable media or first-hand reporting

Simon Willison discovered xai-grok-markdown/src/mermaid.rs in Grok CLI's open-source code, a self-contained terminal Mermaid renderer written in Rust. He ported it to the browser via WebAssembly, running it in Claude Code for Web (Fable 5) to create an online tool. The tool auto-renders Mermaid syntax into Unicode box-drawing flowcharts, with controls for max width, copy as text, and copy link. An example shows an authentication flow from "Request received" to "Authenticated?" and "Rate limit OK?" to "200 OK", supporting arrow types (solid, dashed, bold) and node shapes (diamond, rectangle, rounded rectangle). For developers needing quick Mermaid diagram viewing in terminal or web, this Wasm version eliminates local Rust or Grok CLI installation, usable directly in browser—ideal for docs or CI output.

Summary basis: official / RSS sourceCompiled from the source scope noted above; the original remains authoritative.

Sources

  • Simon Willison:Blog

    Hands-on notes on LLM tools, local models, and practical AI engineering.

  • Simon Willison:Blog

Related intel

留言

登入后即可留言,和其他 builder 交换实测心得。

还没有留言,抢头香。