Skip to content

DEV_LENS is an AI-powered code reviewer πŸš€ built using the MERN stack. It uses the latest AI models to analyze your code, find errors ❌, suggest smart improvements ✨, and provide corrected, optimized code πŸ’‘. With a beautiful landing page 🌟 and a user-friendly review page πŸ–₯️, DEV_LENS makes coding faster, smarter, and easier.

License

Notifications You must be signed in to change notification settings

H0NEYP0T-466/DEV-LENS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

47 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

DEV-LENS

GitHub License GitHub Stars GitHub Forks Contributions Welcome GitHub Issues

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

Table of Contents

✨ Features

  • πŸ€– 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

🧰 Tech Stack

Languages

JavaScript HTML5 CSS3

Frameworks/Libraries

React Express.js Vite React Router

Cloud/AI Services

Google AI Vercel

Tools/Utilities

Node.js ESLint GSAP Axios

πŸš€ Installation

Prerequisites

  • Node.js (v16.0.0 or higher)
  • npm package manager
  • Git for version control
  • Google Gemini API Key (for AI functionality)

Steps

  1. Clone the repository

    git clone https://github.com/H0NEYP0T-466/DEV-LENS.git
    cd DEV-LENS
  2. Install frontend dependencies

    npm install
  3. Install backend dependencies

    cd backend
    npm install
  4. Set up environment variables

    # Create .env file in backend directory
    cd backend
    echo "geminiApiKey=your_gemini_api_key_here" > .env
  5. Start the development servers

    # Terminal 1: Start backend server
    cd backend
    npm start
    
    # Terminal 2: Start frontend development server
    cd ..
    npm run dev
  6. Open your browser

    • Frontend: http://localhost:5173
    • Backend API: http://localhost:8000

πŸ§ͺ Usage

UI Usage

  1. Navigate to the application at http://localhost:5173
  2. Paste your code into the text area on the main page
  3. Click "Review Code" to get AI-powered analysis
  4. Review the feedback including bugs, optimizations, and security suggestions
  5. Copy and implement the suggested improvements

API Usage

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"
}

πŸ—‚ Project Structure

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

πŸ—Ί Roadmap

Current

  • βœ… AI-powered code review using Google Gemini
  • βœ… Multi-language support
  • βœ… Responsive web interface
  • βœ… Real-time code analysis

Planned

  • πŸ”„ Integration with popular IDEs (VS Code, JetBrains)
  • πŸ”„ Support for additional AI models (OpenAI, Claude)
  • πŸ”„ Code diff visualization
  • πŸ”„ Team collaboration features
  • πŸ”„ Performance metrics dashboard

Future Vision

  • 🌟 GitHub/GitLab integration for PR reviews
  • 🌟 Custom rule configuration
  • 🌟 Code quality scoring system
  • 🌟 Advanced security vulnerability scanning
  • 🌟 Machine learning model training on team codebases

🀝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details on how to submit pull requests, report issues, and contribute to the project.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgements

Dependencies

  • 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

Inspiration

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

About

DEV_LENS is an AI-powered code reviewer πŸš€ built using the MERN stack. It uses the latest AI models to analyze your code, find errors ❌, suggest smart improvements ✨, and provide corrected, optimized code πŸ’‘. With a beautiful landing page 🌟 and a user-friendly review page πŸ–₯️, DEV_LENS makes coding faster, smarter, and easier.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •