{"id":47737796,"url":"https://github.com/caoergou/mermzen","last_synced_at":"2026-04-02T23:01:37.367Z","repository":{"id":340699765,"uuid":"1167147200","full_name":"caoergou/MermZen","owner":"caoergou","description":"A clean, lightweight Mermaid diagram editor — hand-drawn style, live preview, and one-click export.","archived":false,"fork":false,"pushed_at":"2026-03-26T02:08:52.000Z","size":17450,"stargazers_count":31,"open_issues_count":6,"forks_count":3,"subscribers_count":16,"default_branch":"main","last_synced_at":"2026-03-26T12:53:42.076Z","etag":null,"topics":["codemirror","diagram","diagram-editor","flowchart","hand-drawn","mermaid","online-editor","png-export","static-site","svg","zero-dependency"],"latest_commit_sha":null,"homepage":"https://eric.run.place/MermZen/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caoergou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-26T01:42:39.000Z","updated_at":"2026-03-26T02:06:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/caoergou/MermZen","commit_stats":null,"previous_names":["caoergou/mermaid-pic","caoergou/mermzen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/caoergou/MermZen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoergou%2FMermZen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoergou%2FMermZen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoergou%2FMermZen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoergou%2FMermZen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caoergou","download_url":"https://codeload.github.com/caoergou/MermZen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caoergou%2FMermZen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31318133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T21:35:00.834Z","status":"ssl_error","status_checked_at":"2026-04-02T21:34:59.806Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codemirror","diagram","diagram-editor","flowchart","hand-drawn","mermaid","online-editor","png-export","static-site","svg","zero-dependency"],"created_at":"2026-04-02T23:01:36.440Z","updated_at":"2026-04-02T23:01:37.349Z","avatar_url":"https://github.com/caoergou.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MermZen\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"logo.svg\" alt=\"MermZen Logo\" width=\"160\" height=\"160\" /\u003e\n\u003c/p\u003e\n\n[![Deploy to GitHub Pages](https://github.com/caoergou/mermzen/actions/workflows/deploy.yml/badge.svg)](https://github.com/caoergou/mermzen/actions/workflows/deploy.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![GitHub stars](https://img.shields.io/github/stars/caoergou/mermzen)](https://github.com/caoergou/mermzen/stargazers)\n\n**MermZen** is an out-of-the-box Mermaid diagram editor. Open it, write syntax, see your diagram — that's the whole experience. No setup, no friction, just the diagram.\n\nThe name blends **Mermaid** (the diagram syntax) and **Zen** (simplicity). Design and lightness are the point.\n\n**Live demo: [MermZen](https://eric.run.place/MermZen/)**\n\n[中文文档](README.zh.md)\n\n---\n\n## Preview\n\n### Editor Interface\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"assets/editor-en.png\"\u003e\u003cimg src=\"assets/editor-en.png\" alt=\"MermZen editor in light mode\" width=\"46%\" style=\"border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\" loading=\"lazy\" /\u003e\u003c/a\u003e\n  \u0026nbsp;\n  \u003ca href=\"assets/editor-en-dark.png\"\u003e\u003cimg src=\"assets/editor-en-dark.png\" alt=\"MermZen editor in dark mode\" width=\"46%\" style=\"border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\" loading=\"lazy\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n### Feature Showcase\n\nMermZen supports a rich set of themes and style combinations to easily meet different scenario needs:\n\n\u003cdiv style=\"display: flex; align-items: center; gap: 24px; margin-bottom: 40px;\"\u003e\n  \u003cdiv style=\"flex: 1; text-align: center;\"\u003e\n    \u003cimg src=\"assets/preview-flowchart-en.png\" alt=\"Hand-drawn style + Default theme\" style=\"max-width: 400px; width: 80%; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\" loading=\"lazy\"\u003e\n  \u003c/div\u003e\n  \u003cdiv style=\"flex: 1;\"\u003e\n    \u003ch4\u003e🎨 \u003ca href=\"https://eric.run.place/MermZen/#H4sIAAAAAAAAA4WQTU/DMBCF_8qtc6iCBxR0oUFBhQMHDp0KdO3SapteiLQla0pE_fetLg7jYZ3yOO/znPNwePmW5VKpVKkeSFrRzJmCGE0wmVCutTOtWhWWqsUd9cU/Gtvbudl20KWdbPWG1DIzKYkjMdbGbS3OJEM0vLt6kb9ql8/dEtpfOel9NjfR9S9ntuYVvU6i/Xv9ls+/y1sfZ/JPF/M6z/P8nl/H5z/P63/P9X/P9n/P93/P+3/P/X/P/H/P/+f/H/P//HwD5/KfH/CgB8AAA==\" target=\"_blank\"\u003eHand-drawn Style + Default Theme\u003c/a\u003e\u003c/h4\u003e\n    \u003cul\u003e\n      \u003cli\u003eSmooth hand-drawn lines with built-in design sense\u003c/li\u003e\n      \u003cli\u003eBuilt-in Chinese and English handwriting font support\u003c/li\u003e\n      \u003cli\u003eIdeal for PPT presentations, blog illustrations, personal notes, etc.\u003c/li\u003e\n      \u003cli\u003eExported images and SVGs include embedded fonts, display correctly everywhere\u003c/li\u003e\n    \u003c/ul\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n\n\u003cdiv style=\"display: flex; align-items: center; gap: 24px; margin-bottom: 40px;\"\u003e\n  \u003cdiv style=\"flex: 1;\"\u003e\n    \u003ch4\u003e🌲 \u003ca href=\"https://eric.run.place/MermZen/#H4sIAAAAAAAAA52QQQ6DMBBE7/kVJ0xBBG0gVJBAgcOHDgU6dOk1TatEmxKlpCR9O9K2DcTBnfI43vOe83Bo11LpZqVQo15IatnMkYIYjTCZUK61M41aFZaqxR31xT8a29u52XbQpZ1s9YbUMjMpiSMx1sZtLc4kQzS8u3qRv2qXz90S2l856X02N9H1L2e25hW9TqL9e/2Wz7/LWx9n8k8X8zrP8/yeX8fnP8/rf8/1f8/2f8/3f8/7f8/9f8/8f8//5/8f8//8fAPn8p8f8KAHwAA?theme=forest\u0026handDrawn=false\" target=\"_blank\"\u003eStandard Style + Forest Theme\u003c/a\u003e\u003c/h4\u003e\n    \u003cul\u003e\n      \u003cli\u003eProfessional and clean standard line style\u003c/li\u003e\n      \u003cli\u003eForest green theme, eye-friendly and beautiful\u003c/li\u003e\n      \u003cli\u003eSuitable for technical documentation, enterprise architecture diagrams, formal reports, etc.\u003c/li\u003e\n      \u003cli\u003eSupports 5 official themes, freely switchable\u003c/li\u003e\n    \u003c/ul\u003e\n  \u003c/div\u003e\n  \u003cdiv style=\"flex: 1; text-align: center;\"\u003e\n    \u003cimg src=\"assets/preview-architecture-en.png\" alt=\"Standard style + Forest theme\" style=\"max-width: 400px; width: 80%; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); filter: hue-rotate(80deg) saturate(0.7);\" loading=\"lazy\"\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n\n\u003cdiv style=\"display: flex; align-items: center; gap: 24px; margin-bottom: 20px;\"\u003e\n  \u003cdiv style=\"flex: 1; text-align: center;\"\u003e\n    \u003cimg src=\"assets/preview-sequence-en.png\" alt=\"Hand-drawn style + Grid background\" style=\"max-width: 400px; width: 80%; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\" loading=\"lazy\"\u003e\n  \u003c/div\u003e\n  \u003cdiv style=\"flex: 1;\"\u003e\n    \u003ch4\u003e🧩 \u003ca href=\"https://eric.run.place/MermZen/#H4sIAAAAAAAAA61TTY/TMBD9K5RXQQgJCQA0gEC6oBqL1ddNlTpLqk90xYbEtluyrEiv99xO2kS7dOGFjJmff9+bN39swYbXSpN6pUqZKkZapzJmGCEUzmVCutTGNRlSWqgU99cU/Gttbuel22KWdbPWm1DIzKYkjMdbGbS3OJEM0vLt6kb9ql8/dEtpfOel9NjfR9S9ntuYVvU6i/Xv9ls+/y1sfZ/JPF/M6z/P8nl/H5z/P63/P9X/P9n/P93/P+3/P/X/P/H/P/+f/H/P//HwD5/KfH/CgB8AAA==\" target=\"_blank\"\u003eHand-drawn Style + Grid Background\u003c/a\u003e\u003c/h4\u003e\n    \u003cul\u003e\n      \u003cli\u003eGrid background for easy alignment and proportional reference\u003c/li\u003e\n      \u003cli\u003eSupports four background types: white, black, transparent, grid\u003c/li\u003e\n      \u003cli\u003eFreely choose background type when exporting\u003c/li\u003e\n      \u003cli\u003eGrid background only shows in preview and export, does not affect SVG's transparent background\u003c/li\u003e\n    \u003c/ul\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\u003cem\u003e💡 Click the title to edit the corresponding diagram online, freely switch styles and themes\u003c/em\u003e\u003c/p\u003e\n\n---\n\n## Why MermZen\n\nMermaid's official live editor is cluttered and overcomplicated: AI upsells, membership prompts, and redundant panels crowd the screen. The interface keeps growing heavier — you just want to write syntax and see a diagram, but instead you're navigating a product that has lost sight of that.\n\nMermZen fills that gap: a CodeMirror 6 editor with Mermaid-aware syntax highlighting, inline error hints with line numbers, and a full keyboard shortcut system. Diagrams are encoded directly in the URL hash, so sharing requires no backend, no account, and no expiring links — just copy the URL.\n\n---\n\n## Features\n\n**Editor**\n\n- CodeMirror 6 with Mermaid syntax highlighting and autocomplete\n- Inline error display pinpointed to the exact line\n- Code formatter and command palette (`Ctrl+K`)\n- Full keyboard shortcut system\n\n**Preview**\n\n- Live rendering as you type (300ms debounce)\n- 11 diagram types: flowchart, sequence, class, Gantt, pie, mindmap, ER, state, architecture, gitGraph, block-beta\n- Pan, zoom, and checkerboard background for transparent diagrams\n- Right-click context menu for quick export\n\n**Output**\n\n- Export SVG or PNG (PNG rendered at 2× resolution)\n- Copy PNG directly to clipboard\n- Shareable URL — diagram state encoded in the URL hash, no server needed\n- Embeddable iframe via `embed.html` — paste `\u003ciframe src=\"…/embed.html#code\"\u003e` into any page for a live, hand-drawn diagram with zero dependencies\n\n**Appearance**\n\n- Hand-drawn style mode (with Chinese handwriting font support)\n- 5 Mermaid themes + dark / light UI toggle\n\n**Onboarding**\n\n- Built-in example templates\n- Interactive tour for first-time users\n\n---\n\n## Keyboard Shortcuts\n\n| Action | Shortcut |\n| --- | --- |\n| Save (choose format) | `Ctrl+S` |\n| Copy PNG | `Ctrl+Shift+C` |\n| Format code | `Ctrl+Shift+F` |\n| Command palette | `Ctrl+K` |\n| File / Edit / View / Help menu | `Alt+F/E/V/H` |\n| Switch preview background | `Alt+1/2/3/4` |\n\n## Tech Stack\n\n- [Vite 7](https://vitejs.dev/) — build tool, dev server, and module bundler\n- [TypeScript](https://www.typescriptlang.org/) — type safety (gradual migration, JS modules coexist)\n- [Mermaid 11](https://mermaid.js.org/) — diagram rendering\n- [CodeMirror 6](https://codemirror.net/) — code editor\n- [SVGO](https://github.com/svg/svgo) — SVG optimization on export\n- [pako](https://github.com/nodeca/pako) — deflate compression for shareable URLs\n\nAll production dependencies are bundled locally — no CDN required at runtime.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaoergou%2Fmermzen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaoergou%2Fmermzen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaoergou%2Fmermzen/lists"}