{"schemaVersion":1,"id":"mermaid","name":"Mermaid","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/mermaid/","officialUrl":"https://mermaid.js.org/","isCatalog":false,"description":"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.","tasks":["Describe architecture and API call sequences","Maintain a database diagram alongside the project"],"categoryIds":["graphics","knowledge"],"subcategoryIds":["graphics.svg","knowledge.boards"],"tags":["Diagrams","Markdown","SVG","JavaScript"],"aliases":[],"platforms":[],"stack":["JavaScript","SVG"],"compatibility":null,"pricing":"free","freeUsage":"The MIT renderer and local diagram creation are free, including commercial projects.","paidUsage":"Paid external editors and hosted Mermaid services are separate products.","license":"MIT.","selectionGuide":{"purpose":"Describe architecture and API call sequences","chooseWhen":["Describe architecture and API call sequences","Maintain a database diagram alongside the project"],"considerInstead":["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":["Set securityLevel when embedding diagrams, taking the text's source into account."],"limitations":["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."],"faq":[{"question":"What can you use for free in Mermaid?","answer":"The MIT renderer and local diagram creation are free, including commercial projects."},{"question":"What additional costs might arise with Mermaid?","answer":"Paid external editors and hosted Mermaid services are separate products."},{"question":"What terms of use matter for Mermaid?","answer":"MIT."},{"question":"Which environment can you use Mermaid in?","answer":"Tech stack: JavaScript, SVG."},{"question":"How do you get started with Mermaid?","answer":"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."},{"question":"What should you consider when choosing Mermaid?","answer":"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."},{"question":"How do Mermaid securityLevel settings differ when rendering other people's diagrams?","answer":"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":[{"id":"det-excalidraw","reason":"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."},{"id":"det-tldraw","reason":"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":["https://github.com/mermaid-js/mermaid","https://mermaid.js.org/","https://github.com/mermaid-js/mermaid/blob/develop/LICENSE","https://raw.githubusercontent.com/mermaid-js/mermaid/HEAD/README.md","https://mermaid.js.org/config/schema-docs/config-properties-securitylevel.html","https://raw.githubusercontent.com/mermaid-js/mermaid/HEAD/LICENSE"]},"selectionCheckedAt":null,"applicationGuide":{"inputs":["One process or set of components, and verified relationships between them.","Labels for participants, states, or entities, and an appropriate diagram type."],"steps":["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."],"checks":["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."],"goal":"Example workflow with Mermaid: Describe architecture and API call sequences."},"sources":["https://github.com/mermaid-js/mermaid","https://mermaid.js.org/","https://github.com/mermaid-js/mermaid/blob/develop/LICENSE","https://raw.githubusercontent.com/mermaid-js/mermaid/HEAD/README.md","https://mermaid.js.org/config/schema-docs/config-properties-securitylevel.html","https://raw.githubusercontent.com/mermaid-js/mermaid/HEAD/LICENSE"],"checkedAt":"2026-10-04","reviewScope":"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.","relatedIds":["det-excalidraw","det-tldraw"],"dataVersion":"cbbe7123b47a5ae80983","type":"Diagrams from text","kind":"library","pricingNote":"The MIT renderer and local diagram creation are free, including commercial projects. Paid external editors and hosted Mermaid services are separate products.","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.","labeledSources":[{"url":"https://github.com/mermaid-js/mermaid","label":"Source code"},{"url":"https://mermaid.js.org/","label":"Official website"},{"url":"https://github.com/mermaid-js/mermaid/blob/develop/LICENSE","label":"License"},{"url":"https://raw.githubusercontent.com/mermaid-js/mermaid/HEAD/README.md","label":"Official source"},{"url":"https://mermaid.js.org/config/schema-docs/config-properties-securitylevel.html","label":"Official source"},{"url":"https://raw.githubusercontent.com/mermaid-js/mermaid/HEAD/LICENSE","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"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.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}