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.
- 🔐 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
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.
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
git clone https://github.com/Hashmatcse/RepoLense_Ai.git
cd RepoLense_Aicd server
npm installCreate server/.env
PORT=5000
MONGO_URI=
JWT_SECRET=
GEMINI_API_KEY=
CLIENT_URL=http://localhost:5173npm run devcd client
npm installCreate client/.env
VITE_API_URL=http://localhost:5000/apinpm run devPOST /api/auth/registerPOST /api/auth/loginPOST /api/repos/analyzeGET /api/repos/historyGET /api/repos/:idGET /api/repos/:id/pdf
MIT