|
Hi maxGraph community
First, a big thank you to the maintainers and contributors — maxGraph turned out to be a solid, well-designed foundation to build on.
We wanted to share something we've been working on: @sourcentis/bpmn-editor, an open-source BPMN diagram editor built entirely on @maxgraph/core. It started as an internal need and is now working well enough that we thought it might be useful to others here.
What it does
The editor is agnostic of UI framework and backend — no React/Vue/Angular assumption, no server required. Drop it into any page and you get a full editor; anything backend-shaped (loading a catalogue of objects, saving) is expressed as small optional TypeScript "ports" you implement yourself.
Main features
- Full BPMN drawing surface — tasks, events, gateways, data objects/stores, lanes, groups, annotations, conversations, and sequence/message/conditional/default flows — with drag-and-drop palette, connect, recolor, rotate, and undo/redo.
- Import / export of
.bpmn/XML files, working with zero backend.
- Export to SVG, with the BPMN icon font embedded.
- Read-only viewer mode for embedding diagrams without editing.
- Two integration levels — a batteries-included default toolbar, or canvas-only so the host app drives its own UI.
- Optional backend ports for linking to external objects and persisting against your own API.
- i18n-ready — every user-facing string is overridable.
- Self-contained and CSP-safe — no extra assets to host, no inline event handlers, no
eval.
Why we built it
We needed a BPMN editor for Mercator (https://github.com/sourcentis/mercator), our open-source information-system mapping / cartography tool used by security and IT teams to visualize assets, dependencies and compliance (aligned with ANSSI mapping guidelines, NIS2, ISO 27001). We couldn't find an embeddable, backend-agnostic BPMN editor that fit our constraints — so we built one on maxGraph.
It's GPL-3.0. Feedback, issues and contributions are welcome, and we're happy to answer any questions about how we leveraged maxGraph under the hood.
Thanks again for the great library!
|