A powerful repository mapping and analysis tool that helps developers understand and visualize codebases through advanced parsing and graph-based analysis.
- Multi-language support (JavaScript, TypeScript, Python)
- Code structure analysis using tree-sitter
- Graph-based codebase visualization using graphology
- Dependency mapping and metrics calculation
- Repository structure analysis
npm install codebolt-repomap
- Node.js (LTS version recommended)
- npm or yarn
This project uses several powerful libraries:
-
Parsing:
tree-sitter
: For precise code parsing- Language support for JavaScript, TypeScript, and Python
-
Graph Analysis:
graphology
: Core graph data structures and algorithmsgraphology-metrics
: Advanced graph metrics and analysis
-
Utilities:
fs-extra
: Enhanced file system operationslodash
: Utility functionstmp
: Temporary file handling
- Clone the repository:
git clone https://github.com/codeboltutils/repomap.git
cd repomap
- Install dependencies:
npm install
The project uses both Jest and Mocha for testing:
npm test
repomap/
├── src/
│ ├── queries/ # Query definitions and handlers
│ └── utils/
│ └── treeHelper/ # Tree parsing and manipulation utilities
├── test/ # Test files
└── package.json # Project configuration and dependencies
ISC
Contributions are welcome! Please feel free to submit a Pull Request.
Current version: 1.1.1