An AI-powered web application that reviews source code, detects bugs, explains problems, and suggests improvements. Built with Django, Nvidia NIM (Llama 3.1 70B), and Judge0 for remote code execution. Ready for Serverless deployment on Vercel.
- 🔍 AI Code Review — Get structured feedback on bugs, security, performance & style using Llama 3.1 70B.
- 💬 AI Chat — Ask follow-up questions about your code and reviews.
- ⚡ Live Code Execution — Run code directly in the browser (Python, C++, Java, JS, etc.) via Judge0 API.
- 🪟 LeetCode Style UI — Fully resizable, split-pane layout with independent scrolling and Monaco Editor.
- 🌙 Dark/Light Theme — Developer-friendly modern interface.
- ☁️ Vercel Ready — Designed to be deployed effortlessly on Vercel as Serverless Functions.
- Backend: Django 6.0, Python
- Frontend: Vanilla JS, CSS (Stitch Design System), Monaco Editor
- AI Inference: Nvidia NIM API (
meta/llama-3.1-70b-instruct) - Code Execution: Judge0 CE API
- Python 3.10+
- Free Nvidia API Key from build.nvidia.com
git clone https://github.com/shubhamjrd4559-sudo/CodeSenseAI.git
cd CodeSenseAI
# Create virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Linux/Mac
# venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txtCreate a .env file in the root directory and add your Nvidia API Key:
NVIDIA_API_KEY="nvapi-your-key-here"
LLM_MODEL="meta/llama-3.1-70b-instruct"python manage.py runserverOpen http://localhost:8000 in your browser.
This project is pre-configured with vercel.json and wsgi.py optimizations for 1-click serverless deployment.
- Push your code to a GitHub repository.
- Sign in to Vercel and click Add New Project.
- Import your repository.
- In the Environment Variables section, add:
NVIDIA_API_KEY: Your Nvidia API keyLLM_MODEL:meta/llama-3.1-70b-instruct
- Click Deploy.
- Write/paste code in the right-side editor panel.
- Select language and review mode from the top header.
- Click Review (or
Ctrl+Enter) to get AI analysis on the left panel. - Click Run (or
F5) to execute the code and view the output in the bottom terminal. - Drag the borders between panels to resize the layout to your preference.
MIT