Skip to main content
Taskadetaskade
PricingLoginSign up for free →Sign up for free →
Loved by 1M+ users·Hosting 100K+ apps·Deploying 500K+ AI agents·Running 1M+ automations·Backed by Y Combinator
TaskadeAboutPressPricingFeaturesIntegrationsChangelogContact us
GalleryReviewsHelp CenterDocsFAQ
VibeVibe AppsVibe AgentsVibe CodingVibe Workflows
Vibe MarketingVibe DashboardsVibe CRMVibe AutomationVibe PaymentsVibe DesignVibe SEOVibe Tracking
Community
FeaturedQuick AppsTools
DashboardsWebsitesWorkflowsProjectsFormsCreators
DownloadsAndroidiOSMac
WindowsChromeFirefoxEdge
Compare
vs Cursorvs Boltvs Lovable
vs V0vs Windsurfvs Replitvs Emergentvs Devinvs Claude Codevs ChatGPTvs Claudevs Perplexityvs GitHub Copilotvs Figma AIvs Notionvs ClickUpvs Asanavs Mondayvs Trellovs Jiravs Linearvs Todoistvs Evernotevs Obsidianvs Airtablevs Basecampvs Mirovs Slackvs Bubblevs Retoolvs Webflowvs Framervs Softrvs Glidevs FlutterFlowvs Base44vs Adalovs Durablevs Gammavs Squarespacevs WordPressvs UI Bakeryvs Zapiervs Makevs n8nvs Jaspervs Copy.aivs Writervs Rytrvs Manusvs Crewvs Lindyvs Relevance AIvs Wrikevs Smartsheetvs Monday Magicvs Codavs TickTickvs Any.dovs Thingsvs OmniFocusvs MeisterTaskvs Teamworkvs Workfrontvs Bitrix24vs Process Streetvs Toggl Planvs Motionvs Momentumvs Habiticavs Zenkitvs Google Docsvs Google Keepvs Google Tasksvs Microsoft Teamsvs Dropbox Papervs Quipvs Roam Researchvs Logseqvs Memvs WorkFlowyvs Dynalistvs XMindvs Whimsicalvs Zoomvs Remember The Milkvs Wunderlist
Genesis AIApp BuilderVibe CodingAgent Builder
Dashboard BuilderCRM BuilderWebsite BuilderForm BuilderWorkflow AutomationWorkflow BuilderBusiness-in-a-BoxAI for MarketingAI for Developers
AI Agents
FeaturedProject ManagementProductivity
MarketingTranslatorContentWorkflowResearchPersonalSalesSocial MediaTo-Do ListCRMTask AutomationCoachingCreativityTask ManagementBrandingFinanceLearning and DevelopmentBusinessCommunity ManagementMeetingsAnalyticsDigital AdvertisingContent CurationKnowledge ManagementProduct DevelopmentPublic RelationsProgrammingHuman ResourcesE-CommerceEducationLegalEmailSEODeveloperVideo ProductionDesignFlowchartDataPromptNonprofitAssistantsTeamsCustomer ServiceTrainingTravel PlanningAll Categories
Automations
FeaturedBusiness-in-a-BoxInvestor Operations
Education & LearningHealthcare & ClinicsStripeSalesContentMarketingEmailCustomer SupportHubSpotProject ManagementAgentic WorkflowsBooking & SchedulingCalendarReportsSlackWebsiteFormTaskWeb ScrapingWeb SearchChatGPTText to ActionYoutubeLinkedInTwitterGitHubDiscordMicrosoft TeamsWebflowRSS & Content FeedsGoogle WorkspaceManufacturing & OperationsAI Agent TeamsAll Categories
Wiki
GenesisAI AgentsAutomation
ProjectsLiving DNAPlatformIntegrationsProductivityMethodsProject ManagementAgileScrumAI ConceptsCommunityTerminologyFeatures
Templates
FeaturedChatGPTTable
PersonalProject ManagementSalesFlowchartTask ManagementEngineeringEducationDesignTo-Do ListMarketingMind MapGantt ChartOrganizationalPlanningMeetingsTeam ManagementStrategyGamingProductionProduct ManagementStartupRemote WorkY CombinatorRoadmapCustomer ServiceLegalEmailBudgetsContentConsultingE-CommerceStandard Operating Procedure (SOP)Human ResourcesProgrammingMaintenanceCoachingSocial MediaHow-TosResearchMusicTrip PlanningAll Categories
Generators
AI AppAI WebsiteAI Dashboard
AI FormAI AgentClient PortalAI WorkspaceAI ProductivityAI To-Do ListAI WorkflowsAI EducationAI Mind MapsAI FlowchartAI Scrum Project ManagementAI Agile Project ManagementAI MarketingAI Project ManagementAI Social Media ManagementAI BloggingAI Agency WorkflowsAI ContentAI Software DevelopmentAI MeetingAI PersonasAI OutlineAI SalesAI ProgrammingAI DesignAI FreelancingAI ResumeAI Human ResourceAI SOPAI E-CommerceAI EmailAI Public RelationsAI InfluencersAI Content CreatorsAI Customer ServiceAI BusinessAI PromptsAI Tool BuilderAI SEOAI Gantt ChartAI CalendarsAI BoardAI TableAI ResearchAI LegalAI ProposalAI Video ProductionAI Health and WellnessAI WritingAI PublishingAI NonprofitAI DataAI Event PlanningAI Game DevelopmentAI Project Management AgentAI Productivity AgentAI Marketing AgentAI Personal AgentAI Business and Work AgentAI Education and Learning AgentAI Task Management AgentAI Customer Relations AgentAI Programming AgentAI SchemaAll Categories
Converters
AI Featured ConvertersAI PDF ConvertersAI CSV Converters
AI Markdown ConvertersAI Prompt to App ConvertersAI Data to Dashboard ConvertersAI Workflow to App ConvertersAI Idea to App ConvertersAI Flowcharts ConvertersAI Mind Map ConvertersAI Text ConvertersAI Youtube ConvertersAI Knowledge ConvertersAI Spreadsheet ConvertersAI Email ConvertersAI Web Page ConvertersAI Video ConvertersAI Coding ConvertersAI Task ConvertersAI Kanban Board ConvertersAI Notes ConvertersAI Education ConvertersAI Language TranslatorsAI Business → Backend App ConvertersAI File → App ConvertersAI SOP → Workflow App ConvertersAI Portal → App ConvertersAI Form → App ConvertersAI Schedule → Booking App ConvertersAI Metrics → Dashboard ConvertersAI Game → Playable App ConvertersAI Catalog → Directory App ConvertersAI Creative → Studio App ConvertersAI Agent → Agent App ConvertersAI Image ConvertersAI Resume & Career ConvertersAI Presentation ConvertersAll Categories
Prompts
Blog WritingBrandingPersonal Finance
Human ResourcesPublic RelationsTeam CollaborationProduct ManagementSupportAgencyReal EstateMarketingCodingResearchSalesAdvertisingSocial MediaCopywritingContentProject ManagementWebsite CreationDesignStrategyE-commerceEngineeringSEOEducationEmail MarketingUX/UIProductivityInfluencer MarketingAnalyticsEntrepreneurshipLegalAll Categories
Blog
History of Mermaid.js: Diagrams as Code, From a Lost Visio File to 85K GitHub Stars (2026)What Is Artificial Life? How Intelligence Emerges from Code (2026)The Complete History of Computing: From Binary to AI Agents — How We Got Here (2026)12 Best Agentic Engineering Platforms and Tools for AI Agent Orchestration in 2026
They Generate Code. We Generate Runtime — The Taskade Genesis Manifesto (2026)15 Best Claude Code Alternatives in 2026: AI Coding Agents and Tools ComparedTaskade Genesis Reviews: What Tech Press and Review Sites Say (2026)What Is Intelligence? From Neurons to AI Agents — A Complete Guide (2026)What Is Grokking in AI? When Models Suddenly Learn to Generalize (2026)Taskade vs Zoho: Can AI Workspaces Replace Enterprise SaaS? (2026)What Is Mechanistic Interpretability? How We're Learning to Understand AI (2026)How Do Large Language Models Actually Work? Transformers Explained (2026)What Is an Agentic Workspace? The Complete Guide (2026)Vibe Apps Directory: The Complete Guide to No-Code AI App CategoriesWhat is FFmpeg? Complete History of the Open-Source Multimedia Framework (2026)What Is AI Safety? Complete Guide to AI Risks, Alignment & The Future (2026)What Are Micro Apps? The Trend Reshaping How Software Gets Built (2026)
AIAutomationProductivityProject ManagementRemote WorkStartupsKnowledge ManagementCollaborative WorkUpdates
Changelog
Mobile Agent Panel, Dark Mode Theming & White-Label 404 Pages (Mar 13, 2026)Linear & Monday Integrations, Agent Memory for All Models (Mar 12, 2026)App Kit Export & Import, Agent Memory & Custom Domain SSL (Mar 11, 2026)
Developer SDK, App Kit Sharing & Live Theming (Mar 10, 2026)Airtable Integration, Smarter Agent Models & Workspace File Management (Mar 9, 2026)Bulk Project Import & Real-Time Integration Triggers (Mar 7, 2026)Faster Project Files & Performance (Mar 5, 2026)
Wiki
GenesisAI AgentsAutomation
ProjectsLiving DNAPlatformIntegrationsProductivityMethodsProject ManagementAgileScrumAI ConceptsCommunityTerminologyFeatures
© 2026 Taskade.
PrivacyTermsSecurity
Made withTaskade AIforBuilders
Blog›AI›History of Mermaid.js:…

History of Mermaid.js: Diagrams as Code, From a Lost Visio File to 85K GitHub Stars (2026)

The complete history of Mermaid.js — from a lost Visio file in 2014 to 85K GitHub stars, native GitHub support, $7.5M funding, and the AI-native beautiful-mermaid renderer. Every diagram type, live.

March 19, 2026·Updated March 21, 2026·25 min read·Taskade Team·AI·#diagrams-as-code#mermaid#developer-tools
On this page (41)
🧩 What Is Mermaid.js?📜 The Origin Story: A Lost Visio File (2014)🔄 The Docs-as-Code Revolution📈 Growth: From Side Project to 85K StarsKey Milestones🏗️ Anatomy of Every Diagram TypeBeyond beautiful-mermaid: The Full Mermaid Diagram Catalog1. Flowcharts — The Original2. Sequence Diagrams — Interactions Over Time3. State Diagrams — Finite State Machines4. Class Diagrams — Object-Oriented Design5. Entity-Relationship Diagrams — Data Modeling6. XY Charts — Data Visualization🤖 Mermaid in the Age of AIWhy beautiful-mermaid Exists⚔️ Mermaid vs. The CompetitionThe Model-Based Alternative: StructurizrSame Diagram, Three SyntaxesChoosing the Right Tool: Practitioner InsightsThe Hallucination ProblemSpec-Driven Development: Diagrams as Validation🌍 Platform Integrations💰 From Open Source to $7.5M: Mermaid Chart Inc.📊 The Flowchart RenaissanceMermaid AI: Natural Language to FlowchartClaude Code: Architecture Diagrams from ContextIDE Integration: Diagrams Where You Code🔮 The Future: Diagrams Generated, Not Drawn🛠️ Getting Started with Mermaid in 2026Mermaid Live Editor — The Fastest Way to StartIn GitHubIn Your EditorIn TaskadeWith beautiful-mermaid (Code)📐 Mermaid Best Practices🧬 From Text to Living Diagrams📚 Further ReadingFlowchart & Diagram ToolsAI & Technology Deep DivesExplore TaskadeFrequently Asked Questions

In 2014, a Swedish software architect named Knut Sveidqvist lost a Microsoft Visio file. Instead of recreating the diagram by clicking through menus, he asked a different question: what if diagrams were just text?

That question became Mermaid.js — an open-source library that lets you write diagrams the way you write code. Twelve years later, it has 85,000+ GitHub stars, native support in GitHub, GitLab, Notion, and Obsidian, a $7.5M seed round from Sequoia and Microsoft, and 8 million+ users worldwide.

This is the story of how one lost file sparked a movement.

TL;DR: Mermaid.js turned diagrams into text that lives in version control alongside code — eliminating doc-rot and enabling AI-generated visualizations. From a solo project in 2014 to 85K GitHub stars and $7.5M in funding, it's now the standard for diagrams-as-code. Taskade Genesis uses beautiful-mermaid to render all 6 supported diagram types natively in workspaces and blog posts.


🧩 What Is Mermaid.js?

Mermaid.js is a JavaScript library that renders diagrams and charts from Markdown-inspired text definitions. Instead of dragging boxes in a GUI, you write:

Update text Write Text Commit to Git Renders as Diagram Version Controlled

That code block renders as a live flowchart — no Visio, no Figma, no screenshot. The diagram lives in your Markdown file, version-controlled alongside your code.

The name? Inspired by The Little Mermaid, which Sveidqvist's children were watching when he started the project.


📜 The Origin Story: A Lost Visio File (2014)

Knut Sveidqvist spent his career in front-end architecture and platform engineering at companies like Telia and GE Lifesciences in Stockholm. A recurring theme across every role: documentation was always out of date.

The breaking point was losing a Visio file. Binary diagram formats like .vsdx couldn't be diffed, couldn't be version-controlled, and couldn't survive a laptop swap. Every time the architecture changed, someone had to open a GUI tool and manually redraw boxes.

Sveidqvist's insight was simple: if documentation is code, diagrams should be code too.

He built the first version of Mermaid.js in 2014 with just two diagram types — flowcharts and sequence diagrams. The syntax was intentionally Markdown-like, lowercase, and readable:

Push code + diagram text Trigger build Render Mermaid → SVG Live diagrams, always current No manual diagram updates needed Developer Git Repository CI Pipeline Documentation Site

This wasn't just a new tool — it was a new workflow. Diagrams and code travel together, review together, and deploy together.


🔄 The Docs-as-Code Revolution

Mermaid didn't emerge in a vacuum. It arrived alongside a broader movement called docs-as-code — the philosophy that documentation should use the same tools, workflows, and version control as source code.

Old Way Docs as Code Manual update Draw in Visio Export PNG Upload to Wiki Architecture Changes Diagram Outdated Write Mermaid Text Commit to Git Auto-Renders Architecture Changes Update Text in Same PR

The movement gained traction at:

  • Google — internal g3doc platform stored documentation alongside code in the monorepo
  • Spotify — launched TechDocs in 2019, treating docs like microservices
  • Squarespace — migrated from Confluence to docs-in-repo
  • Write the Docs community — advocated for docs-as-code as an industry standard

Mermaid became the visual layer of this revolution. When your architecture diagram lives in the same PR as the code change, reviewers can verify that the diagram matches reality. Doc-rot — the slow decay of documentation accuracy — was eliminated for visual docs.


📈 Growth: From Side Project to 85K Stars

The growth trajectory of Mermaid.js mirrors the docs-as-code movement itself:

2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 0 10 20 30 40 50 60 70 80 90 Stars (thousands) Mermaid.js GitHub Stars Growth Line 1 Bar 1

The inflection point was February 14, 2022 — when GitHub announced native Mermaid rendering. Overnight, every GitHub README, issue, PR, and discussion could contain live diagrams. Two weeks later, GitHub Gists followed.

Key Milestones

Year Milestone
2014 Knut Sveidqvist creates Mermaid.js (flowcharts + sequence diagrams)
2019 v8.x release — Entity-Relationship diagrams added (v8.5)
2021 The Official Guide to Mermaid.js published (Packt)
Feb 2022 GitHub adds native Mermaid rendering — watershed moment
2022 Sveidqvist co-founds Mermaid Chart Inc. with Open Core Ventures
Mar 2024 Mermaid Chart raises $7.5M seed (Sequoia, Microsoft M12, OCV)
2024-25 v10-v11 — mindmaps, timelines, XY charts, Sankey diagrams added
2025 beautiful-mermaid launches — AI-native SVG + ASCII renderer
2026 85K+ stars, 15+ diagram types, 8M+ users

🏗️ Anatomy of Every Diagram Type

Mermaid.js now supports 15+ diagram types. The beautiful-mermaid renderer — which we use at Taskade to render diagrams in blog posts — supports 6 of these with enhanced SVG output, 15 built-in themes, and synchronous rendering.

Let's walk through every type supported by beautiful-mermaid, with live rendered examples.

Beyond beautiful-mermaid: The Full Mermaid Diagram Catalog

Core Mermaid.js supports 15+ diagram types — far more than the 6 that beautiful-mermaid renders. The full list includes:

Supported by beautiful-mermaid Core Mermaid only (not rendered by beautiful-mermaid)
Flowcharts Gantt charts
Sequence diagrams Pie charts
State diagrams Mindmaps
Class diagrams Timeline diagrams
ER diagrams Git graphs
XY charts Quadrant charts, Sankey, C4 (experimental)

The 6 beautiful-mermaid types cover the vast majority of developer use cases. Gantt charts and pie charts remain available in the core library for project management and reporting contexts. C4 diagram support in Mermaid is experimental — for production C4 architecture docs, Structurizr is more mature.

Now let's walk through each beautiful-mermaid type with live rendered examples.

1. Flowcharts — The Original

Flowcharts were Mermaid's first diagram type and remain its most used. They support 12 node shapes, 6 edge styles, subgraphs, and all four directions (TD, LR, BT, RL).

All 12 node shapes:

Rectangle Rounded Diamond Stadium Circle Subroutine Double Circle Hexagon Database Flag Trapezoid Inverse Trap

Edge styles — solid, dotted, thick, bidirectional:

solid dotted thick bidirectional Source Target 1 Target 2 Target 3 Client Server

Nested subgraphs with direction override — a real CI/CD pipeline:

CI Pipeline Yes No Yes No Deploy Staging QA Approved? Production Push Code Tests Pass? Build Image Fix & Retry

System architecture with subgraphs:

Client Layer Service Layer Data Layer Web App API Gateway Mobile App Auth Service User Service Order Service Auth DB User DB Order DB Message Queue

2. Sequence Diagrams — Interactions Over Time

Sequence diagrams were the second type Sveidqvist built. They show how actors and systems exchange messages over time — perfect for API flows, authentication, and microservice orchestration.

OAuth 2.0 flow with actors, activation boxes, and notes:

Click Login Authorization request Login page Credentials Authorization code Exchange code for token Access token Request + token Protected resource Display data Token valid for 1 hour User Client App Auth Server Resource API

Microservice orchestration with parallel execution and alt blocks:

par [Fetch data] alt [Has new orders] [No new orders] Validate token Valid Get user User data Get orders Order list Send notification Queued Skip notification Aggregate response Gateway Auth Users Orders Notify

Database transaction with critical section:

critical [Transaction] alt [Success] [Insufficient funds] POST /transfer BEGIN Debit account A Credit account B INSERT audit_log COMMIT 200 OK ROLLBACK 400 Bad Request Client Server Database

3. State Diagrams — Finite State Machines

State diagrams model system behavior through discrete states and transitions. Mermaid uses the stateDiagram-v2 syntax with support for composite (nested) states.

Connection lifecycle:

connect() success timeout close() error success max_retries done Closed Connecting Connected Disconnecting Reconnecting

Composite states — order processing pipeline:

Processing validate approved declined retry Received Fulfilled Rejected Parse Enrich Score Route

4. Class Diagrams — Object-Oriented Design

Class diagrams show inheritance, composition, and relationships between objects. Mermaid supports all 6 UML relationship types.

Design pattern — Observer:

<<interface>> Subject + attach(Observer): void + detach(Observer): void + notify(): void <<interface>> Observer + update(): void EventEmitter - observers: List~Observer~ + attach(Observer): void + detach(Observer): void + notify(): void Logger + update(): void Alerter + update(): void

All 6 relationship types:

A B C D E F G H I J K L inheritance composition aggregation association dependency realization

MVC architecture:

Model - Map: data + getData(): Map + setData(key, val): void + notify(): void View - Model: model + render(): void + update(): void Controller - Model: model - View: view + handleInput(event): void + updateModel(data): void updates refreshes reads notifies

5. Entity-Relationship Diagrams — Data Modeling

ER diagrams arrived in Mermaid v8.5, bringing database schema visualization to the text-as-code paradigm. They support 4 cardinality types, identifying vs. non-identifying relationships, and entity attributes with PK/FK/UK markers.

E-commerce schema:

CUSTOMER PK int id string name UK string email date created_at ORDER PK int id date created FK int customer_id string status PRODUCT PK int id string name float price LINE_ITEM PK int id FK int order_id FK int product_id int quantity places contains includes

Blog platform with all relationship types:

USER PK int id UK string username UK string email date joined POST PK int id string title text content FK int author_id date published COMMENT PK int id text body FK int post_id FK int user_id TAG PK int id UK string name writes authors has tagged

6. XY Charts — Data Visualization

XY charts are the newest addition to beautiful-mermaid's supported types. They render bar charts, line charts, and combined overlays with support for horizontal orientation and numeric axes.

Monthly active users — bar + line overlay:

Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 0 5 10 15 20 25 30 Users (thousands) Monthly Active Users (2025) Bar 1 Line 1

Sprint burndown — planned vs actual:

D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 0 10 20 30 40 50 60 70 80 Story Points Sprint Burndown Line 1 Line 2

Revenue comparison — 2024 vs 2025:

Q1 Q2 Q3 Q4 0 50 100 150 200 250 300 350 400 Revenue ($K) Quarterly Revenue: 2024 vs 2025 Bar 1 Bar 2

🤖 Mermaid in the Age of AI

Mermaid's constrained ABNF grammar gives it a unique advantage in the AI era. Unlike free-form visual tools, Mermaid syntax follows strict rules that LLMs can learn with lower hallucination rates than other diagram languages.

Mermaid Syntax SVG/HTML Retry Natural Language Prompt LLM Output Format Structured Text Unstructured Markup Validated Parse Error-Prone Rendered Diagram

The AI-Mermaid ecosystem in 2026:

  • ChatGPT — Mermaid Chart plugin for diagram generation
  • MCP Server — dynamic diagram generation from any LLM
  • Gemini — powers Mermaid AI for intelligent diagram suggestions
  • Taskade Genesis — renders beautiful-mermaid diagrams inside AI-generated apps, blog posts, and workspaces

Why beautiful-mermaid Exists

The core Mermaid.js library is optimized for the browser. But modern use cases — server-side rendering, AI pipelines, terminal output — need something different.

beautiful-mermaid by lukilabs was built for the age of AI:

Feature Mermaid.js beautiful-mermaid
Rendering Async, browser-dependent Synchronous, zero DOM deps
Output SVG only SVG + ASCII/Unicode
Themes 5 built-in 15 built-in + any Shiki theme
React Requires async handling Works with useMemo()
Performance Variable 100+ diagrams in <500ms
Background Opaque Transparent support
Diagram types 15+ 6 (focused, high-quality)

The 15 built-in themes include: zinc-light, zinc-dark, tokyo-night, tokyo-night-storm, tokyo-night-light, catppuccin-mocha, catppuccin-latte, nord, nord-light, dracula, github-light, github-dark, solarized-light, solarized-dark, and one-dark.

At Taskade, we use catppuccin-mocha with our brand accent #ff2d60 — every mermaid diagram on this blog renders through beautiful-mermaid's synchronous SVG pipeline.


⚔️ Mermaid vs. The Competition

Mermaid didn't invent text-to-diagram. Here's how the landscape looks in 2026:

Pioneers - Pre-2010 Modern Wave - 2014+ Visual Tools influenced influenced inspired GraphvizDOT Language1991 PlantUMLJava-based2009 Mermaid.jsMarkdown-native2014 D2Go-based2022 ExcalidrawHand-drawn2020 tldrawCanvas-based2021
Tool Syntax Integrations AI-Readiness Best For
Mermaid.js Markdown-like GitHub, GitLab, Notion, Obsidian, VS Code Highest (constrained grammar) Docs-as-code, README diagrams
PlantUML Verbose, powerful IntelliJ, Confluence, Jenkins Medium UML-heavy enterprise projects
Graphviz DOT language Academic tools, CLI Low Large algorithmic graph layouts
D2 Clean, modern CLI, VS Code, CI High Modern infra documentation
Structurizr DSL (model-based) PlantUML export, C4 native Medium C4 architecture models
Eraser DiagramGPT Web app, VS Code Very High AI-first diagram generation
Python diagrams Python code Jupyter, CLI (40K+ stars) Medium Cloud architecture (AWS/Azure/GCP)
Excalidraw Visual (no code) Obsidian, VS Code N/A Whiteboard-style brainstorming

Mermaid's decisive advantage: platform ubiquity. No other text-to-diagram tool renders natively in GitHub, GitLab, Notion, and Obsidian simultaneously.

The Model-Based Alternative: Structurizr

One tool deserves special mention. Structurizr, created by Simon Brown (inventor of the C4 model), takes a fundamentally different approach: instead of drawing individual diagrams, you build a model of your architecture and generate multiple views from it.

Change a service name once → it updates across all diagrams. Add a new component → it appears in every relevant view. This model-based approach eliminates the consistency problem that plagues Mermaid and PlantUML, where the same component might be named differently in different diagrams.

The tradeoff: Structurizr is C4-only (context, container, component, code levels). Mermaid handles 15+ diagram types. Most teams use both — Structurizr for architecture documentation, Mermaid for everything else.

Same Diagram, Three Syntaxes

To illustrate the syntax differences, here's the same simple authentication flow expressed in three languages:

Mermaid (rendered live):

User Auth Service User DB Token Service Protected API

PlantUML (same diagram, different syntax):

@startuml
actor User
User -> [Auth Service]
[Auth Service] -> database [User DB]
[Auth Service] -> [Token Service]
[Token Service] -> [Protected API]
@enduml

D2 (same diagram, cleanest syntax):

User -> Auth Service -> User DB
Auth Service -> Token Service -> Protected API

Mermaid's syntax sits between PlantUML's verbosity and D2's minimalism. The tradeoff: Mermaid has the broadest rendering support, D2 has the cleanest output, PlantUML has the most diagram types.

Choosing the Right Tool: Practitioner Insights

Jacqui Read, author of Communication Patterns (O'Reilly), teaches a workshop on diagrams-as-code with AI. Her framework for choosing between tools:

  1. What diagram type do you need? Activity diagrams → PlantUML. C4 architecture → Structurizr. Flowcharts and sequences → Mermaid.
  2. What does your organization already use? If your knowledge management renders Mermaid, stick with Mermaid.
  3. Do you need a model or just diagrams? Structurizr maintains a model behind the scenes — change a service name once and it updates across all views. Mermaid and PlantUML are stateless diagrams.
  4. Where will diagrams render? Mermaid is JavaScript-native (easy for web platforms). PlantUML requires a Java runtime (harder to integrate).
  5. License compatibility — all three are open source but with different licenses.

"You can't just say 'we're only going to use Mermaid in our organization.' It doesn't cover everything you're going to need. In some contexts you'll choose one and in some contexts another." — Jacqui Read

The critical gap Read identifies: Mermaid has no legend/key feature. PlantUML has one (though clunky). Structurizr auto-generates legends from the model. For production architecture docs, this matters.

The Hallucination Problem

When LLMs generate Mermaid diagrams, the results vary based on how specific your prompt is:

  • Too high-level ("create a diagram of my system") → hallucinated syntax, made-up keywords
  • Too specific ("move elements from left to right") → LLMs invent non-existent arrow modifiers
  • Just right ("reorder these elements so X appears on the right") → correct output

Read's observation: the prompt for generating a sequence diagram via LLM is often longer than just writing the Mermaid code directly. The real value of LLMs is in conversion (PlantUML → Mermaid → Structurizr), error debugging, and generating diagrams from existing code — not writing diagrams from scratch.

Spec-Driven Development: Diagrams as Validation

A new movement in 2026, spec-driven development, uses Markdown specifications (part human, part AI) to drive code generation. Diagrams-as-code plays a validation role:

Match Mismatch Human + AI Write Spec Spec ContainsMermaid Diagrams AI Generates Code AI Generates Diagramof Actual Code Spec Diagram ≟Code Diagram Ship It Review & Fix

The pattern: give an LLM your architecture spec (with Mermaid diagrams), let it generate code, then ask a different model to diagram the generated code. Compare the two diagrams visually. Humans are good at spotting visual mismatches — better than reading thousands of lines of code.

"The diagrams aren't necessarily for the AI. They're for humans to validate what the AI produced." — Jacqui Read


🌍 Platform Integrations

The breadth of Mermaid integrations in 2026 is unmatched:

Mermaid.js GitHubNative since Feb 2022 GitLabNative since v10.3 Azure DevOpsNative rendering NotionNative block ObsidianNative rendering VS Code / CursorWindsurf / IDX DocusaurusPlugin MkDocsPlugin ConfluencePlugin JupyterNotebooks Taskadebeautiful-mermaid

The February 2022 GitHub announcement was the inflection point. Before that, developers needed browser extensions or custom build steps. After, any README.md with a mermaid code block rendered automatically. Stars jumped from ~35K to 52K in a single year.


💰 From Open Source to $7.5M: Mermaid Chart Inc.

In 2022, Sveidqvist partnered with Open Core Ventures to co-found Mermaid Chart Inc., with Andrew Firestone as CEO. The thesis: Mermaid's open-source library is the foundation; the company builds commercial collaboration, editing, and enterprise features on top.

In March 2024, Mermaid Chart raised a $7.5M seed round from Sequoia, Microsoft M12, and Open Core Ventures — a strong signal that diagrams-as-code had matured from developer curiosity to enterprise infrastructure.

The business model follows the open core pattern:

OpenSource Commercial Mermaid Chart Inc. Mermaid.js (MIT) 15+ diagram types GitHub, GitLab, etc. Visual diagram editor Team collaboration SSO, audit, compliance Gemini-powered suggestions

📊 The Flowchart Renaissance

Flowcharts were Mermaid's first diagram type — and they remain its most commercially valuable. Keywords like "flowchart generator," "generate flowchart," and "flowchart maker" consistently rank among the highest-converting search terms in the productivity and diagramming space.

Why? Because flowcharts solve a universal problem: making complex processes visible. Business workflows, onboarding sequences, decision trees, approval chains — every organization has processes that live in someone's head until a flowchart externalizes them.

Mermaid AI: Natural Language to Flowchart

Mermaid Chart's AI chat interface takes this further — you describe a process in plain English and get a rendered flowchart instantly:

"Create a user sign-in flow for a website"

The AI generates the flowchart, and you iterate conversationally: "Introduce a forgot password flow", "Make the diagram more visually appealing". Each prompt refines the diagram in real time. The result is a fully customizable flowchart — editable via AI chat, visual editor, or raw Mermaid code — in under two minutes.

No Yes Describe Processin Plain English Mermaid AIGenerates Flowchart Satisfied? Refine via Chat Edit in Visual Editor Export PNG/SVG Export Mermaid Code Presentations & Docs Version Control

This workflow is why AI flowchart generators have exploded — tools like Taskade's Flowchart Maker and Flowchart Creator let anyone build professional process diagrams from a single prompt.

For pre-built starting points, explore flowchart templates or use AI flowchart agents that design, refine, and maintain diagrams that stay synced with your actual workflows.

Claude Code: Architecture Diagrams from Context

Where Mermaid AI handles individual flowcharts, Claude Code with Opus 4.6 generates entire architecture diagrams from codebase context:

  • Point Claude at a file → get a flowchart of the code's logic
  • Describe a system → get a Mermaid sequence diagram of the data flow
  • Ask for a CI/CD pipeline → get a rendered graph with all stages

The key insight: Claude generates both Mermaid (structured, precise, version-controlled) and Excalidraw (hand-drawn, collaborative, presentation-ready) from the same prompt. Mermaid for documentation that lives in Git. Excalidraw for whiteboard sessions with the team.

IDE Integration: Diagrams Where You Code

The Mermaid ecosystem now extends into every major code editor. A single plugin works across VS Code, Cursor, Windsurf, and Google's Project IDX (all VS Code forks sharing the same extension system):

  • Live preview — edit Mermaid code on the left, see the rendered diagram update on the right
  • AI generation — ask the editor's AI to create a Mermaid diagram from any file in your project
  • Cloud sync — connect diagrams to your Mermaid Chart account across editors
  • Export — PNG, SVG, or raw Mermaid code from the preview panel

The workflow: write code → ask AI to diagram it → preview renders live → export or commit the .mmd file alongside the code. Diagrams stay version-controlled, reviewable, and always in sync.

For teams looking for alternatives to standalone diagramming tools, Taskade offers a free Whimsical alternative and free Miro alternative with AI-powered flowchart generation built into every workspace.


🔮 The Future: Diagrams Generated, Not Drawn

The trajectory is clear. Diagrams are moving from manually drawn → text-defined → AI-generated.

Manual DrawingVisio, Lucidchart1990s-2010s Text-DefinedMermaid, PlantUML2010s-2020s AI-GeneratedLLM + Mermaid2024-Present Living DiagramsAuto-updatingfrom code

In the AI-generated phase, you don't write graph TD — you describe what you want:

"Show me how our authentication service handles OAuth flows with the user database and cache layer"

The LLM outputs valid Mermaid syntax. The renderer (like beautiful-mermaid) converts it to SVG. The diagram lives in your docs, updates when the code changes, and renders everywhere your Markdown goes.

This is exactly what Taskade Genesis enables. Build an AI app with a single prompt, and the agents generate architecture diagrams, data flow charts, and process maps — all as Mermaid code blocks that render live in your workspace.


🛠️ Getting Started with Mermaid in 2026

Mermaid Live Editor — The Fastest Way to Start

The quickest path to your first diagram: open mermaid.live in your browser. No installation, no account, no setup. Type Mermaid syntax on the left, see the rendered diagram on the right. Export as PNG, SVG, or shareable link.

The Live Editor is how most developers first encounter Mermaid — and it's the best way to prototype a diagram before committing it to your repo.

In GitHub

Just add a mermaid code block to any Markdown file:

```mermaid
graph LR
    A[Your Idea] --> B[Your Diagram]
```

That's it. No extensions, no build steps, no configuration. Works in README files, issues, PRs, discussions, and Gists. Also supported natively in GitLab (since v10.3) and Azure DevOps.

In Your Editor

The Mermaid VS Code extension provides live preview — edit code on the left, see the diagram update in real time on the right. The same extension works in Cursor, Windsurf, and Google's Project IDX since all are VS Code forks.

Install from the extensions marketplace → create a .mmd file → right-click → "Preview Diagram."

In Taskade

Every Taskade blog post and workspace supports mermaid code blocks rendered via beautiful-mermaid with the catppuccin-mocha theme and teal accent. Taskade Genesis AI agents can generate diagrams from natural language descriptions — just describe the process and get a rendered flowchart or architecture diagram.

With beautiful-mermaid (Code)

Javascript
import { renderMermaidSVG, THEMES } from 'beautiful-mermaid';

const svg = renderMermaidSVG('graph LR\n A --> B --> C', {
theme: THEMES['catppuccin-mocha'],
accent: '#00d4aa',
transparent: true,
});

Synchronous. No DOM. Works anywhere JavaScript runs — server-side rendering, CLI tools, CI pipelines, React useMemo().


📐 Mermaid Best Practices

Lessons from teams using Mermaid at scale:

1. Keep diagrams under 30 nodes. Beyond 30, layout algorithms struggle and the diagram becomes unreadable. Split into multiple diagrams with a clear hierarchy (overview → detail).

2. Use subgraphs for grouping. Don't let a flat flowchart sprawl. Subgraphs create visual boundaries that help readers parse the diagram:

Frontend Backend React App State Manager API Server Database

3. Label everything. Every edge should have a label. Every node should have a human-readable name, not just an ID. Unlabeled arrows are the #1 source of diagram misinterpretation.

4. Choose direction intentionally. graph TD (top-down) for hierarchies. graph LR (left-right) for sequences and pipelines. Don't default to one direction for everything.

5. Store diagrams alongside code. The whole point of diagrams-as-code is co-location. Put your .mmd files in the same directory as the code they describe. Review them in the same PR.

6. Don't diagram everything. Document the "why" and the high-level "how." The lower you go in detail, the faster diagrams rot. API interfaces and system boundaries — yes. Individual function calls — usually no.


🧬 From Text to Living Diagrams

Knut Sveidqvist lost a Visio file in 2014. Twelve years later, his frustration powers 85,000+ stars of open-source infrastructure, native rendering in every major developer platform, and an AI-ready grammar that LLMs produce more reliably than any other visual language.

The lesson: the best tools don't just solve a problem — they change the workflow. Mermaid didn't make better diagrams. It made diagrams a natural part of how developers think and communicate.

At Taskade, we took this one step further with Taskade Genesis — where AI agents don't just generate diagrams, they generate entire living applications with diagrams embedded. Your workspace becomes the runtime. Your agents become the team. Your automations become the execution.

One prompt. One app. Diagrams that live.

Try Taskade Genesis free →


📚 Further Reading

Flowchart & Diagram Tools

  • AI Flowchart Generator — Create professional flowcharts from natural language
  • AI Flowchart Maker — Streamline workflows with AI-powered diagrams
  • Flowchart Templates — Pre-designed templates for processes, decision trees, and workflows
  • AI Flowchart Agents — Agents that design, refine, and maintain process diagrams
  • Free Whimsical Alternative — AI-powered diagramming in Taskade
  • Free Miro Alternative — Collaborative flowcharts without the premium price

AI & Technology Deep Dives

  • What Is Agentic Engineering? — How AI agents are reshaping software development
  • How Do Large Language Models Work? — Transformers explained from attention to generation
  • What Is Intelligence? — From biological neurons to AI agents
  • They Generate Code, We Generate Runtime — The Taskade Genesis manifesto
  • Types of Memory in AI Agents — How agents remember and learn
  • What Is AI Safety? — The complete guide to risks, alignment, and the future
  • What Is Mechanistic Interpretability? — Understanding what happens inside neural networks
  • What Is Grokking in AI? — When models suddenly learn
  • Agentic Workflows: Path Towards AGI — Design patterns for autonomous AI

Explore Taskade

  • Taskade Genesis — Build AI Apps — One prompt, one living app
  • AI Agents — Custom agents with tools, memory, and multi-model collaboration
  • Automations — Temporal durable execution with 100+ integrations
  • Taskade Community — Templates, agents, and workflows

Frequently Asked Questions

What is Mermaid.js and who created it?

Mermaid.js is an open-source JavaScript library for creating diagrams from text-based syntax. Created in 2014 by Swedish software architect Knut Sveidqvist after losing a Microsoft Visio file, it now has 85K+ GitHub stars and supports 15+ diagram types. The name was inspired by The Little Mermaid, which Sveidqvist's children were watching at the time.

What diagram types does Mermaid.js support?

Mermaid.js supports 15+ diagram types: flowcharts, sequence diagrams, class diagrams, state diagrams, entity-relationship diagrams, Gantt charts, pie charts, user journey maps, git graphs, mindmaps, timelines, quadrant charts, sankey diagrams, XY charts, and block diagrams. The beautiful-mermaid renderer supports 6 of these with enhanced SVG and ASCII output.

When did GitHub add native Mermaid support?

GitHub added native Mermaid rendering on February 14, 2022. Any code block tagged as mermaid in GitHub Markdown files, issues, PRs, and discussions renders as a diagram. Support extended to GitHub Gists on February 28, 2022. This was the watershed moment that drove mainstream developer adoption.

What is beautiful-mermaid and how does it differ from Mermaid.js?

beautiful-mermaid is a TypeScript library by lukilabs that renders Mermaid diagrams as SVG or ASCII/Unicode output. Unlike core Mermaid.js, it offers synchronous rendering (works with React useMemo), 15 built-in themes with Shiki VS Code theme compatibility, zero DOM dependencies, and transparent background support. It supports 6 diagram types: flowcharts, state diagrams, sequence diagrams, class diagrams, ER diagrams, and XY charts.

How does Mermaid.js compare to PlantUML and Graphviz?

Mermaid.js has the broadest platform integration (GitHub, GitLab, Notion, Obsidian, VS Code) and easiest syntax. PlantUML offers the most diagram types and customization but requires a Java runtime. Graphviz excels at large algorithmic graph layouts but has dated visuals and a steep learning curve. D2 (2022) offers modern visuals and fast Go-based rendering but has a smaller ecosystem.

What is the diagrams-as-code movement?

Diagrams-as-code is a sub-movement of docs-as-code where visual diagrams are written in text-based syntax stored in version control alongside source code. Benefits include proper version history, PR-based review, elimination of doc-rot, and developer-friendly workflows. Mermaid.js leads this movement with 85K+ GitHub stars and 8M+ users.

How is Mermaid.js used in AI and LLM workflows?

Mermaid's constrained ABNF grammar makes it uniquely AI-ready — LLMs produce valid Mermaid syntax with lower hallucination rates than other diagram languages. ChatGPT has a Mermaid Chart plugin, there is an MCP Server for dynamic diagram generation, and Gemini powers Mermaid AI. Taskade Genesis uses beautiful-mermaid to render AI-generated diagrams inside blog posts and workspaces.

What funding has Mermaid Chart raised?

Mermaid Chart Inc., co-founded by Knut Sveidqvist with Open Core Ventures in 2022, raised a $7.5M seed round in March 2024. Investors include Sequoia, Microsoft M12, and Open Core Ventures. The company offers commercial editing, collaboration, and enterprise features built on top of the open-source Mermaid.js library.

How do you create a flowchart with Mermaid.js?

Create a Mermaid flowchart by writing a code block starting with graph TD (top-down) or graph LR (left-right). Define nodes with square brackets for rectangles, curly braces for diamonds, and parentheses for rounded shapes. Connect nodes with arrows using --> for solid lines or -.-> for dotted lines. Add labels with pipe syntax: -->|label|. Mermaid flowcharts render natively in GitHub, GitLab, Notion, Obsidian, and VS Code. For AI-powered generation, tools like Mermaid AI and Taskade Genesis create flowcharts from natural language descriptions.

Can you use Mermaid diagrams in VS Code, Cursor, and Windsurf?

Yes. A single Mermaid plugin works across VS Code, Cursor, Windsurf, and Google's Project IDX since all four are VS Code forks sharing the same extension system. The plugin provides live preview, AI diagram generation from files, cloud sync with Mermaid Chart accounts, and PNG/SVG export. Any changes in code update the visual preview instantly, and vice versa.

0%

On this page

🧩 What Is Mermaid.js?📜 The Origin Story: A Lost Visio File (2014)🔄 The Docs-as-Code Revolution📈 Growth: From Side Project to 85K StarsKey Milestones🏗️ Anatomy of Every Diagram TypeBeyond beautiful-mermaid: The Full Mermaid Diagram Catalog1. Flowcharts — The Original2. Sequence Diagrams — Interactions Over Time3. State Diagrams — Finite State Machines4. Class Diagrams — Object-Oriented Design5. Entity-Relationship Diagrams — Data Modeling6. XY Charts — Data Visualization🤖 Mermaid in the Age of AIWhy beautiful-mermaid Exists⚔️ Mermaid vs. The CompetitionThe Model-Based Alternative: StructurizrSame Diagram, Three SyntaxesChoosing the Right Tool: Practitioner InsightsThe Hallucination ProblemSpec-Driven Development: Diagrams as Validation🌍 Platform Integrations💰 From Open Source to $7.5M: Mermaid Chart Inc.📊 The Flowchart RenaissanceMermaid AI: Natural Language to FlowchartClaude Code: Architecture Diagrams from ContextIDE Integration: Diagrams Where You Code🔮 The Future: Diagrams Generated, Not Drawn🛠️ Getting Started with Mermaid in 2026Mermaid Live Editor — The Fastest Way to StartIn GitHubIn Your EditorIn TaskadeWith beautiful-mermaid (Code)📐 Mermaid Best Practices🧬 From Text to Living Diagrams📚 Further ReadingFlowchart & Diagram ToolsAI & Technology Deep DivesExplore TaskadeFrequently Asked Questions

Related Articles

/static_images/Turn Any REST API into MCP Tools in 5 Minutes — @taskade/mcp-openapi-codegen
February 14, 2026AI

Turn Any REST API into MCP Tools in 5 Minutes

Auto-generate type-safe MCP tools from any OpenAPI 3.0 spec. One command, zero boilerplate. Connect your REST API to Cla...

/static_images/What is FFmpeg? Complete History of the Open-Source Multimedia Framework
March 10, 2026AI

What is FFmpeg? Complete History of the Open-Source Multimedia Framework (2026)

The complete history of FFmpeg from a 2000 open-source experiment to the backbone of Netflix, YouTube, and every major s...

/static_images/What Is Artificial Life? How Intelligence Emerges from Code
March 17, 2026AI

What Is Artificial Life? How Intelligence Emerges from Code (2026)

From Conway's Game of Life to self-replicating programs — artificial life reveals how intelligence, purpose, and complex...

/static_images/The Complete History of Computing: From Binary to AI Agents — a visual timeline from mechanical calculators to modern AI
March 17, 2026AI

The Complete History of Computing: From Binary to AI Agents — How We Got Here (2026)

The complete history of computing from Babbage's Difference Engine to AI agents and living software. Binary, transistors...

/static_images/Agentic engineering platforms for AI agent orchestration compared in 2026
March 15, 2026AI

12 Best Agentic Engineering Platforms and Tools for AI Agent Orchestration in 2026

Compare 12 agentic engineering platforms for AI agent orchestration in 2026. Side-by-side valuations, GitHub stars, pric...

/static_images/They Generate Code. We Generate Runtime — The Taskade Genesis Manifesto
March 15, 2026AI

They Generate Code. We Generate Runtime — The Taskade Genesis Manifesto (2026)

Code generators give you files. Taskade Genesis gives you living runtime — deployed apps with embedded agents, automatio...

View All Articles
History of Mermaid.js: Diagrams as Code to 85K Stars (2026) | Taskade Blog