When your product owner asks for an architecture Diagram on your project choosing the right software can easily lead to decision paralysis. Mermaid diagrams give you a convenient text based editing format and can easily be tweaked, changed, and maintained without using proprietary software.
Mermaid is a Javascript, node based charting tool inspired by markdown. It's supported by a number of Markdown parsing engines like GitHub, and TinaCMS.
flowchart LRA[Add Item to Cart] --> B[Go to Checkout]B --> C[Enter Payment Details]C --> D[Process Payment]D --> E[Order Confirmed]
Figure: Mermaid syntax for an online checkout flow
Visual tools like Draw.io or Excalidraw are excellent for white boarding and quick brainstorming. However, they start to fall down when diagrams need to be:
See Do you have an architecture diagram? for more information on tools for creating architecture diagrams.
Some other choices you have:
❌ Figure: Bad example - Images embeds in GitHub issues are difficult to edit
✅ Figure: Good example - Mermaid diagrams are easier to edit for contributors
Because mermaid diagrams are text based, they can quickly be churned by AI tools like ChatGPT and Claude Desktop, making it quicker and easier to draft changes.