# Mermaid

[BASE product page](<https://base.akulich.dev/en/library/mermaid/>) · [Resource](<https://mermaid.js.org/>)

ID: mermaid · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

Builds flowcharts, sequence, ER, state, and other diagrams from text descriptions\. Diagrams can be kept beside code and changed with documentation or rendered in a web application\.

## Type

Diagrams from text

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/mermaid/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/mermaid/#resource-access>)

The MIT renderer and local diagram creation are free, including commercial projects\.

## [Paid features and costs](<https://base.akulich.dev/en/library/mermaid/#resource-access>)

Paid external editors and hosted Mermaid services are separate products\.

## [Access and limitations](<https://base.akulich.dev/en/library/mermaid/#resource-access>)

The MIT renderer and local diagram creation are free, including commercial projects\. Paid external editors and hosted Mermaid services are separate products\.

## [Use cases](<https://base.akulich.dev/en/library/mermaid/#resource-tasks>)

- Describe architecture and API call sequences
- Maintain a database diagram alongside the project

## Tech stack

- JavaScript
- SVG

## Category IDs

- graphics
- knowledge

## Subcategory IDs

- graphics\.svg
- knowledge\.boards

## Tags

- Diagrams
- Markdown
- SVG
- JavaScript

## [Selection purpose](<https://base.akulich.dev/en/library/mermaid/#resource-selection>)

Describe architecture and API call sequences

## [Choose this when](<https://base.akulich.dev/en/library/mermaid/#resource-selection>)

- Describe architecture and API call sequences
- Maintain a database diagram alongside the project

## [Consider alternatives when](<https://base.akulich.dev/en/library/mermaid/#resource-selection>)

- When choosing for this topic, compare Mermaid with Excalidraw\. A candidate to compare under the topic: Boards and diagrams\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.
- When choosing for this topic, compare Mermaid with tldraw\. A candidate to compare under the topic: Boards and diagrams\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.

## [Requirements](<https://base.akulich.dev/en/library/mermaid/#resource-selection>)

- Set securityLevel when embedding diagrams, taking the text's source into account\.

## [Limitations](<https://base.akulich.dev/en/library/mermaid/#resource-selection>)

- Costs and limits of free use: Paid external editors and hosted Mermaid services are separate products\.
- Terms of use: MIT\.
- Switching from strict to loose/antiscript changes the HTML and clicks allowed; sandbox may limit interactivity\.

## [Questions before use](<https://base.akulich.dev/en/library/mermaid/#resource-faq>)

### What can you use for free in Mermaid?

The MIT renderer and local diagram creation are free, including commercial projects\.

### What additional costs might arise with Mermaid?

Paid external editors and hosted Mermaid services are separate products\.

### What terms of use matter for Mermaid?

MIT\.

### Which environment can you use Mermaid in?

Tech stack: JavaScript, SVG\.

### How do you get started with Mermaid?

Describe a minimal diagram in text and render it\. Compare link directions and names with the actual architecture\. Save the diagram alongside the documentation and update it when the solution changes\.

### What should you consider when choosing Mermaid?

An agent can easily generate diagram text, but connections and labels need human review\. Use secure renderer settings for user input; diagram\-type support depends on the version\.

### How do Mermaid securityLevel settings differ when rendering other people's diagrams?

strict is the default: HTML tags in text are encoded, and click functionality is disabled\. loose allows HTML and clicks; antiscript removes script elements while retaining HTML and clicks\. sandbox renders in a sandboxed iframe and restricts interactive features, including scripts/popups/links\. Choose a mode based on your trust in the diagram source\.

## Related resources selected by editors

- det\-excalidraw: A candidate to compare under the topic: Boards and diagrams\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.
- det\-tldraw: A candidate to compare under the topic: Boards and diagrams\. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together\.

## Sources for the selection guide

- [https://github\.com/mermaid\-js/mermaid](<https://github.com/mermaid-js/mermaid>)
- [https://mermaid\.js\.org/](<https://mermaid.js.org/>)
- [https://github\.com/mermaid\-js/mermaid/blob/develop/LICENSE](<https://github.com/mermaid-js/mermaid/blob/develop/LICENSE>)
- [https://raw\.githubusercontent\.com/mermaid\-js/mermaid/HEAD/README\.md](<https://raw.githubusercontent.com/mermaid-js/mermaid/HEAD/README.md>)
- [https://mermaid\.js\.org/config/schema\-docs/config\-properties\-securitylevel\.html](<https://mermaid.js.org/config/schema-docs/config-properties-securitylevel.html>)
- [https://raw\.githubusercontent\.com/mermaid\-js/mermaid/HEAD/LICENSE](<https://raw.githubusercontent.com/mermaid-js/mermaid/HEAD/LICENSE>)

## [Possible workflow](<https://base.akulich.dev/en/library/mermaid/#resource-scenario>)

Example workflow with Mermaid: Describe architecture and API call sequences\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- One process or set of components, and verified relationships between them\.
- Labels for participants, states, or entities, and an appropriate diagram type\.

## Steps

1. Describe a minimal diagram in text and render it\.
2. Compare link directions and names with the actual architecture\.
3. Save the diagram alongside the documentation and update it when the solution changes\.

## Check your result

- The diagram contains no invented relationships; its type and syntax are supported by the chosen version\.
- Renderer settings are safe for user input; the diagram is readable at its actual size\.

## [License](<https://base.akulich.dev/en/library/mermaid/#resource-license>)

MIT\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## Related resource IDs

- det\-excalidraw
- det\-tldraw

## [Usage details](<https://base.akulich.dev/en/library/mermaid/#resource-notes>)

An agent can easily generate diagram text, but connections and labels need human review\. Use secure renderer settings for user input; diagram\-type support depends on the version\.

## [Sources](<https://base.akulich.dev/en/library/mermaid/#resource-sources>)

- [Source code](<https://github.com/mermaid-js/mermaid>)
- [Official website](<https://mermaid.js.org/>)
- [License](<https://github.com/mermaid-js/mermaid/blob/develop/LICENSE>)
- [Official source](<https://raw.githubusercontent.com/mermaid-js/mermaid/HEAD/README.md>)
- [Official source](<https://mermaid.js.org/config/schema-docs/config-properties-securitylevel.html>)
- [Official source](<https://raw.githubusercontent.com/mermaid-js/mermaid/HEAD/LICENSE>)

## Editorial review date

2026\-10\-04

## Editorial review scope

The purpose and published terms have been reviewed against the cited primary sources\. This page does not confirm that the product was run or tested in every environment\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
