A cutting-edge AI-powered code review platform that revolutionizes the way developers analyze, optimize, and improve their code. Built with modern web technologies and powered by Google's Gemini AI, DEV-LENS provides intelligent code analysis, error detection, and automated suggestions to enhance code quality and developer productivity.
β’ π Live Demo β’ π Documentation β’ π Report Issue β’ π€ Contribute
- β¨ Features
- π§° Tech Stack
- π Installation
- π§ͺ Usage
- π Project Structure
- πΊ Roadmap
- π€ Contributing
- π License
- π Acknowledgements
- π€ AI-Powered Analysis: Leverages Google's Gemini AI for intelligent code review and analysis
- π Multi-Language Support: Supports JavaScript, Python, Java, C++, and more programming languages
- β‘ Real-time Feedback: Instant code analysis and suggestions as you paste your code
- π Bug Detection: Identifies logical errors, potential runtime issues, and code smells
- π Security Analysis: Highlights security vulnerabilities and unsafe coding practices
- π Performance Optimization: Spots inefficient patterns and suggests performance improvements
- π¨ Modern UI: Clean, responsive interface that works on desktop and mobile devices
- π Copy-Friendly Output: Easy-to-copy suggestions and formatted recommendations
- π Fast Processing: Optimized for quick analysis and response times
- π Best Practices: Enforces coding standards and industry best practices
- Node.js (v16.0.0 or higher)
- npm package manager
- Git for version control
- Google Gemini API Key (for AI functionality)
-
Clone the repository
git clone https://github.com/H0NEYP0T-466/DEV-LENS.git cd DEV-LENS -
Install frontend dependencies
npm install
-
Install backend dependencies
cd backend npm install -
Set up environment variables
# Create .env file in backend directory cd backend echo "geminiApiKey=your_gemini_api_key_here" > .env
-
Start the development servers
# Terminal 1: Start backend server cd backend npm start # Terminal 2: Start frontend development server cd .. npm run dev
-
Open your browser
- Frontend:
http://localhost:5173 - Backend API:
http://localhost:8000
- Frontend:
- Navigate to the application at
http://localhost:5173 - Paste your code into the text area on the main page
- Click "Review Code" to get AI-powered analysis
- Review the feedback including bugs, optimizations, and security suggestions
- Copy and implement the suggested improvements
Base URL: http://localhost:8000
Endpoint: POST /reveiw
Request Body:
{
"code": "your code here"
}Example Request:
curl -X POST http://localhost:8000/reveiw \
-H "Content-Type: application/json" \
-d '{"code": "function add(a, b) { return a + b; }"}'Response:
{
"analysis": "AI-generated code review and suggestions"
}DEV-LENS/
βββ π Router/ # Application routing components
β βββ Router.jsx
βββ π backend/ # Backend API server
β βββ π controller/
β β βββ controller.js # API route handlers
β βββ π model/
β β βββ ai_model.js # AI integration logic
β βββ .gitignore
β βββ index.js # Express server entry point
β βββ package.json # Backend dependencies
β βββ package-lock.json
βββ π docs/ # Documentation files
β βββ documentation-generator-prompt.md
βββ π public/ # Static assets
β βββ favi.jpg # Favicon
β βββ vite.svg
βββ π src/ # Frontend source code
β βββ π components/
β β βββ Nav_bar.css # Navigation styles
β β βββ Nav_bar.jsx # Navigation component
β β βββ Page.css # Landing page styles
β β βββ Page.jsx # Landing page component
β β βββ Reveiw_Page.css # Review interface styles
β β βββ Reveiw_page.jsx # Code review component
β βββ App.css # Main app styles
β βββ App.jsx # Root application component
β βββ index.css # Global styles
β βββ main.jsx # Application entry point
βββ .gitignore # Git ignore rules
βββ LICENSE # MIT License
βββ README.md # Project documentation
βββ eslint.config.js # ESLint configuration
βββ index.html # HTML template
βββ package.json # Frontend dependencies
βββ package-lock.json
βββ vite.config.js # Vite build configuration
- β AI-powered code review using Google Gemini
- β Multi-language support
- β Responsive web interface
- β Real-time code analysis
- π Integration with popular IDEs (VS Code, JetBrains)
- π Support for additional AI models (OpenAI, Claude)
- π Code diff visualization
- π Team collaboration features
- π Performance metrics dashboard
- π GitHub/GitLab integration for PR reviews
- π Custom rule configuration
- π Code quality scoring system
- π Advanced security vulnerability scanning
- π Machine learning model training on team codebases
We welcome contributions! Please see our Contributing Guidelines for details on how to submit pull requests, report issues, and contribute to the project.
This project is licensed under the MIT License - see the LICENSE file for details.
- Google Gemini AI - For providing powerful AI capabilities
- React - For the robust frontend framework
- Vite - For fast development and build tooling
- Express.js - For the lightweight backend framework
- GSAP - For smooth animations and interactions
This project was inspired by the need for intelligent, accessible code review tools that help developers improve their skills and code quality through AI-powered assistance.
Made with β€οΈ by H0NEYP0T-466