Multi-language repository analysis and interactive dependency visualization powered by AST parsing and graph-based architecture exploration.
RepoViz is a multi-language codebase visualization tool that helps developers understand complex software architectures through interactive dependency graphs and file-level code flow analysis.
The system automatically analyzes repositories, extracts dependencies using AST-based parsing, and generates browser-native visualizations for architecture exploration, debugging, onboarding, and refactoring.
RepoViz supports both:
- Local repositories
- Public GitHub repositories
without requiring any configuration setup.
- Interactive dependency graph visualization
- File-level code flow visualization
- Multi-language repository analysis
- AST-based dependency extraction using Tree-sitter
- GitHub repository analysis via URL
- Local repository support
- Circular dependency detection
- Metrics dashboard
- Search and filtering
- Zero-configuration workflow
- JSON and HTML export support
RepoViz currently supports:
| Language | Extensions |
|---|---|
| JavaScript | .js |
| TypeScript | .ts |
| JSX | .jsx |
| TSX | .tsx |
| Python | .py |
| Java | .java |
| Go | .go |
| Rust | .rs |
| C++ | .cpp |
| Ruby | .rb |
- TypeScript
- Node.js
- Express.js
- Tree-sitter
- vis.js
- simple-git
- fast-glob
- commander
- cors
- open
User Input
↓
Repository Loader
↓
File Scanner
↓
Language Detection
↓
Tree-sitter Parsing
↓
AST Generation
↓
Dependency Extraction
↓
Graph Builder
↓
Visualization Engine
↓
Interactive HTML Output
git clone https://github.com/divyansh-3371/RepoViz.git
cd RepoViznpm installnpm startThe application will start on:
http://localhost:3001
Paste a GitHub repository URL into the input field:
https://github.com/user/repository
RepoViz will:
- Shallow clone the repository
- Parse source files
- Extract dependencies
- Build dependency graphs
- Generate interactive visualization
Provide a local repository path:
C:/Projects/my-project
/home/user/project
The dependency graph provides:
- Interactive node exploration
- Dependency highlighting
- Zoom and pan support
- Search and filtering
- File metadata inspection
- Source files
- Import/dependency relationships
RepoViz also visualizes internal code structures such as:
- Functions
- Classes
- Loops
- Conditions
- Returns
- Exceptions
- Function calls
This enables developers to inspect internal file logic and control flow interactively.
RepoViz computes architectural metrics including:
- Lines of Code (LOC)
- File size
- In-degree
- Out-degree
- Dependency counts
- Circular dependencies
- File type distribution
These metrics help identify:
- Critical modules
- Tightly coupled files
- Architectural bottlenecks
src/
├── cli/ # Command-line interface
├── core/ # Graph construction & visualization
├── parsers/ # AST parsing and analysis
│ └── languages/ # Language profiles
├── server/ # Express server
└── utils/ # Utility functions
npm startOpen your browser:
http://localhost:3001
Then:
- Enter repository URL or local path
- Start analysis
- Explore dependency graph
- Inspect file-level code flow
- Export visualization
RepoViz includes:
- Unit Testing
- Integration Testing
- Functional Testing
- Edge Case Testing
npm test| Metric | Value |
|---|---|
| Test Suites | 5 |
| Total Tests | 102 |
| Pass Rate | 100% |
- Zero configuration
- Multi-language support
- Fast repository analysis
- Interactive exploration
- Browser-native visualization
- Lightweight architecture
- Local-first processing
- Static analysis only
- No runtime dependency tracing
- Dense visualization for extremely large repositories
- Dynamic imports may not always resolve completely
- Limited historical/version tracking
- Parallel processing
- Dynamic runtime analysis
- AI-powered querying
- Additional language support
- Graph clustering and grouping
- Cloud deployment
- Historical architecture evolution tracking
Modern developers spend most of their time understanding existing code rather than writing new functionality.
RepoViz reduces that cognitive overhead by automatically generating architectural insights from repositories with minimal setup.
It is especially useful for:
- Open-source contribution
- Developer onboarding
- Architecture analysis
- Refactoring
- Debugging
- Dependency inspection
- Phalak Bhatnagar
- Lakshya Veer Singh
- Divyansh Bansal
- Dr. K Rajalakshmi
This project is licensed under the MIT License.
Add screenshot here
/docs/screenshots/input-ui.png
Add screenshot here
/docs/screenshots/dependency-graph.png
Add screenshot here
/docs/screenshots/file-flow.png
https://github.com/divyansh-3371/RepoViz