Repolix is a modern web application that transforms your GitHub workflow with AI-powered insights and repository analysis. It helps developers save time on code reviews, understand repositories faster, and collaborate more effectively.
- AI Repository Assistant: Ask questions about your codebase to get instant, contextual answers
- Intelligent Code Navigation: Find and understand code faster with AI-powered search
- Commit Summaries: Automatically generate summaries of code changes
- Repository Insights: Get deep analytics and metrics on your projects
- Team Collaboration: Invite team members to work together on projects
- Onboarding-Documentation: Generate and maintain documentation that stays up-to-date for new joiners
Repolix is built with the T3 Stack, featuring:
- Next.js - React framework with server-side rendering
- Clerk - Authentication and user management
- Prisma - Type-safe ORM for database operations
- PostgreSQL - Database with vector extension for embeddings
- tRPC - End-to-end typesafe API
- Tailwind CSS - Utility-first CSS framework
- Framer Motion - Animation library
- Gemini AI - Google's generative AI model
- Stripe - Payment processing
flowchart TD
subgraph Client ["Client Layer"]
UI["Next.js Frontend"]
Auth["Clerk Authentication"]
end
subgraph Backend ["Backend Infrastructure"]
API["tRPC API Layer"]
DB[("PostgreSQL Database")]
GitHub["GitHub Integration"]
Payment["Stripe Payment"]
end
subgraph AILayer ["AI & Data Layer"]
subgraph VectorDB ["Vector Database"]
VectorStore["Vector Storage"]
Embeddings["Code Embeddings"]
end
subgraph AIServices ["AI Services"]
RAG["Retrieval Augmented Generation"]
GeminiAI["Gemini AI Service"]
Summarization["AI Summarization"]
end
subgraph DataProcessing ["Data Processing"]
CodeIndexing["Code Indexing"]
CommitAnalysis["Commit Analysis"]
ContextBuilding["Context Building"]
end
end
subgraph Features ["Core Features"]
RepoAssistant["AI Repository Assistant"]
CodeNavigation["Intelligent Code Navigation"]
CommitSummaries["Commit Summaries"]
RepoInsights["Repository Insights"]
TeamCollab["Team Collaboration"]
OnboardingDocs["Onboarding Documentation"]
end
UI --> Auth
Auth --> API
UI --> API
API --> DB
API --> GitHub
API --> Payment
Features --> API
GitHub -.->|Repository Data| CodeIndexing
GitHub -.->|Commit History| CommitAnalysis
CodeIndexing --> Embeddings
Embeddings --> VectorStore
CommitAnalysis --> Summarization
Summarization -.->|AI Generated Summaries| DB
VectorStore --> ContextBuilding
ContextBuilding --> GeminiAI
RAG --> VectorStore
RAG --> GeminiAI
RepoAssistant -.->|Queries| RAG
OnboardingDocs -.->|Generate Docs| RAG
GeminiAI -.->|Contextual Responses| RepoAssistant
- Node.js 18+ and npm/bun
- PostgreSQL database with vector extension
- GitHub OAuth application
-
Clone the repository
git clone https://github.com/yourusername/repolix.git cd repolix -
Install dependencies
npm install # or bun install -
Set up environment variables
cp .env.example .env # Edit .env with your configurations -
Set up the database
npm prisma db push # or bun prisma db push -
Start the development server
npm run dev # or bun dev