Mermaid is a diagramming and charting tool. It renders Markdown-inspired text definitions into diagrams.
Since 2022, GitHub renders Mermaid diagrams in Markdown files – a great way to document your architecture. For example, this text:
```mermaid
graph LR;
Service--Webhook-->APIGateway[API Gateway];
subgraph "AWS"
APIGateway-->Lambda[Lambda];
Lambda-->DynamoDB[(DynamoDB)];
end
```
Renders as:
Here is a list of the diagrams and charts that can be defined with Mermaid:
There is also a command line tool
to convert .mmd
files to .svg
or .png
:
mmdc -i input.mmd -o output.svg
Check out a VSCode extension that adds Mermaid support to the built-in Markdown preview.