Skip to content


Repository files navigation

Mermaid Live Editor Join our Slack! Netlify Status

Contributors are welcome!

If you want to speed up the progress for mermaid-live-editor, join the slack channel and contact knsv.


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

Live demo

You can try out a live version here.


Run published image

docker run --platform linux/amd64 --publish 8000:8080

To configure renderer URL

When building set the MERMAID_RENDERER_URL build argument to the rendering service. Default is

To configure Kroki Instance URL

When building set the MERMAID_KROKI_RENDERER_URL build argument to your Kroki instance. Default is

To configure Analytics

When building set the MERMAID_ANALYTICS_URL build argument to your plausible instance, and MERMAID_DOMAIN to your domain.

Default is empty, disabling analytics.


docker compose up --build

Then open http://localhost:3000

Building and running images locally


docker build -t mermaid-js/mermaid-live-editor .


docker run --detach --name mermaid-live-editor --publish 8080:8080 mermaid-js/mermaid-live-editor

Visit: http://localhost:8080


docker stop mermaid-live-editor


Below link will help you making a copy of the repository in your local system.


  • volta to manage node versions.
  • Node.js. volta install node
  • yarn package manager. volta install yarn


yarn install
yarn dev -- --open

This app is created with Svelte Kit.


When a PR is created targeting master, it will be built and deployed by Netlify. The URL will be indicated in a Comment in the PR.

Once the PR is merged, it will automatically be released.