An intelligent, security-first code analysis platform that helps developers identify vulnerabilities, understand potential risks, and improve code quality through AI-assisted insights, local CLI scanning, and a real-time security dashboard.
CodeProof is a multi-part platform that helps teams catch risky patterns before code lands in production.
It combines:
- CLI scanning for staged or full-repo checks
- Pre-commit enforcement for policy guardrails
- Server-side report ingestion with project/report APIs
- Dashboard UI for visibility and trends
- AI risk API for contextual risk escalation
Code_proof/
├─ cli/ # Node.js CLI (scan, report, enforcement controls)
├─ server/ # Express + TypeScript backend (reports/projects/auth)
├─ dashboard/ # Next.js dashboard frontend
├─ AI/ # FastAPI risk classification microservice
└─ codeproof.config.json
- Node.js 18+
- npm
- Python 3.10+ (for
AI/) - MongoDB running locally or remotely
# CLI
cd cli
npm install
# Server
cd ../server
npm install
# Dashboard
cd ../dashboard
npm install
# AI service (Python)
cd ../AI
pip install -r requirements.txtPORT=4000
MONGO_URI=mongodb://127.0.0.1:27017/codeproof
JWT_SECRET=replace-with-strong-secret
# Optional
REQUEST_BODY_LIMIT=2mb
REQUEST_TIMEOUT_MS=15000
RATE_LIMIT_WINDOW_MS=60000
RATE_LIMIT_MAX=60
ENABLE_AUTH=true
ENABLE_RATE_LIMITING=true
ENABLE_PUBLIC_REPORTS=trueNEXT_PUBLIC_API_URL=http://localhost:4000# Terminal 1 - Backend API
cd server
npm run dev
# Terminal 2 - Dashboard
cd dashboard
npm run dev
# Terminal 3 - AI Risk API
cd AI
python main.pyDashboard default URL: http://localhost:3000
From cli/, expose the CLI locally:
cd cli
npm linkNow use it in any Git repo:
codeproof init
codeproof run
codeproof report@dashboard
codeproof move-secret
codeproof ignore
codeproof apply
codeproof whoamiinit– initialize CodeProof config + install pre-commit hookrun– execute scanner and generate reportreport@dashboard– sync latest report + show dashboard project linkmove-secret– move high-confidence secrets to.envignore/apply– disable or re-enable commit enforcementwhoami– show local CodeProof client identity
Core options:
scanMode:stagedorfullenforcement:enabledordisabledfeatures.reporting: local/server report pipelinefeatures.integration: report sync to backend endpointfeatures.aiEscalation: send ambiguous findings for AI analysisintegration.endpointUrl: report ingestion endpoint (example:http://localhost:4000/api/reports)
- File targets are selected (
stagedorfullmode) - Rules engine runs deterministic checks (secrets, risky usage, insecure config, etc.)
- Optional AI escalation reviews ambiguous findings
- Decisions are merged into block and warn outcomes
- Reports are written locally and optionally synced to server
- Exit code controls commit blocking in pre-commit flow
POST /api/reports– ingest reportGET /api/reports/:reportId– fetch a reportPOST /api/auth/login– auth endpointGET /api/projects*– project dashboard APIs (auth-protected)
The AI/ microservice exposes:
POST /predict– plain text body, returns risk verdict (Critical,High Risk,No Risk)
Run with:
cd AI
python main.pyDefault bind: 127.0.0.1:8000
npm run dev
npm run build
npm run startnpm run dev
npm run build
npm run start
npm run lint- GitHub App / CI integrations
- Multi-repo organization analytics
- Richer secret remediation workflows
- Policy packs for compliance standards
- Fork and clone
- Create a feature branch
- Make focused changes
- Run local checks
- Open a PR with clear context
MIT (see package-level declarations)