Diagram Lens

Render diagram code blocks on GitHub — inline, instantly

Diagram Lens is a browser extension for Chrome and Firefox that automatically renders diagram code blocks on GitHub pages as inline SVG images, with a one-click toggle to switch back to the source code at any time.

Supported Formats

17 formats across 12 independent toggle switches:

FormatCode fence identifiers
Graphviz / DOTdot, graphviz, viz
PlantUMLplantuml, puml, uml, wsd
Mermaidmermaid
Excalidrawexcalidraw
D2d2
SvgBobsvgbob
Ditaaditaa
BlockDiag familyblockdiag, seqdiag, actdiag, nwdiag, rackdiag, packetdiag
BPMNbpmn
WaveDromwavedrom
Vega / Vega-Litevega, vega-lite
Erderd

Where It Works on GitHub

Key Features

Availability

Coming soon to the Chrome Web Store and Firefox Add-ons.

Support

If Diagram Lens saves you time, consider supporting development with a coffee donation. A privacy policy and support contact are also available.