architecture-diagram-generator
v0.4.16
Published
Automated Architecture Diagram Generator (v0.4.16) for Next.js projects. Scan codebases, classify layers, and generate interactive HTML dashboards and Mermaid diagrams.
Maintainers
Readme
Architecture Diagram Generator (v0.4.16)
Automated architecture overview
Understand your TypeScript architecture in seconds. Automated dependency analysis and architectural visualization for modern web projects.
Overview
Architecture Diagram Generator is a zero-config tool that transforms your codebase into high-fidelity architectural documentation. It performs deep semantic analysis using ts-morph to map connections, external integrations, and layers.
Key Features
- Automated Layer Classification: Intelligently categorizes modules into UI, API, and Core layers based on project structure.
- Deep Semantic Analysis: Detects real imports, dynamic calls, and external service integrations (fetch, axios, databases).
- Mermaid.js Integration: Generates deterministic Mermaid syntax for Git documentation and READMEs.
- Zero Configuration: Works out of the box for most Next.js and TypeScript projects.
Installation
npm install -g architecture-diagram-generatorUsage
Run the generator in your project root:
architecture-generator .Output Files
architecture.md: Static Mermaid diagram for GitHub/GitLab.architecture.json: Raw dependency graph data for programmatic use.architecture.html: Local interactive visualization.
Configuration
Custom rules can be defined in an optional architecture-config.json file in your project root:
{
"rootDir": "./src",
"exclude": ["**/*.test.ts", "**/node_modules/**"],
"layers": {
"UI": ["**/components/**"],
"API": ["**/api/**"],
"Core": ["**/services/**", "**/utils/**"]
}
}Development
npm install
npm run build
npm run diagram # Test in current directoryLicense
MIT
