AI-Driven PR Analysis System with ML Risk Modeling & Blockchain Audit Trail
Automated DevSecOps security gate that analyzes every GitHub Pull Request using:
- 🤖 AI Semantic Analysis (LangChain + xAI Grok API)
- 📊 ML Risk Prediction (XGBoost)
- 🔍 Security Scanning (Snyk + Semgrep)
- ⛓️ Blockchain Audit Logging (Solidity + Polygon Amoy Testnet)
Goal: Catch security vulnerabilities before they reach production.
Security-Gate/
├── backend/ # FastAPI backend + orchestration
├── frontend/ # React + Vite dashboard
├── ml-model/ # XGBoost risk prediction model
├── blockchain/ # Hardhat + Solidity contracts
├── .github/workflows/ # GitHub Actions CI/CD
├── docs/ # Documentation
└── scripts/ # Utility scripts
main- Production-ready code (protected)dev- Integration branch (daily merges)
arjun- Personal development branchkunal- Personal development branchaditya- Personal development branch
- Python 3.11+
- Node.js 18+
- Docker Desktop
- Git
# Clone repository
git clone https://github.com/KunalSiyag/Code_Editor.git
cd Code_Editor
# Switch to dev branch for development
git checkout dev
# Backend setup
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
# Frontend setup
cd ../frontend
npm install
# Blockchain setup
cd ../blockchain
npm install# Morning: Pull latest changes
git checkout <your-name>
git pull origin dev
# Work on your features
git add .
git commit -m "Descriptive message"
git push origin <your-name>
# End of day: Merge to dev
git checkout dev
git pull origin dev
git merge <your-name>
git push origin devBackend: FastAPI, Python, SQLAlchemy, Docker
Caching: Redis
Frontend: React, Vite, TailwindCSS, Recharts
ML: Scikit-learn, XGBoost, Pandas
AI: LangChain, xAI Grok API
Security: Snyk CLI, Semgrep
Blockchain: Hardhat, Solidity, Ethers.js, Polygon Amoy
CI/CD: GitHub Actions
Deploy: Render (backend), Vercel (frontend)
- Deployment smoke verifier:
backend/scripts/verify_deployment.py - Load test scripts:
load-tests/k6-smoke.js,load-tests/k6-stress.js - Deployment runbook:
docs/deployment/RUNBOOK.md
Start Date: January 26, 2026
Duration: 8 weeks
Demo Date: March 22, 2026
See IMPLEMENTATION_PLAN.md for detailed week-by-week breakdown.
Course: DevSecOps & Secure Software Development
Institution: [Your University]
Year: 2026
This project is for educational purposes.
- Arjun
- Kunal
- Aditya
Last Updated: January 26, 2026