Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RepoLens AI 🔍

An AI-powered GitHub repository analyzer that generates engineering reports from any public GitHub repository using real static analysis and Gemini AI.

🌐 Live Demo: https://repolens-ai-nine.vercel.app

🔗 Backend: https://repolense-ai-server.onrender.com/api/health

Note: Backend is hosted on Render's free tier and may take 30–60 seconds to wake up.


✨ Features

  • 🔐 JWT Authentication
  • 📊 Repository metrics (Files, LOC, Languages, Folder Tree)
  • 🧠 AST-based JavaScript & TypeScript analysis
  • 🧬 Duplicate code detection
  • 📈 Repository quality score
  • 🤖 AI-generated engineering review (Gemini)
  • 📄 PDF report export
  • 🕒 Analysis history

🏗️ Architecture

React + Vite
      │
Express REST API
      │
MongoDB Atlas
      │
Git Clone → AST Analysis → Gemini AI → PDF Report

Built using MVC + Service Layer Architecture with modular services for scanning, analysis, scoring, AI, and PDF generation.


🛠️ Tech Stack

Frontend

React • Vite • Tailwind CSS • React Router • Axios • TanStack Query • Chart.js

Backend

Node.js • Express • MongoDB • JWT • bcrypt • simple-git • Puppeteer • Babel Parser

AI & Deployment

Gemini 2.5 Flash • MongoDB Atlas • Render • Vercel


🚀 Local Setup

git clone https://github.com/Hashmatcse/RepoLense_Ai.git
cd RepoLense_Ai

Backend

cd server
npm install

Create server/.env

PORT=5000
MONGO_URI=
JWT_SECRET=
GEMINI_API_KEY=
CLIENT_URL=http://localhost:5173
npm run dev

Frontend

cd client
npm install

Create client/.env

VITE_API_URL=http://localhost:5000/api
npm run dev

📡 Main APIs

  • POST /api/auth/register
  • POST /api/auth/login
  • POST /api/repos/analyze
  • GET /api/repos/history
  • GET /api/repos/:id
  • GET /api/repos/:id/pdf

📸 Screenshots

Screenshot 2026-07-10 162333 Screenshot 2026-07-10 162434 Screenshot 2026-07-10 162309 Screenshot 2026-07-10 162449 Screenshot 2026-07-10 162504

📄 License

MIT

Releases

Packages

Contributors

Languages