Repo2diagram
Generate interactive architecture diagrams and dependency maps from any codebase using static import analysis and optional LLM labeling.
Repo2diagram turns any repository into an interactive architecture diagram by combining real static import analysis with optional local or cloud LLM labeling. It parses actual code references across Python, JavaScript, TypeScript, Go, Rust, C#, and JVM languages to construct an accurate structural map without hallucinations. Available as a CLI, a GitHub Action for pull request impact analysis, and an MCP server for AI coding assistants like Claude and Cursor, it enables developers to explore module dependencies, visualize branch blast radiuses, and export diagrams to Mermaid, Markdown, or interactive HTML.
主要功能
01Performs static import analysis across Python, JS/TS, Go, Rust, C#, and JVM languages without hallucinated dependencies
02Integrates natively as an MCP server with Claude Code, Claude Desktop, and Cursor for architecture queries
03Generates PR blast radius reports highlighting touched modules and downstream dependents both locally and in CI
04Runs entirely locally with Ollama support or in a pure static mode without sending code off-machine
05Exports interactive HTML, Markdown, raw Mermaid diagrams, or structured JSON graphs
060 GitHub stars
使用案例
01Onboarding onto unfamiliar codebases to rapidly understand high-level architecture and inter-module relationships
02Assessing pull request impact and downstream risk automatically during code review workflows
03Enabling AI coding assistants to query and inspect codebase architecture directly via MCP tools