Answergit
AnswerGit is a platform that allows you to analyze Git repositories and ask AI questions about the code. It uses AI to provide detailed explanations and summaries of Git commands, workflows, and code structure, making it easier to understand and interact with code repositories.
Install / Use
/learn @TharaneshA/AnswergitREADME
AnswerGit 🤖
🚀 AI-Powered GitHub Repository Explorer | Understand codebases instantly with AI-driven insights
Features • Installation • Usage • Configuration
</div>🌟 Features
- 🤖 AI-Powered Analysis: Leverages Google's Gemini AI to provide intelligent insights about repositories
- 📁 Smart File Explorer: Navigate through repository files with ease
- 💬 Interactive Chat: Ask questions about the codebase and get detailed responses
- 🎨 Modern UI: Beautiful dark-mode interface built with TailwindCSS
- 🔄 Real-time Updates: Instant responses and updates as you explore
- 📱 Responsive Design: Works seamlessly on desktop and mobile devices
https://github.com/user-attachments/assets/e975a943-e512-445a-8b40-8061b18a9b16
<video> <source src='./public/answergit-demo.mp4' type='video/mp4'> Your browser does not support the video tag. </video>🚀 Installation
- Clone the repository
git clone https://github.com/TharaneshA/answergit.git
cd answergit
- Install dependencies
pnpm install
# or
npm install
# or
yarn install
# Alternatively, use Docker:
docker build -t answergit .
- Set up environment variables
Create a .env.local file in the root directory with the following variables:
GEMINI_API_KEY=your_gemini_api_key
GITHUB_TOKEN=your_github_token
🔧 Configuration
The project uses several key dependencies:
- Next.js for the framework
- React for the UI
- TailwindCSS for styling
- Google Generative AI for AI features
- GitHub API for repository interaction
Customize the application by modifying:
tailwind.config.tsfor stylingcomponents.jsonfor UI component settingsapp/globals.cssfor global styles
🚀 Usage
- Start the development server
pnpm dev
# or
npm run dev
# or
yarn dev
# Alternatively, run with Docker:
docker run -p 3000:3000 answergit
- Open your browser
Navigate to
http://localhost:3000
- Enter a GitHub repository Enter the username and repository name to start exploring
💡 Key Features Usage
AI Assistant
Use the AI assistant to:
- Analyze code structure
- Understand dependencies
- Get code explanations
- Generate test suggestions
File Explorer
- Navigate through repository files
- View file contents
- Get AI-powered insights for specific files
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Built with Next.js
- UI components from shadcn/ui
- AI powered by Google Gemini
<div align="center"> Made with ❤️ </div>
