Self-host mermaid-live-editor
v12.2.0Real-time text-to-diagram editor for Mermaid charts
docker run --platform linux/amd64 --publish 8000:8080 ghcr.io/mermaid-js/mermaid-live-editor- Stars
- 6 899
- Port
- 8080 (Port the published container listens on for the web UI (map with --publish 8000:8080 or 8080:8080).)
ghcr.io/mermaid-js/mermaid-live-editorWhat is mermaid-live-editor?
Mermaid Live Editor is a web app for writing, previewing and sharing diagrams described in the Mermaid markdown-like syntax. It renders flowcharts, sequence diagrams, gantt charts and dozens of other diagram types in real time as you type, with separate code and config panes, a large library of sample diagrams, and export of the result as SVG (PNG and SVG links are provided through a configurable renderer service). Diagrams can be shared as a viewer link or as an editor link so others can tweak them and send back a new version; optional links connect the app to Mermaid Chart. It is built with SvelteKit and Monaco. To self-host it, run the published image from ghcr.io, or build the image yourself: customization (renderer service, a Kroki instance, Plausible analytics, Mermaid Chart promotion) happens through build arguments, since the published image's environment variables cannot be overridden at runtime. The upstream mermaid.ink and kroki.io renderers are external services that the default build sends data to, and the free hosted instance at mermaid.live carries promotional links to the paid Mermaid Chart product, which is disabled in self-built images unless you opt in.
mermaid-live-editor alternatives
LivebookOpen-source, self-hosted interactive notebooks for Elixir with realtime collaboration, smart cells, .livemd files, custom runtimes, and one-click app deploys.CompareLivebook with mermaid-live-editor
FossFLOWFossFLOW is a self-hosted, open-source PWA for creating isometric infrastructure diagrams with drag-and-drop editing, connector routing, and JSON import/export.CompareFossFLOW with mermaid-live-editor
krokiOpen-source, self-hosted diagram API that turns text into images using 30+ engines such as PlantUML, Mermaid, GraphViz and D2, deployed with Docker or Kubernetes.Comparekroki with mermaid-live-editor
collabmdSelf-hosted realtime collaborative Markdown editor turning folders into shared workspaces with diagrams, git sync, comments, and MCP AI agent access.Comparecollabmd with mermaid-live-editor
Compose-CraftCompose Craft is a self-hosted, open-source visual editor for Docker Compose files with drag-and-drop GUI, real-time diagrams, and one-click sharing.CompareCompose-Craft with mermaid-live-editor
ChartDBOpen-source database diagram editor that visualizes schemas with a single query, supports major databases, exports SQL, and self-hosts via Docker.CompareChartDB with mermaid-live-editor
WeChat Markdown EditorOpen-source WeChat Markdown editor turning plain Markdown into styled Official Account posts with image hosts, themes and AI; run it self-hosted via Docker or npm.CompareWeChat Markdown Editor with mermaid-live-editor
Dock-DploySelf-hosted web app for visually building Docker Compose files, generating Homepage configs, and creating schedulers in cron, GitHub Actions, and systemd formats.CompareDock-Dploy with mermaid-live-editor
Should you self-host mermaid-live-editor?
mermaid-live-editor scores 67/100 on selfhost.directory (how scoring works) and ranks #5 of 12 in Diagramming. It has 6 899 GitHub stars, +52 in the last 30 days.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in Typescript.
Its closest alternative on selfhost.directory is drawdb (80/100, 40 279 stars). It scores higher overall, so compare the two before you pick. See mermaid-live-editor vs drawdb side by side.
Features
- Diagram configuration editor
- Kroki link
- Many diagram types
- Mermaid Chart integrationOff by default; enabled via the MERMAID_IS_ENABLED_MERMAID_CHART_LINKS build argument and points to the commercial mermaid.ai service.
- PNG and SVG links via renderer service
- Real-time diagram preview
- Shareable edit link
- Shareable viewer link
- SVG export
mermaid-live-editor README
Edit, preview and share mermaid charts/diagrams.
- Edit and preview flowcharts, sequence diagrams, gantt diagrams in real time.
- Save the result as a svg
- Get a link to a viewer of the diagram so that you can share it with others.
- Get a link to edit the diagram so that someone else can tweak it and send a new link back
More in Diagramming
next-ai-draw-ioOpen-source, self-hosted draw.io canvas where an AI turns chat prompts into diagrams you can edit, version and export, across 25 model providers.
The-One-FileSelf-hosted offline-first network topology editor in a single HTML file with optional Docker collaboration.
astradrawAstraDraw is a self-hosted, open-source whiteboard forked from Excalidraw with workspaces, role-based access, real-time collaboration, and video walkthroughs.
ChartDBOpen-source database diagram editor that visualizes schemas with a single query, supports major databases, exports SQL, and self-hosts via Docker.
DigimindmapOpen-source, self-hosted mind-mapping web app by La Digitale: shared maps guarded by a secret question, item notes, PNG and .dgm export, QR and embed sharing.
DigiwordsOpen-source, self-hosted word cloud maker from La Digitale for in-person and remote classes: per-word weight, colour and font, PNG export, QR link, view counter.
drawdbSelf-hosted, open-source tool for drawing database schemas as ER diagrams; it imports DDL, exports DBML plus SQL in seven dialects, and needs no account.
draw.iodraw.io is a JavaScript, client-side editor for general diagramming.
DrawnixSelf-hosted, open-source all-in-one whiteboard with mind maps, flowcharts and freehand drawing, built on the Plait framework.
ExcaliDashExcaliDash is a self-hosted, open-source Excalidraw workspace adding collections, real-time collaboration, version history, and backups with local or OIDC auth.
excalidrawExcalidraw is a self-hosted, open-source virtual whiteboard for hand-drawn diagrams with infinite canvas, dark mode, and PWA support.
excalidraw-collaborationSelf-hosted Excalidraw stack for live collaborative drawing: an open-source Docker Compose setup with frontend, scene storage and a Go room server.
0 comments