Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Generate architecture, dependency, flow, and ER diagrams as validated SVGs from any codebase.
npx claudepluginhub mikegazzaruso/codemap --plugin codemapGenerate a full architecture diagram of the current project
Generate a module dependency graph for the current project
Generate an entity-relationship diagram from models and schemas
Generate a flowchart for a specific function or endpoint
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
Share bugs, ideas, or general feedback.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Codebase visualization — generates architecture, data flow, dependency, call chain, community detection, and class diagrams via Mermaid Chart MCP
Analyzes a codebase and generates animated HTML architecture reports — diagrams, data flows, component directories, metrics, and insights.
Diagrams-as-code tools for visualizing code, data, and systems using Mermaid and PlantUML
Turn complex codebases into clear, navigable architecture diagrams
Generate, validate, render Mermaid diagrams from text or code
Codebase diagram generation for tldiagram.com
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim