Mermaid 12 Engine11 Multi-Themes • 1x to 4x Retina

ArchFlow

Presets:
Mermaid Definition
Technical Guide & Specifications

Architecture Diagramming as Code with Mermaid 12

ArchFlow enables software engineers and solutions architects to compose production-grade system topologies, sequence diagrams, and database schemas directly using intuitive text-based syntax. Switch between 11 high-contrast themes and render crisp Retina vectors for your design docs, Jira tickets, and GitHub pull requests.

How It Works (In-Memory Execution)

  1. Declaration Syntax: Write diagrams using declarative keywords like flowchart, sequenceDiagram, erDiagram, or stateDiagram.
  2. Multi-Theme Engine: Switch seamlessly between 11 curated themes (DevCraft Warm, Midnight Cyber, Nordic Frost, Dracula Synth, Forest Meadow, Monochrome Slate, Solarized Amber, Matrix Emerald, and official built-ins).
  3. Reactive In-Memory Compilation: The Mermaid 12 ESM engine compiles your text into an in-memory XML Document Object Model without network hops.
  4. High-DPI Rasterization: When downloading or copying, the SVG string is parsed into a virtual HTML5 2D Canvas with a 1x to 4x scaling multiplier to guarantee crisp typography on 4K/Retina screens.
  5. Direct Clipboard Integration: Use the modern browser ClipboardItem API to paste transparent or themed PNG assets directly into Notion, Slack, Figma, or Confluence.

Mermaid Syntax Cheat Sheet

Parameter / TokenDescriptionExample
flowchart TB / LRCreates top-to-bottom or left-to-right directed system diagrams.flowchart LR; Client --> API --> DB;
sequenceDiagramGenerates synchronous/asynchronous message exchange lifecycles.Alice->>Bob: Hello; Bob-->>Alice: Hi
erDiagramRenders relational database entities, primary keys, and cardinality relations.USERS ||--o{ POSTS : writes
stateDiagram-v2Maps finite state machine transitions and composite nested states.[*] --> Active --> [*]

Frequently Asked Questions

Q: Why write diagrams as code instead of using drag-and-drop tools?

Diagrams as code can be version-controlled in Git, diffed, automated in CI/CD pipelines, and shared without binary file bloat. It eliminates tedious manual pixel alignment.

Q: How do diagram themes work in ArchFlow?

ArchFlow includes 11 themes spanning light, dark, and high-contrast colorways. Each theme dynamically adjusts node fills, borders, actor lifelines, cluster groupings, and canvas background. Theme preferences persist locally in your browser and are included when generating share links.

Q: Are my architecture diagrams saved on a remote server?

No. ArchFlow is 100% in-memory and air-gapped. Nothing is transmitted to external servers. When sharing, the code and theme are compressed directly into the URL hash fragment.

Q: How do I use Full Screen mode in ArchFlow?

Click the Full Screen button in either the top canvas toolbar or the floating controls at the bottom right. The diagram canvas expands across your entire display while keeping pan, zoom, theme switching, and export controls active. You can press the Escape key or click Exit Fullscreen at any time to return.

Q: How do I export Retina 4K images for presentation slides?

Select 2x, 3x, or 4x scale in the canvas toolbar. You can also pick Theme Background, Transparent, or Solid White before downloading PNG, SVG, PDF, or WebP files.