---
title: "Deploy Mermaid Live Editor"
description: "Edit, preview and share Mermaid diagrams in your browser. No database."
category: "Other"
url: https://railway.com/deploy/mermaid-live-edito-1
---

# Deploy Mermaid Live Editor

Edit, preview and share Mermaid diagrams in your browser. No database.

**[Deploy Mermaid Live Editor on Railway](https://railway.com/template/mermaid-live-edito-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/mermaid-live-edito-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Mermaid Live Editor https://raw.githubusercontent.com/mermaid-js/mermaid-live-editor/d040b02bf717c3dadcefd11d6e0278ea94f33c11/static/favicon.png

- **Source:** https://github.com/aalfath/mermaid-live-editor-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host Mermaid Live Editor on Railway

Mermaid Live Editor is the open-source (MIT) browser editor behind mermaid.live. You write Mermaid diagram code, such as flowcharts, sequence diagrams, class and ER diagrams, Gantt charts and mind maps, and the diagram renders as you type. You can then share a link to it or export it as PNG or SVG.

## About Hosting Mermaid Live Editor

Mermaid Live Editor is a static web app: diagrams render in the visitor's browser, and no server-side database is involved. This template builds the site from a pinned upstream release (2.0.67) in our public GitHub repo and serves it with nginx on Railway's port, with a `/healthz` health check and a public domain. A first build takes about 1.5 minutes. Diagrams are stored in the page URL and the browser's local storage, so a redeploy or restart loses nothing on the server. There is no login and no secret to set. Updates arrive as Railway "update available" notices when we bump the pinned release.

## Common Use Cases

* Draw architecture, flow and sequence diagrams for docs, tickets and pull requests on your own domain
* Share editable diagram links with a team without sending diagram code to a third-party site
* Export PNG or SVG diagrams for wikis and slides, or copy the Mermaid code into Markdown

## Dependencies for Mermaid Live Editor Hosting

* One Railway service built from `aalfath/mermaid-live-editor-railway-template` (a static site served by nginx)
* No database, volume or secret

### Deployment Dependencies

* Upstream project: [mermaid-js/mermaid-live-editor](https://github.com/mermaid-js/mermaid-live-editor) (pinned commit `d040b02`, live editor 2.0.67)
* Template repo, changelog and optional settings: [aalfath/mermaid-live-editor-railway-template](https://github.com/aalfath/mermaid-live-editor-railway-template)
* Mermaid syntax reference: [mermaid.js.org](https://mermaid.js.org)

### Implementation Details

After deploy, open `https://YOUR-DOMAIN/edit` and start typing. Bookmark or share the page URL to keep a diagram, because it holds the whole diagram. Anyone who has the URL can use the editor, but there's nothing on the server to read or change.

The "PNG/SVG link" and "Kroki" actions call the public mermaid.ink and kroki.io services from the visitor's browser. To change or turn them off, set `MERMAID_RENDERER_URL` or `MERMAID_KROKI_RENDERER_URL` on the service (an empty value hides the action) and redeploy, because these values are baked into the build. Downloading PNG or SVG from the editor itself works with no outside service.

To update, apply the "update available" notice in Railway, after reading the repo's `CHANGELOG.md`.

## Why Deploy Mermaid Live Editor on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Mermaid Live Editor on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/mermaid-live-edito-1
