Skip to content

A modern web application that leverages Generative AI (Groq) to analyze, review, and optimize source code. Built with Python Flask backend and html,css,js. !

Notifications You must be signed in to change notification settings

ash-the-bot/coderefine_genai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

CodeRefine - AI-Powered Code Review & Optimization Engine

A modern, full-stack web application that leverages Generative AI (Groq llama ) to analyze, review, and optimize source code. Built with Python Flask backend and vanilla JavaScript frontend.

CodeRefine Banner Python JavaScript

🚀 Features

✅ Fully Implemented Features

Authentication & Security

  • ✅ User signup with username, email, and password
  • ✅ Secure login with Supabase authentication
  • ✅ Password reset functionality
  • ✅ Session management with JWT tokens
  • ✅ Logout functionality

Code Analysis

  • Multi-language support: Python, JavaScript, Java, C++, Go
  • Automated code review with AI-powered analysis
  • Bug detection - Identifies errors and potential issues
  • Performance optimization suggestions
  • Best practice violations detection
  • Security vulnerability scanning

Code Refinement

  • Fix Bugs - Automatically corrects identified bugs
  • Improve Performance - Optimizes code for better performance
  • Refactor Code - Enhances code quality and maintainability

Complexity Analysis

  • Time Complexity calculation (Big O notation)
  • Space Complexity analysis
  • Nesting Depth measurement
  • Cyclomatic Complexity scoring

Code Editor

  • ✅ Syntax-aware text editor with line numbers
  • ✅ 500-line limit enforcement
  • ✅ Tab key support for indentation
  • ✅ Real-time character and line count
  • ✅ Full keyboard functionality (like Notepad)

Code Comparison

  • Before vs After side-by-side view
  • ✅ Complexity metrics comparison
  • ✅ Visual diff display

Export & Share

  • Download as TXT - Export refined code
  • Download as PDF - Print-optimized format
  • Share functionality - Generate shareable links
  • Apply Changes - Replace original code with optimized version

User Interface

  • ✅ Modern, gradient-based design

  • ✅ Responsive layout (mobile-friendly)

  • ✅ Toast notifications for user feedback

  • ✅ Loading indicators

  • ✅ Smooth animations and transitions

  • ✅ Dark theme optimized for coding

  • Code Analysis: ~2-5 seconds

  • Code Refinement: ~3-7 seconds

  • Authentication: <1 second

  • Frontend Load: <500ms

🔮 Future Enhancements

  • Real-time collaboration
  • Code history/versioning
  • Custom AI models
  • IDE integrations
  • Team workspaces
  • Advanced diff viewer
  • Code snippets library
  • Performance benchmarking

📝 License

This project is created for educational and demonstration purposes.

🎓 Technologies Used

Backend

  • Flask - Web framework
  • Google Generative AI - Code analysis
  • Supabase - Authentication
  • Flask-CORS - Cross-origin requests

Frontend

  • Vanilla JavaScript - No frameworks
  • CSS3 - Modern styling
  • HTML5 - Semantic markup

Services

  • Google Gemini - AI model
  • Supabase - Backend-as-a-Service

✨ Highlights

Zero Dead Buttons - Every feature is fully functional ✅ Real Authentication - Actual Supabase integration ✅ Live AI Analysis - Real Gemini API calls ✅ Modern UI - Professional, gradient-based design ✅ Mobile Responsive - Works on all devices ✅ Production Ready - Can be deployed immediately


Built with ❤️ using AI-powered development

About

A modern web application that leverages Generative AI (Groq) to analyze, review, and optimize source code. Built with Python Flask backend and html,css,js. !

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors