A command-line tool for analyzing Git repositories and extracting code structure information. Supports both Python and TypeScript codebases.
- Install Python dependencies:
pip install -r requirements.txt
- Install Node.js dependencies (required for TypeScript analysis):
npm install -g typescript
npm install -g ts-node
- Start analyzing a Git repository:
jo start /path/to/repository
- View the detailed analysis:
jo map /path/to/repository
You can also get the output in JSON format:
jo map /path/to/repository --format json
Clear all cached analyses:
jo drop
The analysis will:
- Analyze all Python and TypeScript files in the repository
- Extract information about:
- Functions and methods (with parameters and return types for TypeScript)
- Classes (with properties and inheritance for TypeScript)
- Interfaces (TypeScript)
- Type aliases (TypeScript)
- Store relationships between code elements
- Cache results in a local SQLite database
- Extracts functions, methods, and classes from Python code
- Analyzes TypeScript-specific features:
- Interfaces and their properties
- Type aliases and definitions
- Function parameter types and return types
- Class properties and inheritance
- Stores results in a local cache for quick access
- Simple command-line interface
- Multiple output formats (text and JSON)
- Python 3.6+
- Node.js 14+ and npm (for TypeScript analysis)
- Git