Skip to content

AritraOfficial/Codentify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Codentify – AI Code Reviewer

Live Codentify

Codentify is a smart AI-powered web app that reviews, analyzes, and improves your code using LLMs. A powerful and customizable AI-powered code reviewer web application built using Python, Streamlit, and OpenRouter’s free LLMs (like Mistral-7B).

This app allows developers to paste or upload source code, select review focus and explanation style, and instantly receive a professional AI-generated review along with corrected code.

πŸ“Έ App View

Web View APP's Specification
image image

πŸš€ Features

  • πŸ” AI-Powered Code Review: Analyze logic, bugs, performance, and security flaws
  • πŸ“₯ Upload or Paste Code: Supports .py, .js, .jsx, .java, .ts, .cpp, .cs
  • 🧠 Select Review Focus:
    • General Review
    • Bug Detection
    • Performance Optimization
    • Security Issues
    • Code Refactoring
  • πŸ’¬ Choose Explanation Style:
    • Detailed
    • Concise
    • Line-by-Line
    • Bullet Points
  • 🌐 Supports Multiple Languages:
    • Python, JavaScript, Java, C++, C#, Go, TypeScript
  • ✨ Dynamic Prompt Engineering for maximum accuracy
  • πŸ“˜ Project Overview Tab: Includes specs, tech stack, and documentation
  • 🎨 Professional UI: Responsive layout, dark theme, clean footer with profile links

πŸ›  Tech Stack

Layer Tool / Tech
Frontend Streamlit
Backend Logic Python
AI Model Mistral-7B (via OpenRouter)
Prompting JSON-powered dynamic prompt template
Styling Custom CSS (style.css)
Secrets Mgmt .env + python-dotenv

πŸ“‚ File Structure

β”œβ”€β”€ main.py # Main Streamlit app
β”œβ”€β”€ prompt_template.json # Dynamic LLM prompt template
β”œβ”€β”€ style.css # Custom styles and footer
β”œβ”€β”€ .env # OpenRouter API key (NOT shared)
β”œβ”€β”€ requirements.txt # Install dependencies
└── README.md # You're here

βš™οΈ Installation & Run

1. Clone the Repository

git clone https://github.com/AritraOfficial/Codentify.git
cd Codentify
  1. Set Up the Environment
  • Create .env with your OpenRouter API key:
OPENROUTER_API_KEY= sk-xxxxxx-your-key
  1. Install Dependencies
pip install -r requirements.txt
  1. Launch the App
streamlit run main.py

πŸ“Έ Computer's View

Upload File Ask Questions Get Answers
image image image


πŸ“Έ Mobile's View

APP View Footer View APP's Specification
WhatsApp Image 2025-07-12 at 21 05 11_a16e5912 WhatsApp Image 2025-07-12 at 21 05 11_e683c623 WhatsApp Image 2025-07-12 at 21 09 09_d9438cd8

  • πŸ” Free LLMs Used
 This app uses Mistral-7B Instruct from OpenRouter, a fast and free-to-use model for code understanding and natural language generation.
You can switch to other free OpenRouter models by changing the model name in main.py.

🧠 How It Works

  1. User selects:

    • βœ… Language preference
    • πŸ” Type of review
    • 🧠 Style of explanation
  2. User pastes or uploads code

  3. Code is validated against the selected language

  4. A dynamic prompt is constructed using all selections

  5. The LLM returns:

    • ⚠️ Problem analysis
    • πŸ’‘ Suggestions for improvement
    • πŸ› οΈ Corrected version of the code

✨ Example Output

πŸ”Ή Issues Found:
- Missing error handling
- Unused variable

πŸ”Ή Suggestions:
- Add try-except block
- Remove unused variable

βœ… Corrected Code:
```python
def process(data):
    try:
        return data.lower()
    except Exception:
        return None

πŸ‘€ Developer

Aritra Mukherjee - AI Developer


πŸ“ License

This project is licensed under the MIT License.


🀝 Contributing

Feel free to:

  • Report bugs
  • Suggest features
  • Fork and improve the app!

Open a PR or contact me via LinkedIn or email.


πŸ“Œ Disclaimer

This tool is powered by LLMs and should not be used for production-critical code reviews without human verification.


πŸ™Œ Acknowledgments


πŸ“§ Contact

For queries or collaborations, feel free to connect:

Portfolio Website LinkedIn Twitter Instagram LeetCode GitHub Discord Email

About

Smart AI-Powered Code Reviewer & Improver - web app that reviews, analyzes, and improves your code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published