A web application that analyzes GitHub repositories and generates comprehensive documentation about their features, functions, and structure.
- API-Based Analysis: Uses GitHub's API to analyze repositories without local cloning
- Repository Overview: Provides basic information about the repository (stars, forks, etc.)
- Code Analysis: Identifies key functions and classes in the codebase
- Technology Detection: Automatically detects programming languages and frameworks
- Structure Visualization: Displays the repository's directory structure
- Documentation Export: Generates downloadable Markdown documentation
| Overview | Structure | Code Analysis |
|---|---|---|
![]() |
![]() |
![]() |
-
Clone this repository:
git clone https://github.com/dwarshb/github-repository-analyzer.git cd github-repository-analyzer -
Install dependencies:
pip install -r requirements.txt
-
Run the application:
python github_analyzer_web.py
-
Open your browser and navigate to
http://localhost:5000
- Enter a GitHub repository URL in the form (e.g.,
https://github.com/username/repository) - Optionally provide a GitHub API token for higher rate limits and access to private repositories
- Click "Analyze Repository" and wait for the analysis to complete
- View the generated documentation and download it if needed
You can also use the analyzer programmatically through the API:
curl -X POST http://localhost:5000/api/analyze \
-H "Content-Type: application/json" \
-d '{"repo_url": "https://github.com/username/repository", "github_token": "your_token"}'├── github_analyzer_api.py # GitHub API interaction module
├── github_analyzer_web.py # Flask web application
├── requirements.txt # Python dependencies
├── templates/ # HTML templates
│ ├── index.html # Main page template
│ └── results.html # Results page template
└── README.md # This file
- API Integration: The application uses GitHub's REST API to fetch repository data
- Code Analysis: It analyzes code files to extract functions, classes, and other elements
- Feature Detection: It identifies technologies based on file patterns and code signatures
- Documentation Generation: It creates a structured Markdown document with all findings
- Add code quality metrics
- Generate dependency graphs
- Implement deeper code analysis for specific languages
- Add user authentication for saving analysis results
- Support for GitLab and Bitbucket repositories
MIT License



