# 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 β¦