Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

mermaid-live-editor

> 编程语言
Open source

Edit, preview and share mermaid charts/diagrams. New implementation of the live editor.

6.7K stars0 likes1 views
WebsiteGitHub

About

Edit, preview and share mermaid charts/diagrams. New implementation of the live editor.

Mermaid Live Editor

Edit, preview and share mermaid charts/diagrams.

Features

  • 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.

Contributors are welcome!

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

Docker

Run published image

bash
docker run --platform linux/amd64 --publish 8000:8080 ghcr.io/mermaid-js/mermaid-live-editor

The published docker image is built using our default environment variables. You cannot override them when running the image. If you need to customize them, you will need to build the image yourself.

To configure renderer URL

When building set the MERMAID_RENDERER_URL build argument to the rendering service. Example: Default ishttps://mermaid.ink. Set to empty string to disable PNG and SVG links under Actions

To configure Kroki Instance URL

When building set the MERMAID_KROKI_RENDERER_URL build argument to your Kroki instance. Default is https://kroki.io Set to empty string to disable Kroki link under Actions

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.

To enable Mermaid Chart links and promotion

When building set the MERMAID_IS_ENABLED_MERMAID_CHART_LINKS build argument to true

Default is empty, disabling button to save to Mermaid Chart and promotional banner.

To update the Security modal

The modal shown on clicking the security link assumes analytics, renderer, Kroki and Mermaid chart are enabled. You can update it by modifying Privacy.svelte if you wish.

Development

bash
docker compose up --build

Then open http://localhost:3000

Building and running images locally

Build

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

Run

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

Visit: http://localhost:8080

Stop

bash
docker stop mermaid-live-editor

Setup

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

https://docs.github.com/en/get-started/quickstart/fork-a-repo

Requirements

  • Node.js current LTS version
  • pnpm package manager. Install with corepack enable pnpm

Development

bash
pnpm install
pnpm dev -- --open

This app is created with Svelte Kit.

Release

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.

Issues· 96 open

View all issuesOpen on GitHub
  • #1020

    Dependency Dashboard

    Updated Sep 23, 2026
  • #2038

    Broken linkфывыф

    bugUpdated Sep 18, 2026
  • #2036

    Empty comment lines break parsing

    bugUpdated Sep 16, 2026
  • #2024

    Contrast issues in dark mode when rectangles with background colours are used

    bugUpdated Sep 10, 2026
  • #2028

    Customer Journey

    Updated Sep 3, 2026
  • #1936

    Treemap syntax error on trailing space

    bugUpdated Sep 3, 2026
  • #2026

    Logos not working in architecture diagram

    Updated Aug 30, 2026
  • #1955

    Clicking Docs button when not logged into user account leads to missing page

    bugUpdated Jul 12, 2026
  • #1962

    dotenv/config in svelte.config.js shadows Vite's .env.[mode] loader, silently dropping .env.production overrides

    Updated May 25, 2026
  • #1945

    Improve self-hosting docs

    Updated May 12, 2026

> Tags

TypeScriptdiagramsmermaid

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 23, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言