Logo Lanfrica

mwebidouglas08-netizen/Kenya-watch-ai

Domaine:

peace and security

Type de record:

software
Créateur:
mwe
Hôte:
# KenyaWatch AI 🇰🇪 ### AI-Powered Anti-Corruption Intelligence Platform Built by **Douglas Mwebi (Daggy)** · Daggy Techs · Kisii, Kenya 📧 daggytechs@gmail.com · 📱 +254 796 820 013 --- ## What It Does KenyaWatch AI fights corruption in Kenya through three AI pillars: 1. **Procurement Scanner** — AI risk-scores every government contract, flagging inflated prices, single-source awards, and politically connected suppliers 2. **Ghost Project Detector** — Cross-references satellite imagery vs. funded projects to detect infrastructure that exists on paper but not on the ground 3. **Citizen Reporting** — Anonymous, encrypted corruption reports routed by AI to EACC, DPP, or PPRA --- ## Project Structure ``` kenyawatch/ ├── backend/ ← Node.js + Express + PostgreSQL API │ ├── db/ │ │ └── index.js # DB connection + schema init + seed │ ├── middleware/ │ │ └── errorHandler.js │ ├── routes/ │ │ ├── ai.js # Claude AI chat proxy │ │ ├── contracts.js # Procurement CRUD + AI scoring │ │ ├── ghostProjects.js │ │ └── reports.js # Citizen reports │ ├── server.js │ ├── package.json │ ├── railway.json │ └── .env.example │ └── frontend/ ← Vanilla HTML/CSS/JS served via Express ├── public/ │ └── index.html # Full SPA — calls backend API ├── server.js ├── package.json └── railway.json ``` --- ## Local Development ### Prerequisites - Node.js 18+ - PostgreSQL 14+ running locally - Anthropic API key from console.anthropic.com ### 1. Clone the repo ```bash git clone github.com cd kenyawatch ``` ### 2. Set up backend ```bash cd backend npm install cp .env.example .env ``` Edit `.env`: ``` NODE_ENV=development PORT=5000 DATABASE_URL=postgresql://postgres:yourpassword@localhost:5432/kenyawatch ANTHROPIC_API_KEY=sk-ant-your-key-here FRONTEND_URL=localhost ``` Create the database: ```bash psql -U postgres -c "CREATE DATABASE kenyawatch;" ``` Start ba …

Languages