Skip to content

Latest commit

Β 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Code Insight Dev

πŸ€– AI-Powered Pull Request Review & Code Analysis Platform

Analyze any GitHub Pull Request using Google Gemini Flash, generate intelligent review reports, export them as PDF or Markdown, and improve code quality with actionable recommendations.

πŸŒ™ Dark Mode β€’ β˜€οΈ Light Mode β€’ πŸ“„ PDF Export β€’ πŸ“ Markdown Export β€’ πŸ“‹ Copy Report


React Go Gin Gemini TailwindCSS License


πŸ“– Overview

Code Insight Dev is an AI-powered Pull Request Review platform designed to help developers understand the quality of their code before merging.

Simply paste a GitHub Pull Request URL, and the system automatically analyzes the PR using the Google Gemini Flash API.

The application generates a clean, structured review including:

  • πŸ“‹ Pull Request Summary
  • πŸ“Š Code Health Score
  • βœ… Best Practices
  • ⚠️ Issues & Risks
  • πŸ’‘ AI Recommendations
  • πŸ“ Detailed Review Report

Users can then:

  • πŸ“„ Export reports as PDF
  • πŸ“ Export reports as Markdown
  • πŸ“‹ Copy the report with one click
  • πŸŒ™ Switch between Dark & Light themes

✨ Features

πŸ€– AI Code Review

  • Analyze GitHub Pull Requests
  • AI-generated review using Gemini Flash
  • Human-friendly explanations
  • Instant feedback

πŸ”— Pull Request URL Analysis

Simply paste:

https://github.com/owner/repository/pull/123

The application automatically:

  • Fetches PR information
  • Reads changed files
  • Sends code to Gemini Flash
  • Generates an intelligent review report

πŸ“Š Smart Report Includes

βœ… Pull Request Summary

βœ… Code Quality Analysis

βœ… Code Health Status

  • 🟒 Healthy
  • 🟑 Needs Improvement
  • πŸ”΄ Critical Issues

βœ… Bugs & Risks

βœ… Performance Suggestions

βœ… Security Recommendations

βœ… Best Practices

βœ… Overall Recommendation


πŸ“„ Export Options

Generate reports as:

  • πŸ“„ PDF
  • πŸ“ Markdown (.md)

Perfect for:

  • Documentation
  • Team Reviews
  • Project Records
  • Technical Reports

πŸ“‹ Copy Report

Copy the complete AI-generated report to your clipboard with one click.

Perfect for:

  • GitHub Comments
  • Slack
  • Teams
  • Documentation
  • Notion

πŸŒ— Beautiful UI

βœ” Modern Design

βœ” Responsive Layout

βœ” Dark Mode

βœ” Light Mode

βœ” Smooth User Experience


πŸ›  Tech Stack

Frontend

  • βš› React
  • 🎨 Tailwind CSS
  • πŸ“¦ Axios
  • πŸŒ™ Dark/Light Theme

Backend

  • 🐹 Go
  • 🍸 Gin Framework
  • πŸ€– Google Gemini Flash API
  • REST API

βš™οΈ How It Works

Paste Pull Request URL
          β”‚
          β–Ό
Backend (Go + Gin)
          β”‚
          β–Ό
Fetch Pull Request Data
          β”‚
          β–Ό
Send Code to Gemini Flash
          β”‚
          β–Ό
AI Review & Analysis
          β”‚
          β–Ό
Generate Smart Report
          β”‚
          β”œβ”€β”€β”€β”€β”€β”€β”€β”€β–Ί Copy Report
          β”œβ”€β”€β”€β”€β”€β”€β”€β”€β–Ί Export PDF
          └────────► Export Markdown

πŸ“· Report Output

The generated report includes:

πŸ“ Pull Request Summary

A concise explanation of what the PR changes.


πŸ’š Code Health

Overall project health rating.

Example:

🟒 Healthy

or

🟑 Needs Improvements

⚠ Issues Found

  • Potential bugs
  • Code smells
  • Performance issues
  • Security concerns

πŸ’‘ AI Recommendations

Suggestions to improve:

  • Readability
  • Performance
  • Maintainability
  • Best Practices

βœ… Final Recommendation

Example:

βœ” Ready to Merge

or

⚠ Needs Further Review


πŸš€ Installation

Clone Repository

git clone https://github.com/yourusername/Code-Insight-Dev.git

Frontend

cd frontend

npm install

npm run dev

Backend

cd backend

go mod tidy

go run main.go

πŸ”‘ Environment Variables

Create a .env file.

GEMINI_API_KEY=YOUR_API_KEY

πŸ“ Project Structure

Code-Insight-Dev

β”œβ”€β”€ frontend
β”‚
β”œβ”€β”€ backend
β”‚
β”œβ”€β”€ reports
β”‚
β”œβ”€β”€ docs
β”‚
└── README.md

🎯 Future Improvements

  • πŸ”₯ GitHub OAuth Login
  • πŸ€– Multi-AI Model Support
  • πŸ“ˆ PR Analytics Dashboard
  • πŸ“Š Charts & Metrics
  • πŸ“Œ Review History
  • πŸ”” Notifications
  • 🌍 Multi-language Support
  • 🧠 AI Chat Assistant for Pull Requests
  • πŸš€ Deployment Support
  • ⭐ Team Collaboration

🀝 Contributing

Contributions are always welcome!

Feel free to:

  • Fork the repository
  • Create a feature branch
  • Commit your changes
  • Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License.


πŸ‘©β€πŸ’» Author

Dilu Tharushika

πŸ’Ό Full Stack Developer

🌐 Passionate about building AI-powered developer tools using modern web technologies.


⭐ If you found this project useful, please consider giving it a Star!

Made with ❀️ using Go, Gin, React, and Google Gemini Flash

About

Code Insight Dev is an AI-powered Pull Request Review platform designed to help developers understand the quality of their code before merging. Simply paste a GitHub Pull Request URL, and the system automatically analyzes the PR using the Google Gemini Flash API.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages