An open API service indexing awesome lists of open source software.

https://github.com/ananyavrm04/codebase-analyzer

AI-Powered Tool that analyzes GitHub repositories and generates structured documentation, key insights, and code summaries using advanced LLMs.
https://github.com/ananyavrm04/codebase-analyzer

ai code-documentation devtools fastapi github-analyzer llm nlp project-analysis repo-summarizer

Last synced: 4 months ago
JSON representation

AI-Powered Tool that analyzes GitHub repositories and generates structured documentation, key insights, and code summaries using advanced LLMs.

Awesome Lists containing this project

README

          

# 🧠 Codebase Analyzer

An intelligent LLM-powered tool that downloads and analyzes GitHub repositories, automatically summarizing Python files using Together AI's models. Built with FastAPI and CLI support, it's designed for backend engineers and AI enthusiasts who want to explore and understand large codebases quickly.

## 🚀 Features

- 📥 Downloads GitHub repositories from URL input
- 📂 Extracts and parses all `.py` files
- 🧠 Summarizes code using Together AI (Llama/Mistral models)
- 📊 Calculates total/average lines and detects large files
- 🔗 Accessible via both **CLI** and **FastAPI API**
- ✅ Clean modular structure and secure API key usage

## 📁 Project Structure
codebase_analyzer/

├── app/
│ ├── github_utils.py # Repo downloading & extraction
│ ├── file_analyzer.py # Python file parsing
│ ├── llm_client.py # LLM summarization

├── main.py # FastAPI backend (optional)
├── run_analysis.py # CLI version (primary usage)
├── test_llm.py # Quick LLM summarization test
├── requirements.txt # Clean dependency list
└── README.md # You're here

## ⚙️ Installation

```bash
git clone https://github.com/your-username/codebase-analyzer.git
cd codebase-analyzer

# Setup virtual environment
python -m venv venv
venv\Scripts\activate # For Windows
# source venv/bin/activate # For macOS/Linux

# Install dependencies
pip install -r requirements.txt