GitFlow-AI is a web application that analyzes GitHub repositories using Google Gemini 2.0 Flash API. The interface resembles ChatGPT with a clean, conversational design, allowing users to gain insights about any public GitHub repository.
- Repository Analysis: Analyze public GitHub repositories for code quality, structure, and patterns
- AI-Powered Insights: Get intelligent analysis using Google Gemini 2.0 Flash API
- Interactive Q&A: Ask follow-up questions about the repository in a chat-like interface
- Modern UI: Clean, responsive design with dark/light theme support
- Frontend: Next.js with TypeScript and Tailwind CSS
- UI Components: shadcn UI for consistent design
- State Management: Zustand for global state
- API Integration: GitHub API and Google Gemini API
- Styling: Tailwind CSS with responsive design
- Node.js 18+ installed
- Google Gemini API key
- Clone the repository
- Install dependencies:
npm install- Create a
.env.localfile in the root directory with the following variables:
# Google Gemini API Key (required for AI analysis)
GEMINI_API_KEY=your_gemini_api_key
# Application URL (optional, for deployment)
NEXT_PUBLIC_APP_URL=your_app_url
- Start the development server:
npm run dev- Open http://localhost:3000 in your browser
- Enter a public GitHub repository URL in the input field
- Click "Analyze" to start the analysis process
- Wait for the analysis to complete
- View the AI-generated summary and insights
- Ask follow-up questions in the chat interface
/api/validate-repo- Validates GitHub repository URLs/api/analyze-repo- Analyzes repositories using GitHub API and Gemini AI/api/chat- Handles follow-up questions in the context of the analyzed repository
This application can be easily deployed to Vercel:
npm run buildThen deploy using the Vercel CLI or GitHub integration.
MIT