Logo Lanfrica

mwebidouglas08-netizen/Kenya-watch-ai

Domain:

peace and security

Record type:

software
Creator:
mwe
Host:
# 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