Mermaid Diagrams
WordPress plugin for creating, managing, editing, and embedding Mermaid diagrams using Gutenberg, a React-based diagram library, Mermaid Live Editor, REST API, Interactivity API.
by WebFalcon · github.com/siter-place/mermaid-diagrams · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/siter-place/mermaid-diagrams/archive/refs/heads/main.zipReadme
Mermaid Diagrams — project scaffold
This repository is the implementation starting point for Mermaid Diagrams, a WordPress 7.0+ plugin by WebFalcon.
The package currently contains architecture, product specifications, environment configuration, test scaffolds, REST collection scaffolds, and phased coding-agent prompts. It intentionally does not contain a finished plugin implementation or vendored copies of reference projects.
Product identity
- Plugin name: Mermaid Diagrams
- PHP namespace:
WebFalcon\MermaidDiagrams - Technical prefix:
mdm - Block name:
mdm/diagram - REST namespace:
mdm/v1 - Minimum WordPress:
7.0 - Minimum PHP:
8.3
Start here
- Read
docs/00-product-charter-and-decisions.md. - Follow
docs/development/wp-env-wsl2-setup.md. - Install the project-scoped Agent Skills described in
docs/development/agent-skills-workflow.md. - Configure Playwright MCP from
.cursor/mcp.example.jsonand validate Bruno frombruno/README.md. - Execute the phases under
docs/plans/in numeric order.
Runtime surfaces
- Gutenberg block application — React/WordPress packages.
- Diagram Library administration application — React, informed by
getdokan/plugin-uipatterns. - Dedicated Diagram Editor — an adapted, pinned Mermaid Live Editor Svelte build.
- Published-page controls — WordPress Interactivity API store and directives.
- Later visual editor — adapter-based flowchart editor, delivered after the source editor is stable.
Local commands
The scripts are contracts for Phase 00. Dependencies and lockfiles must be created before they become executable.
npm install
npm run env:start
npm run build
npm run test
See docs/development/command-catalog.md for the complete target command set.
Package outputs
The final delivery provides both a full project scaffold ZIP and a docs-only ZIP. Third-party tool source and Agent Skill repositories are intentionally excluded; install them locally using the documented commands.