Skip to content

Transform your GitHub workflow with AI. Get instant commit summaries, smart PR reviews, and intelligent code insights.

Notifications You must be signed in to change notification settings

abhinav-m22/repolix

Repository files navigation

Repolix: AI-Powered GitHub Repository Assistant

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.

🚀 Features

  • 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

📊 Technology Stack

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

🏗️ System Architecture

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
Loading

🚀 Getting Started

Prerequisites

  • Node.js 18+ and npm/bun
  • PostgreSQL database with vector extension
  • GitHub OAuth application

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/repolix.git
    cd repolix
  2. Install dependencies

    npm install
    # or
    bun install
  3. Set up environment variables

    cp .env.example .env
    # Edit .env with your configurations
  4. Set up the database

    npm prisma db push
    # or
    bun prisma db push
  5. Start the development server

    npm run dev
    # or
    bun dev

📚 Learn More

About

Transform your GitHub workflow with AI. Get instant commit summaries, smart PR reviews, and intelligent code insights.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages