RepoSort is a full-stack repository analysis platform with a Next.js frontend and a NestJS backend. The backend manages ingestion, graph generation, planning, analysis, verification, and workflow execution. The frontend provides the user interface for browsing repositories and viewing project-level outputs.
g-frontend/Next.js frontend built with React, TypeScript, Tailwind CSS, React Flow, and Dagre.g-backend/NestJS backend built with TypeScript, Prisma, PostgreSQL, BullMQ, Redis, and Gemini-based LLM services.g-backend/prisma/Prisma schema and database migrations.g-frontend/app/App Router pages and shared frontend layout.g-backend/src/Backend modules for projects, ingestion, graph, analysis, planning, runs, diffs, governance, queues, storage, and agent workflows.
- Node.js 20+
- npm
- PostgreSQL
- Redis
git clone https://github.com/channi23/RepoSort.git
cd RepoSortcd g-frontend
npm installcd ../g-backend
npm installCreate g-backend/.env:
PORT=3000
DATABASE_URL=postgresql://username:password@localhost:5432/reposort
GEMINI_API_KEY=your_api_key
GEMINI_MODEL=gemini-2.5-flash
GEMINI_REQUIRED=true
GEMINI_DEBUG_SOURCE=false
SANDBOX_ROOT=../sandboxes
ARTIFACTS_ROOT=../artifacts
REDIS_HOST=127.0.0.1
REDIS_PORT=6379Create g-frontend/.env.local:
NEXT_PUBLIC_BACKEND_URL=http://localhost:3000
NEXT_PUBLIC_DEV_SOURCE_ATTRIBUTION=falsecd g-backend
npx prisma migrate deployMake sure both services are running before starting the backend.
cd g-backend
npm run start:devBackend runs on http://localhost:3000.
cd g-frontend
npm run devFrontend runs on http://localhost:3001.
- Frontend home:
http://localhost:3001 - Repository explorer route:
http://localhost:3001/repos/<projectId>