termaid is an open source Python package that renders
Mermaid diagram syntax as Unicode text art.
Run it directly with uvx termaid or install with pip install termaid
to use it as a Python library.
This page runs termaid directly in your browser using Pyodide (Python compiled to WebAssembly). Click an example to see a pre-rendered preview, or hit Render to run your own Mermaid code live. The first render may take a few seconds to load the Python runtime.
Output is designed for monospace fonts.
Supports 18 of Mermaid's diagram types: flowcharts, sequence diagrams, class diagrams, ER diagrams, state diagrams, block diagrams, git graphs, gantt charts, architecture diagrams, pie charts, treemaps, mindmaps, XY charts, user journeys, packet diagrams, timelines, kanban boards, and quadrant charts.