gfm-render

Reviewed at commit a209ad5

Draws GitHub alerts, task lists, strikethrough and Mermaid diagrams in Claude's replies, as box art in the terminal and SVG on the desktop.

Made by
briangtn
What we checked

Redraws Claude's replies on screen: GitHub-style alert boxes, checkbox task lists, strikethrough and Mermaid diagrams (as text art in the terminal, as an image elsewhere). On the desktop it runs a bundled local node script to draw each diagram. At session start it also adds a short note telling Claude it can write these formats, unless you switch that off. It makes no network calls.

Review details

Static review of the source at the pinned commit; not run. Registers one ui.render handler for AssistantMessage (reads the reply text, splits out alert and mermaid blocks, rewrites task lists and ~~strike~~ for the terminal surface only) and a SessionStart shell hook that cats GFM.md into Claude's context unless the promptHint option is false. For non-terminal surfaces it runs 'node renderer/svg.mjs' through $.process.run with the diagram source on stdin and a 10 second timeout, caches the SVG per source, strips the web-font @import and injects a light/dark style block. svg.mjs and the vendored beautiful-mermaid.mjs (1.5 MB, minified, built from beautiful-mermaid 1.1.3 plus elkjs by scripts/build-vendor.sh) were not read line by line; grep found no child_process, fs, fetch, XMLHttpRequest, WebSocket, eval or Function use, only the standard elkjs worker shim and a Google Fonts URL inside the SVG output template, which themeSvg removes. hooks/vendor/mermaid-ascii.js (83 KB, minified) is imported in-process; the bundle copy was truncated, so I checked the repository file at the same commit with the same greps and found no network, process or file APIs besides a read of process.stdout/env for color detection. A per-diagram show-code toggle is kept in plugin state. No prompts, tool calls or files are read.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: no
  • Shows something on screen: yes
Hooked events
Screenshot of gfm-render

GitHub Flavored Markdown in the transcript: alerts (> [!NOTE]), task lists, strikethrough and Mermaid diagrams

Made this mod? Add a badge to your README

modsforClaude badge for gfm-render

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/gfm-render.svg)](https://modsforclaude.com/mods/gfm-render/)

← All mods