Simon Willison has compiled the Rust-based Mermaid diagram renderer from the open-sourced Grok CLI into a WebAssembly tool. This allows users to render Mermaid diagrams directly in the browser without needing a server-side environment.

The resulting tool provides a flowchart editor with controls for output width and options to copy the result as text or a link.

This implementation demonstrates how terminal rendering code from the Grok CLI can be repurposed for web-based visualization.