← Mermaid Studio29 TEMPLATES

Start with a proven structure

Open a practical Mermaid example, edit it in the public editor, and export the result.

Product decision flow rendered Mermaid preview. Source code: flowchart LR Idea[Idea] --> Validate{Customer problem?} Validate -- No --> Archive[Backlog] Validate -- Yes --> Prototype[Prototype] Prototype --> Test{Validation passed?} Test -- Revise --> Prototype Test -- Success --> Launch[Launch]

Flowchart

Product decision flow

Map the decisions and feedback loops from idea review to launch.

Edit template
Incident response process rendered Mermaid preview. Source code: flowchart TD Alert[Alert Occurs] --> Triage{Severity Triage} Triage --> Owner[Owner Assign] Owner --> Mitigate[Impact Mitigation] Mitigate --> Resolve[Root Cause Resolve] Resolve --> Review[Post-incident Retrospective]

Flowchart

Incident response process

Document detection, triage, mitigation, resolution, and review.

Edit template
Authenticated API request rendered Mermaid preview. Source code: sequenceDiagram actor User participant Web participant Clerk participant API User->>Web: Save project Web->>Clerk: getToken() Clerk-->>Web: Session JWT Web->>API: PATCH /projects/:id Note over Web,API: Authorization: Bearer JWT API-->>Web: Save result

Sequence

Authenticated API request

Show how a web app uses a Clerk session token to call an API.

Edit template
Checkout sequence rendered Mermaid preview. Source code: sequenceDiagram actor User participant App participant Billing User->>App: Plan Select App->>Billing: Checkout Start Billing-->>User: Payment Screen User->>Billing: Payment complete Billing-->>App: Subscription Renewal App-->>User: Paid Features Enable

Sequence

Checkout sequence

Describe the steps between a shopper, checkout, payment, and fulfillment.

Edit template
Project domain model rendered Mermaid preview. Source code: classDiagram class Project { +String id +String ownerId +String code +save() +publish() } class Revision { +String id +String code +restore() } class FeatureUsage { +String feature +Int count +consume() } Project "1" --> "*" Revision Project "*" --> "1" FeatureUsage

Class

Project domain model

Model projects, revisions, comments, and collaborators as domain objects.

Edit template
SaaS database ERD rendered Mermaid preview. Source code: erDiagram USER ||--o{ PROJECT : owns PROJECT ||--o{ REVISION : keeps USER ||--o{ FEATURE_USAGE : consumes PROJECT { string id PK string ownerId string title boolean isPublic } REVISION { string id PK string projectId FK string code }

ER

SaaS database ERD

Explore a simple relational model for accounts, projects, and billing.

Edit template
Document lifecycle rendered Mermaid preview. Source code: stateDiagram-v2 [*] --> Draft Draft --> Saved Saved --> Public: Sharing On Public --> Saved: Sharing Off Saved --> Archived Archived --> Saved: Restore Archived --> [*]: Delete

State

Document lifecycle

Track a document from draft through review, publication, and archive.

Edit template
Service idea mindmap rendered Mermaid preview. Source code: mindmap root((New Service)) User Individual Team Core value Fast authoring Easy sharing Features Editor Templates Projects Success metrics Active User Saved Projects

Mindmap

Service idea mindmap

Expand a product idea into users, problems, features, and validation.

Edit template
Release roadmap rendered Mermaid preview. Source code: gantt title Product launch Roadmap dateFormat YYYY-MM-DD section Design User flow :done, ux, 2026-07-28, 2d Data model :done, db, after ux, 1d section Development Live editor :active, editor, after db, 4d Save project :project, after editor, 3d section Launch QA :qa, after project, 2d Public :milestone, launch, after qa, 0d

Gantt

Release roadmap

Plan product releases, milestones, and dependencies on a timeline.

Edit template
Platform context map rendered Mermaid preview. Source code: C4Context title Mermaid Platform Context Person(user, "User", "Diagram author") System(web, "Web App", "Public Editor and Dashboard") System(api, "API", "Project storage and sharing") System_Ext(auth, "Clerk", "Authentication") Rel(user, web, "Use") Rel(web, api, "HTTPS/JSON") Rel(web, auth, "Sign in")

C4

Platform context map

Explain how users and external systems interact with a platform.

Edit template
Order state machine rendered Mermaid preview. Source code: stateDiagram-v2 [*] --> Created Created --> Paid: Payment Success Created --> Cancelled: Cancel Paid --> Shipping: Fulfillment Shipping --> Delivered: Fulfillment Done Paid --> Refunded: Refund Delivered --> [*] Cancelled --> [*] Refunded --> [*]

State

Order state machine

Show the states and transitions of an order lifecycle.

Edit template
Customer onboarding flow rendered Mermaid preview. Source code: flowchart LR Visit[Visit service] --> Try[Guest Edit] Try --> Value{Value moment} Value -- Yes --> SignUp[Sign up] Value -- No --> Template[Other Templates] Template --> Try SignUp --> Save[Save first project] Save --> Share[Share with team]

Flowchart

Customer onboarding flow

Guide a new customer through signup, setup, activation, and support.

Edit template
Customer onboarding journey rendered Mermaid preview. Source code: journey title Mermaid Studio Onboarding section Start Visit service: 4: User Example Check: 5: User Write first code: 4: User section Success Save project: 5: User Share with team: 5: User

User Journey

Customer onboarding journey

Map customer actions and sentiment across the onboarding experience.

Edit template
Feature usage breakdown rendered Mermaid preview. Source code: pie title Feature usage share "Editor" : 42 "Templates" : 28 "AI generation" : 20 "Sharing" : 10

Pie Chart

Feature usage breakdown

Compare how usage is distributed across product features.

Edit template
Feature priority quadrant rendered Mermaid preview. Source code: quadrantChart title Feature priority x-axis Low impact --> High impact y-axis Low effort --> High effort quadrant-1 Quick wins quadrant-2 Strategic work quadrant-3 Backlog quadrant-4 Needs review Templates: [0.75, 0.65] AI generation: [0.85, 0.8] Comments: [0.45, 0.35]

Quadrant

Feature priority quadrant

Position features by value and effort to support prioritization.

Edit template
Authentication requirements rendered Mermaid preview. Source code: requirementDiagram requirement secure_session { id: AUTH-01 text: Session tokens must be used for protected API requests risk: high verifymethod: test } element api_guard { type: software } api_guard - satisfies -> secure_session

Requirement

Authentication requirements

Connect security requirements to the system elements that satisfy them.

Edit template
Release branching strategy rendered Mermaid preview. Source code: gitGraph commit id: "initial" branch develop checkout develop commit id: "feature" checkout main merge develop commit id: "release"

GitGraph

Release branching strategy

Visualize branches, merges, and release paths in Git.

Edit template
Product milestones rendered Mermaid preview. Source code: timeline title Mermaid Studio Milestones 2026 Q1 : Editor Launch 2026 Q2 : Save project : Public link 2026 Q3 : AI Diagram

Timeline

Product milestones

Present product and company milestones in chronological order.

Edit template
Payment interaction sequence rendered Mermaid preview. Source code: zenuml title Payment Approve Flow User->App: Start payment App->Payment.authorize() { Payment->Bank: Approve Request Bank->Payment: Approve Result } Payment->App: Payment complete

ZenUML

Payment interaction sequence

Describe the objects and messages involved in a payment flow.

Edit template
Budget allocation Sankey rendered Mermaid preview. Source code: sankey Product Budget,Development,120 Product Budget,Design,40 Development,Editor,70 Development,AI Features,50 Design,Research,15 Design,UI Improvements,25

Sankey

Budget allocation Sankey

Show how a budget flows from sources into teams and initiatives.

Edit template
Monthly metrics chart rendered Mermaid preview. Source code: xychart-beta title "Monthly projects" x-axis [1Month, 2Month, 3Month, 4Month] y-axis "Projects" 0 --> 100 bar [20, 35, 58, 82] line [20, 35, 58, 82]

XY Chart

Monthly metrics chart

Plot monthly values to compare product or business performance.

Edit template
Platform block architecture rendered Mermaid preview. Source code: block columns 3 Web["Web"] API["API"] DB[("Database")] Web --> API API --> DB

Block

Platform block architecture

Arrange the major blocks that make up a platform.

Edit template
HTTP packet layout rendered Mermaid preview. Source code: packet +4: "Version" +4: "IHL" +8: "Service" +16: "Total Length" +32: "Payload"

Packet

HTTP packet layout

Document the fields and bit widths in an HTTP-like packet.

Edit template
Sprint Kanban board rendered Mermaid preview. Source code: kanban todo[Todo] research[Requirements research] doing[In Progress] build[Build feature] done[Done] release[Prepare release]

Kanban

Sprint Kanban board

Organize sprint work into todo, in progress, and done columns.

Edit template
Cloud service architecture rendered Mermaid preview. Source code: architecture-beta service internet(internet)[Internet] group cloud(cloud)[Cloud] service api(server)[API] in cloud service db(database)[Database] in cloud internet:R -- L:api api:R -- L:db

Architecture

Cloud service architecture

Show internet, API, and database deployment relationships.

Edit template
Tool capability radar rendered Mermaid preview. Source code: radar-beta title Diagram tool comparison axis speed["Speed"], clarity["Clarity"], cost["Cost"] curve mermaid["Mermaid"]{5, 4, 4} curve other["Other"]{4, 5, 3} max 5

Radar

Tool capability radar

Compare diagram tools across speed, clarity, and cost.

Edit template
Feature investment treemap rendered Mermaid preview. Source code: treemap-beta "Product investment" "Editor": 40 "Sharing": 25 "AI": 35

Treemap

Feature investment treemap

Compare investment across feature areas as nested regions.

Edit template
Monthly revenue bar chart rendered Mermaid preview. Source code: xychart-beta title "Monthly Revenue" x-axis [1Month, 2Month, 3Month, 4Month] y-axis "Revenue" 0 --> 100 bar [20, 35, 58, 82]

Bar Chart

Monthly revenue bar chart

Compare monthly revenue with a clear category chart.

Edit template
Monthly active users line chart rendered Mermaid preview. Source code: xychart-beta title "Monthly active users" x-axis [1Month, 2Month, 3Month, 4Month] y-axis "User" 0 --> 100 line [20, 38, 52, 78]

Line Chart

Monthly active users line chart

Show the growth trend of monthly active users over time.

Edit template