mikegazzaruso/codemap
mikegazzaruso/codemap · 2 stars · 1 plugin
Marketplace Generate architecture, dependency, flow, and ER diagrams as validated SVGs from any codebase — Claude Code plugin
Install
/plugin marketplace add mikegazzaruso/codemapRun inside Claude Code, then install plugins from it. Check the repo's README before you run it.
Plugins 1
After adding the marketplace, install one with /plugin install <name>@codemap-marketplace.
- 1codemapGenerate architecture, dependency, flow, and ER diagrams as validated SVGs from any codebase.
/plugin install codemap@codemap-marketplace
Files
codemap
Generate professional Mermaid diagrams from your codebase with a single command.
Commands
| 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 |
Output
Each command produces:
- A fenced Mermaid code block that renders natively on GitHub, GitLab, Notion, Obsidian, and any Markdown viewer that supports Mermaid.
- A rendered SVG file saved to
./codemap-output/<type>.svgin 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.
Output files
| 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 |
Prerequisites
- Node.js (v18+) with
npxavailable in PATH
The 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
Install
From your terminal, run:
claude plugin marketplace add mikegazzaruso/codemap claude plugin install codemap@codemap-marketplace
Then restart Claude Code to load the plugin.
Update
claude plugin update "codemap@codemap-marketplace"
Restart Claude Code after updating.
Examples
Architecture
/codemap:architecture
Produces a graph TD diagram showing system layers, components, and communication protocols.
Dependencies
/codemap:deps
Produces a graph LR diagram mapping inter-module imports. Highlights circular dependencies when found.
Flow
/codemap:flow handleCheckout
Produces a flowchart TD tracing the execution path of a function, including branches, error handling, and external calls.
Entity-Relationship
/codemap:er
Produces an erDiagram with entities, attributes, types, and relationship cardinality extracted from your ORM models, migrations, or schema definitions.
Supported Stacks
Works with any language and framework. The plugin analyzes your project structure, config files, imports, and model definitions regardless of tech stack.
Author
Mike Gazzaruso
License
MIT
{
"name": "codemap-marketplace",
"owner": {
"name": "Mike Gazzaruso"
},
"metadata": {
"description": "Codebase visualization plugin for Claude Code — generates validated SVG diagrams",
"version": "1.1.0"
},
"plugins": [
{
"name": "codemap",
"description": "Generate architecture, dependency, flow, and ER diagrams as validated SVGs from any codebase.",
"version": "1.1.0",
"author": {
"name": "Mike Gazzaruso"
},
"source": {
"source": "github",
"repo": "mikegazzaruso/codemap"
},
"homepage": "https://github.com/mikegazzaruso/codemap",
"repository": "https://github.com/mikegazzaruso/codemap",
"license": "MIT",
"category": "visualization",
"tags": [
"mermaid",
"svg",
"diagrams",
"architecture",
"visualization",
"dependencies",
"flowchart",
"er-diagram"
]
}
]
}Facts
- Kind
- Marketplace
- Repo
- mikegazzaruso/codemap
- Group
- Uncategorized
- Stars
- 2
- Marketplace name
- codemap-marketplace
- Owner
- Mike Gazzaruso
- Created
- 2026-02-02
- Last push
- 2026-02-02
- Plugins
- 1
Next on this shelf
- 1656misfitdev/claude-pluginsmisfitdev/claude-plugins2
- 1657moonklabs/aiwfmoonklabs/aiwf2
- 1658MoveIndustries/move-skillsMoveIndustries/move-skills2
- 1659nanasess/eccube-dev-agentsnanasess/eccube-dev-agents2
- 1660narumiruna/context7-skills-skillnarumiruna/context7-skills-skill2
- 1661nickth3man/claude_marketnickth3man/claude_market2