Go to file
Sidharth Vinod 03404e8e59
Merge pull request #1611 from mermaid-js/promos
Update promos
2025-02-21 17:06:40 +00:00
.github chore: Update action versions 2024-11-08 22:00:52 +05:30
.husky Update deps 2021-07-29 20:58:37 +05:30
.vscode feat: Add rough mode 2024-05-23 14:05:59 +05:30
bin chore: Tabs -> Spaces 2022-11-03 14:09:36 +05:30
cypress chore: Update snapshots 2024-11-14 19:09:42 +05:30
src feat: Pause banner animation when mouse is on the banner 2025-02-21 21:23:21 +05:30
static Update manifest.json to align the URL with the PWA scope, fix #1480 2024-07-09 12:28:13 +08:00
.dockerignore Simplify docker action 2023-11-30 18:06:19 +00:00
.env feat: Add mermaidchart playground toggle 2024-11-08 22:30:47 +05:30
.eslintignore Add dom testing 2022-07-06 13:01:59 +05:30
.eslintrc.cjs Svelte 5 migration 2024-10-30 23:38:20 +05:30
.git-blame-ignore-revs Add prettier pass 2022-11-03 14:20:55 +05:30
.gitignore feat: Add mermaidchart playground toggle 2024-11-08 22:30:47 +05:30
.node-version chore(deps): update all non-major dependencies 2025-02-20 12:31:22 +00:00
.nojekyll nojekyll 2021-05-31 13:52:28 +05:30
.npmrc Initial 2021-05-09 17:30:34 +05:30
.prettierignore Add dom testing 2022-07-06 13:01:59 +05:30
.prettierrc chore: Fix issues 2024-01-11 22:23:18 +05:30
CODE_OF_CONDUCT.md Added generic maintainers as contact person 2020-12-02 16:39:19 +01:00
Dockerfile Disable buttons/links to share data with other websites depending on env variables 2024-09-28 16:12:43 +01:00
LICENSE Update license 2023-05-16 23:52:33 +05:30
README.md Disable buttons/links to share data with other websites depending on env variables 2024-09-28 16:12:43 +01:00
SECURITY.md Fix security formatting. 2022-07-07 00:22:37 +05:30
cypress.config.js Remove use of cy.clock 2024-01-18 20:16:40 +05:30
docker-compose.yml Add environment arguments to Dockerfile 2023-11-21 21:00:14 +00:00
netlify.toml Disable buttons/links to share data with other websites depending on env variables 2024-09-28 16:12:43 +01:00
nginx.conf Fix #1230 Docker: use 8080 port instead of 80 to reduce privilege requirements 2023-05-26 11:01:45 +02:00
package.json chore(deps): update all non-major dependencies 2025-02-20 12:31:22 +00:00
postcss.config.cjs chore: Tabs -> Spaces 2022-11-03 14:09:36 +05:30
renovate.json Group mermaid release separately 2023-09-14 13:26:19 +05:30
svelte.config.js chore: fix trailing slash 2022-11-25 11:17:30 +05:30
tailwind.config.cjs chore: Tabs -> Spaces 2022-11-03 14:09:36 +05:30
tsconfig.json chore: Cleanup potentially 2022-11-15 18:48:16 +05:30
vite.config.js chore: Fix unit test 2024-11-08 21:42:57 +05:30
yarn.lock Merge pull request #1606 from mermaid-js/browserslist-update 2025-02-21 13:44:41 +05:30

README.md

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.

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

Docker

Run published image

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

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.

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

docker compose up --build

Then open http://localhost:3000

Building and running images locally

Build

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

Run

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

Visit: http://localhost:8080

Stop

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

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

Development

yarn install
yarn 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.