npmstart.
Projects
中文

Mermaid Live Editor

Write a few lines of text and iterate on a diagram.

Flowcharts, sequence diagrams and technical documentation

By mermaid-js · Independent launch pack by npmstart

Mermaid Live Editor local application screenshot, demonstration content
Local test capture · example content

Try a practical task.

Start in the browser demo and download the exercise files separately.

First local launch? Follow the steps

Run it on your computer.

  1. Install Node.js 22.12+ or Node 24 LTS. Your system also needs tar. Node.js
  2. Download and extract the launch pack into a new folder. Open a terminal in that folder.
  3. Run this command and follow the terminal output. Keep the terminal open while using the app.
In the extracted launch pack folder
npm start

After successful startup, open http://127.0.0.1:4202/. Stop with Ctrl+C.

First run downloads approximately 0.2 MiB of official source, plus dependencies, from GitHub/npm. Later starts reuse app/. This is a development setup, not a production deployment.

What this local version covers

  • Edit Mermaid text with a live preview
  • Change nodes and connections
  • Inspect the rendered diagram in the browser

Startup and one core interaction checked on macOS with Node.js 24.11.1. Windows and Linux have not been verified here.

Know its boundaries

  • An earlier revision is pinned for the tested environment; this is not the latest upstream.
  • Local preview needs no backend. External rendering, sharing and analytics services are outside this pack’s scope.

The official demo is an external website operated by the upstream project. Its version and data handling can differ from this local pack.

What is inside the ZIP?

A small independent launcher, its source manifest and a README. It verifies the downloaded archive, installs the original pinned package manager and dependencies, then starts the local app. It does not include installed dependencies or an offline copy.

Your working source is saved in app/ and is reused without overwriting it. If setup fails, inspect the terminal error, fix the environment or connectivity issue, and run npm start again.

Read the startup script
Inspect the pinned source manifest
{
  "repository": "mermaid-js/mermaid-live-editor",
  "commit": "6af70cb44cc551c9b1c1a8ec1b067ffce91bb70e",
  "sha256": "06399512e122274c2560518ca5270122753b88839a0c191c68fc333b120e91e6",
  "manager": "pnpm@10.10.0"
}

Make it your own

  • Change the default diagram and sample text before adjusting the editor layout.
  • Review configuration and data flow separately before adding external sharing or rendering services.
Prepare a brief for your coding tool
Explore all projects