Mermaid Integration
OpenFlowKit includes Mermaid import, editing, and export paths, but it should be treated as a compatibility workflow, not the editor’s only source of truth.
What Mermaid support is for
Section titled “What Mermaid support is for”Use Mermaid support when:
- you already have Mermaid diagrams in docs or repos
- you want to keep diagrams close to Markdown workflows
- you want to move between Mermaid and a visual editor
Mermaid in Studio
Section titled “Mermaid in Studio”The Studio code rail has a dedicated Mermaid mode. From there you can:
- view Mermaid generated from the current canvas
- edit Mermaid directly
- apply the parsed graph back into the editor
When parsing fails, the Studio panel surfaces validation feedback and diagnostics.
Mermaid export
Section titled “Mermaid export”The export menu can copy Mermaid text for the current graph to the clipboard.
Fidelity expectations
Section titled “Fidelity expectations”Mermaid round-tripping is useful, but not every OpenFlowKit concept maps perfectly. Be careful with:
- highly visual hand-tuned layouts
- provider-specific architecture icon presentation
- some family-specific semantics that are richer in the native graph model
If exact recovery matters, export JSON alongside Mermaid.
Best workflow
Section titled “Best workflow”For teams already using Mermaid:
-
import or paste Mermaid
-
refine visually in OpenFlowKit
-
export Mermaid again if the downstream system still needs it
-
keep JSON as the editable master backup
-
Click the “Import” button in the toolbar.
-
Select “Mermaid”.
-
Paste your code snippet.
Supported Diagram Types
Section titled “Supported Diagram Types”Currently, FlowMind optimizes for:
- Flowcharts (
graph TD,graph LR) - Sequence Diagrams (Partial support via conversion)
graph TD A[Start] --> B{Is it working?} B -- Yes --> C[Great!] B -- No --> D[Debug]Exporting to Mermaid
Section titled “Exporting to Mermaid”You can also export any FlowMind diagram back to Mermaid syntax.
This is perfect for embedding diagrams in GitHub README.md files or Notion documents.
- Open the Code Panel (bottom panel).
- Switch to the “Mermaid” tab.
- Copy the generated code.