Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By natsukiumv0.1.0Apache-2.0In 2 marketplaces
Draws Mermaid, Graphviz, D2 and SVG diagrams plus LaTeX math inline in kitty-graphics terminals, under Claude's reply. Needs mods enabled and external renderers such as resvg on PATH; the math renderer is bundled.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Scalescale
Pixel density of the rendered picture; above 1 needs resvg on PATH, otherwise mmdr renders at 1x
number1–4
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; writes files; reads files; reads environment variables (COLORFGBG, TMPDIR); reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
diagrams, terminal-images, kitty-graphics, graphviz, d2, math-rendering, claude-code, mod ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Themetheme
Diagram theme; auto follows Claude Code's light or dark theme. modern is mmdr-only, and mmdc draws it as default
One of auto, dark, default, forest, neutral, modern
stringdefault auto
Max rowsmax_rows
Tallest a picture may be, in cells
number1–255default 30
Renderersrenderers
Renderer ids in preference order, comma-separated: mmdr, mmdc, pele (mermaid), dot, d2, svg, mathjax. A lang with any of its renderers listed uses only those; others keep the default order
stringdefault
Backgroundbackground
Diagram background color; transparent lets the terminal background show through
stringdefault transparent
Cell aspectcell_aspect
Assumed height-to-width ratio of one terminal cell
number0.5–4default 2.1
Max columnsmax_columns
Widest a picture may be, in cells
number1–255default 120
Tool result imagestool_images
Draw images found in tool results, such as Read on an image file or a browser screenshot
booleandefault true
Cell width (px)cell_width_px
Assumed width of one terminal cell, in the CSS pixels diagrams are laid out in
numbermin 1default 8
Tool image max rowstool_image_max_rows
Tallest an image from a tool result may be, in cells; kept small so screenshots do not crowd out the conversation
number1–255default 12
A Claude Code mod that draws diagrams, LaTeX math, and tool-result images inline in the terminal transcript, using the kitty graphics protocol.

mermaid, dot (or graphviz), d2, or svg in Claude's
reply is rendered and drawn under the reply. The code stays visible above the picture.$$ … $$, \[ … \], or a math, latex, or tex code block, is
typeset with MathJax. Inline $…$ stays text, since a picture cannot
sit inside a line, and a latex block holding a whole document (\documentclass) stays code.Read on a PNG, JPEG, GIF, WebP, or SVG file, or a screenshot an MCP
tool returns, is drawn under the tool's row, where Claude Code otherwise shows only a size line;
an SVG read only in part is left alone. In a collapsed tool group they are thumbnails; ctrl+o
unfolds the group and draws them full size. A PNG, JPEG, GIF, WebP, or SVG Claude sends to another
device with SendUserFile is drawn under its attachment line too, so it is on screen when you
come back to the terminal. It is read from disk when the row is first drawn; overwriting the file
later leaves that picture as it was.A picture the size caps would shrink below 60% of its natural size grows up to the terminal's
height, and one still smaller says so under it, such as shown at 43% · /figures to enlarge.
/figures opens a pane with the session's pictures, starting on the newest one drawn too small to
read, or else the newest. In fullscreen mode, select part of a diagram's source or a tool row with
the mouse before running it to start on that picture instead. p and n step through them, o
opens the current one with open (macOS) or xdg-open, and Escape or your next prompt closes the
pane.

The plugin also ships a diagrams skill, which tells Claude which languages are drawn and how to
write them so they render.
Each rendered PNG is cached under $TMPDIR/claude-figures/, named by a hash of the source and the
theme, so a resumed session draws its pictures again without re-rendering. Files older than seven
days are removed when a session starts.
Claude Code 2.1.288 or later, with mods (function-hook plugins) enabled, in a terminal it treats as
kitty-graphics capable; see Terminal support. Each kind of picture also needs
programs on PATH:
| Picture | Needs |
|---|---|
mermaid | mmdr, mmdc, or resvg for the bundled pele; resvg recommended |
dot, graphviz | Graphviz's dot and resvg |
d2 | d2 and resvg |
svg, math | resvg |
| Tool images other than PNG | magick (ImageMagick) or sips (built into macOS) |
7-day copy clicks
npx claudepluginhub natsukium/claude-code-figures-plugin --plugin figuresPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.