Skip to content

Ronit049/ai-code-review

Repository files navigation

Code Review Sentinel

A local code-review website with a FastAPI backend, SQLite history, and a React-style HTML/CSS/JavaScript frontend. It reviews pasted code for bugs, vulnerability patterns, risky data loops, and maintainability issues.

Features

  • Paste code and choose a language.
  • Get categorized findings: bug, vulnerability, data-loop, and maintainability.
  • See severity, line number, rule, explanation, and suggested fix.
  • Store review history in SQLite.
  • Runs with FastAPI when dependencies are installed.
  • Includes a standard-library fallback server for this workspace runtime.

Project Structure

backend/
  app/
    analyzer.py      # Static analysis review engine
    db.py            # SQLite persistence
    main.py          # FastAPI app
frontend/
  index.html
  styles.css
  app.js
fallback_server.py  # No-dependency server with the same core API
requirements.txt

Run With FastAPI

pip install -r requirements.txt
uvicorn backend.app.main:app --reload --port 8000

Then open:

http://127.0.0.1:8000

Run Without Installing Dependencies

python fallback_server.py

Then open:

http://127.0.0.1:8000

Optional AI/Agent Layer

The app is ready for a Groq or CrewAI orchestration layer, but the default reviewer is local so it works without API keys. Add agent calls inside backend/app/main.py after analyze_code(...) if you want LLM-written summaries or multi-agent review roles.

About

A local code-review website with a FastAPI backend, SQLite history, and a React-style HTML/CSS/JavaScript frontend. It reviews pasted code for bugs, vulnerability patterns, risky data loops, and maintainability issues.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages