Skip to Content
ProjectsDraw.io EditorOverview

Mendix Draw.io Editor

A native Draw.io diagram editor for Studio Pro that lets you create, edit, and store diagrams directly inside your Mendix project — fully integrated with version control and undo/redo.

TL;DR: Create diagrams directly in Studio Pro using the full Draw.io editor. Diagrams are stored as custom documents in your project, version-controlled alongside your models. Download it here to get started.


The Problem

Creating diagrams for Mendix projects means juggling external tools:

  1. Open a separate diagramming tool (Draw.io, Visio, Lucidchart)
  2. Create your diagram
  3. Export as an image
  4. Store it somewhere accessible (SharePoint, Confluence, a random folder)
  5. Hope your team can find it later
  6. Update it manually when the project changes

Diagrams live outside the project, disconnected from the code and models they describe. They get outdated, lost, or forgotten.


The Solution: Draw.io Editor

The full Draw.io diagramming experience embedded inside Studio Pro:

No context switching. No external tools. No lost diagrams.

Your diagrams live in the same project as your domain models, microflows, and pages — tracked by Mendix version control just like everything else.


Download

Requirements:

  • Mendix Studio Pro 11.6 or higher
  • Extensibility setting must be enabled (see instructions below)

Download the module

Studio Pro VersionDownload
11.6+DrawIoExtension.mxmodule

Import the module

  1. In App Explorer, right-click on your project
  2. Select Import Module Package…
  3. Browse to the downloaded DrawIoExtension.mxmodule file
  4. Click Open to import

Start using it

  1. Right-click on a folder or module in App Explorer
  2. Select Add otherDiagram
  3. The Draw.io editor opens — start diagramming!

What It Does

FeatureDescription
Full Draw.io EditorThe complete Draw.io experience embedded in Studio Pro
Shape LibrariesAccess to all Draw.io shape libraries and templates
Dark ThemeEditor uses dark mode to match Studio Pro’s look and feel
Live SyncChanges are synced to Studio Pro’s in-memory model (500ms debounce) — press Ctrl+S to persist
Version ControlDiagrams are stored as custom documents — tracked by Mendix VCS
Undo/RedoFull support via Studio Pro’s native undo/redo system
OfflineDraw.io webapp is bundled locally — no internet required
Native IntegrationDiagrams appear in App Explorer with custom icons

Use Cases

Perfect For

  • Architecture diagrams — Document system architecture alongside your implementation
  • Integration flows — Map out REST/SOAP/OData integrations visually
  • Process flows — Design business processes before building microflows
  • Network diagrams — Document infrastructure and deployment topologies
  • Wireframes — Quick UI mockups during planning sessions
  • ER diagrams — Visualize data models beyond what the domain model editor shows
  • Sequence diagrams — Document complex interaction patterns
  • Any diagram Draw.io supports — Floor plans, org charts, UML, BPMN, and more

How It Works

Architecture

┌─────────────────────────────────────────────────────────────┐ │ MENDIX STUDIO PRO │ ├─────────────────────────────────────────────────────────────┤ │ ┌─────────────────┐ ┌─────────────────────────────────┐ │ │ │ App Explorer │ │ Diagram Editor Tab │ │ │ │ │ │ ┌───────────────────────────┐ │ │ │ │ Modules │ │ │ │ │ │ │ │ ├─ Domain │ │ │ Draw.io Editor │ │ │ │ │ │ Model │ │ │ │ │ │ │ │ ├─ Pages │ │ │ ┌─────┐ ┌─────┐ │ │ │ │ │ ├─ Microflows │ │ │ │ Box │───▶│ Box │ │ │ │ │ │ ├─ Diagrams ◄─┼────┼──┤ └─────┘ └─────┘ │ │ │ │ │ │ ├─ Arch ◄─┼────┼──┤ │ │ │ │ │ │ └─ Flow ◄─┼────┼──┤ Full shape libraries, │ │ │ │ │ └─ ... │ │ │ connectors, text, etc. │ │ │ │ │ │ │ │ │ │ │ │ └─────────────────┘ │ └───────────────────────────┘ │ │ │ └─────────────────────────────────┘ │ └─────────────────────────────────────────────────────────────┘

Data Flow

When you create or open a diagram:

  1. The extension registers a custom document type (MendixDrawIO.Diagram) on load
  2. Opening a diagram loads the stored XML content via the Custom Blob Documents API
  3. The Draw.io editor opens with the diagram XML
  4. As you edit, changes trigger auto-save events from Draw.io
  5. A 500ms debounce batches rapid changes before syncing to Studio Pro’s in-memory model
  6. The XML is synced via updateDocumentContent() — changes appear in Studio Pro immediately
  7. Press Ctrl+S to persist changes to disk — without this, changes are lost on restart

Important: The extension syncs your diagram changes to Studio Pro’s in-memory model automatically, but you must press Ctrl+S to persist to disk. If you close Studio Pro without saving, your changes will be lost.

Storage Format

Diagrams are stored as mxGraphModel XML — Draw.io’s native format. This means:

  • Full fidelity — no data loss between saves
  • Default canvas size: A3 (1169 x 827 px)
  • Compatible with standalone Draw.io if you ever need to export

Technology Stack

PackagePurpose
@mendix/extensions-apiStudio Pro integration (Custom Blob Documents API)
react-drawioReact wrapper for the Draw.io editor
draw.io v26.0.9Embedded diagram editor (bundled locally)
react + tailwindcssUI framework and styling

Built with Vite and TypeScript for fast, type-safe development.


Compared to Other Extensions

Draw.io EditorMarkdown EditorJava Editor
Document typeDiagram (XML)Markdown (text)Java (source files)
EditorDraw.ioMonacoMonaco
Save methodSynced to memory (Ctrl+S to persist)Synced to memory (Ctrl+S to persist)Manual (Save button)
Install method.mxmodule import.zip extraction.zip extraction
StorageCustom Blob DocumentCustom Blob DocumentProject file system

Resources


Questions or feedback? Find me on LinkedIn  or email me at b.thomsin@gmail.com.