Help us improve
Share bugs, ideas, or general feedback.
Codebase visualization plugin for Claude Code — generates validated SVG diagrams
npx claudepluginhub mikegazzaruso/codemapGenerate architecture, dependency, flow, and ER diagrams as validated SVGs from any codebase.
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
No description available.
Code intelligence powered by a knowledge graph — execution flows, blast radius, and semantic search
Share bugs, ideas, or general feedback.
Generate professional Mermaid diagrams from your codebase with a single command.
| Command | Description |
|---|---|
/codemap:architecture | Full system architecture diagram |
/codemap:deps | Module dependency graph with circular dependency detection |
/codemap:flow <target> | Flowchart for a specific function or endpoint |
/codemap:er | Entity-relationship diagram from models/schemas |
Each command produces:
./codemap-output/<type>.svg in your project root.The SVG is generated via @mermaid-js/mermaid-cli and validated automatically — if rendering fails, the plugin reads the error, fixes the Mermaid code, and retries until the SVG is valid.
| Command | SVG path |
|---|---|
architecture | ./codemap-output/architecture.svg |
deps | ./codemap-output/deps.svg |
flow <target> | ./codemap-output/flow-<target>.svg |
er | ./codemap-output/er.svg |
npx available in PATHThe plugin uses npx -y @mermaid-js/mermaid-cli to render SVGs on-the-fly — no global install needed. If npx is not available, install the CLI globally:
npm install -g @mermaid-js/mermaid-cli
From your terminal, run:
claude plugin marketplace add mikegazzaruso/codemap
claude plugin install codemap@codemap-marketplace
Then restart Claude Code to load the plugin.
claude plugin update "codemap@codemap-marketplace"
Restart Claude Code after updating.
/codemap:architecture
Produces a graph TD diagram showing system layers, components, and communication protocols.
/codemap:deps
Produces a graph LR diagram mapping inter-module imports. Highlights circular dependencies when found.
/codemap:flow handleCheckout
Produces a flowchart TD tracing the execution path of a function, including branches, error handling, and external calls.
/codemap:er
Produces an erDiagram with entities, attributes, types, and relationship cardinality extracted from your ORM models, migrations, or schema definitions.
Works with any language and framework. The plugin analyzes your project structure, config files, imports, and model definitions regardless of tech stack.
Mike Gazzaruso
MIT