RepoLens a multi AI agent tool for scanning GitHub repositories
1.9K
š Live Demo: https://repolens-0su3.onrender.comā
RepoLENS uses a multi-stage Docker architecture to package the React frontend and Flask backend into a single production-ready container. This approach reduces image size, simplifies deployment, and ensures a consistent runtime environment across local and cloud platforms.
[React Frontend] (Vite Production Build)
ā (Serves Static HTML/JS/CSS Chunks)
[Flask Backend] (WSGI Routing & Process Queue)
ā (Executes Codebase & PDF Analysis)
[LLM Runtime Layer] (Gemini / NVIDIA NIM Models)
| Layer | Component | Technical Payload |
|---|---|---|
| Frontend | React Client | Production compiled static SPA assets (HTML, CSS, JS) served from the backend's static context. |
| Backend | Flask API Server | Handles REST router paths, task queues, and runs the ReAct codebase analysis loop. |
| AI Models | LLM Interface | Integrates token calls via Google Gemini or NVIDIA NIM OpenAI-compatible APIs. |
The Dockerfile follows a two-stage build strategy to optimize the final image size and runtime performance.
FROM node:20 AS frontend-builder
Responsibilities:
frontend/dist directoryFROM python:3.11-slim
Responsibilities:
5000 [Source Code] (Vite React + Python Flask code)
ā
[Stage 1: Frontend Build] (Vite compilation in Node.js)
ā
[Static Assets] (frontend/dist production bundles)
ā
[Stage 2: Backend Build] (Assets copied to Flask directory)
ā
[Production Image] (Unified server container exposed on Port 5000)
docker build -t repolens:latest .
docker run -p 5000:5000 \
--env-file ./backend/.env \
repolens:latest
docker ps
docker logs <container_id>
docker stop <container_id>
LLM_PROVIDER=nvidia
API_KEY=<your_api_key>
MODEL=<model_name>
# NVIDIA Configuration
NVIDIA_API_KEY=<your_api_key>
NVIDIA_MODEL=meta/llama-3.1-8b-instruct
The Docker-based deployment model supports:
docker pull yogsaa/repolens:latest