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.
Claude loads one when your task matches it, or you run it by name.
A Claude Code plugin that renders Mermaid diagrams as compact Unicode box-drawing art inside a titled rounded frame, so a diagram is readable directly in the terminal.
Add this repository as a plugin marketplace, then install the plugin from it:
/plugin marketplace add ejklock/claude-mermaid-terminal
/plugin install mermaid-terminal@mermaid-terminal
To try a local checkout instead, pass its path to /plugin marketplace add.
The plugin needs only Node.js 20 or later. There is no npm install step at
run time: dist/render.mjs is a self-contained bundle.
Ask Claude to show or render a Mermaid diagram, from a file or from source
you paste in the chat; the mermaid skill picks this up and pastes the
rendered frame back into the reply. To run the renderer directly:
node dist/render.mjs diagram.mmd
node dist/render.mjs notes.md # renders every ```mermaid fence
cat diagram.mmd | node dist/render.mjs
node dist/render.mjs - # same as above, explicit stdin
A .md path renders every mermaid fence it contains, in order, titled
<type> #<index>. Any other path (or stdin) is treated as one diagram.
With no path and stdin on a terminal, the renderer prints usage to stderr
and exits 2 instead of waiting for input.
Fences follow CommonMark:
``` or ~~~ (three or more), on its own line, with
at most 3 spaces of indent.mermaid, in any case. So
```mermaid title="x" counts; ```mermaidjs does not.````mermaid fence can contain ```.````markdown) is documentation and is not rendered.A .md file with no mermaid fences prints no mermaid block found and
exits 1. A .md file with a mix of good and bad blocks still prints the
good ones, prints one block #<index>: <cause> line per bad block, and
exits 1. A mermaid fence with no closer before the end of the file prints
block #<index>: unterminated mermaid fence, renders nothing after it, and
exits 1.
| Flag | Effect |
|---|---|
--ascii | ASCII glyphs for the frame and the diagram (+ - |); label text is kept as written. |
--spacious | The renderer's default spacing instead of the compact preset. |
--no-frame | The tidied diagram with no border. On a .md file, a <type> #<index> header line precedes each block. |
--help | Usage text, exits 0. |
An unrecognized flag prints usage to stderr and exits 2.
flowchart / graph, sequenceDiagram, stateDiagram / stateDiagram-v2,
classDiagram, erDiagram. An unsupported type (for example pie or
gantt) prints one line naming the problem and exits 1.
These are properties of the bundled beautiful-mermaid engine, not of this
plugin's framing:
pie, gantt, journey, mindmap, and others
outside the supported list) fail with an Invalid mermaid header message
instead of rendering.flowchart LR a diamond decision node can leave a stray ├ character
floating next to its right border, disconnected from the branch line it
belongs to. This is an upstream rendering artifact, not a frame alignment
bug: every frame line still measures to the same display width.A --> with no target, does not
raise an error. The renderer silently drops the incomplete edge and draws
the rest of the diagram, so a typo can render without any indication that
part of the diagram is missing.A-->B, A--> B or A-.->B,
renders as a single node (for example A--) and still exits 0. Write
arrows with spaces: A --> B.--ascii changes only the glyphs the renderer draws. Label text is kept
as written, so a label with CJK characters or emoji still prints them.MIT. See LICENSE. This plugin bundles beautiful-mermaid (MIT) as its
rendering engine inside dist/render.mjs.
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.
npx claudepluginhub ejklock/claude-mermaid-terminal --plugin mermaid-terminalPlugins from other owners that cover similar ground