Skip to content

Turn complex codebases into clear, navigable architecture diagrams with Claude Code.

290 B
Raw Blame

Lightweight Mermaid diagram parser and diff engine. parseMermaid() extracts node IDs and edges from diagram text using regex-based pattern matching. diffMermaid() compares two diagram versions and returns added/removed nodes and edges. formatDiff() renders the diff as human-readable text.