Mapping algorithmic systems, surveillance infrastructure, and digital rights risks across Kenya's 47 counties.
# Kenya Digital Rights Risk Atlas
Mapping surveillance infrastructure, data privacy risks, and digital rights across Kenya's 47 counties. A civic technology tool for civil society, researchers, and advocates.
**Live:**
geraldkombo.github.io
## Features
- **Choropleth map** — 47 counties color-coded by Digital Rights Risk Score (DRRS) using MapLibre GL JS with TopoJSON boundaries (60KB)
- **Data explorer** — Sortable, filterable table of all 47 counties across 5 risk dimensions with 3-year trend sparklines (2024–2026)
- **County briefs** — Per-county printable brief with DRRS breakdown, key indicators, and neighbouring county links
- **Compare tool** — Side-by-side radar chart comparison with geographic neighbour context
- **Advocacy toolkit** — FOIA templates under Article 35 of the Constitution + ODPC complaint templates under Section 34 DPA, with escalation pathway guide
- **47 embed routes** — Lightweight iframe-ready pages at `/embed/mombasa`, `/embed/nairobi`, etc. for CSO syndication
- **WhatsApp share** — Client-side share card generated with html2canvas + Web Share API
- **Offline PWA** — Service worker pre-caches HTML shell, TopoJSON data, and map tiles for field use without connectivity
## Architecture
| Layer | Stack |
|---|---|
| Framework | Next.js 16 (static export via `output: "export"`) |
| Styling | Tailwind CSS v4 with `@theme` design tokens |
| Mapping | MapLibre GL JS + Carto Positron tiles |
| Data compression | TopoJSON (client-side parsing via topojson-client) |
| PWA | Custom service worker (cache-first HTML + stale-while-revalidate JS) |
| Deployment | GitHub Pages via `gh-pages` branch |
## Routes (57 total)
- `/` — Home with map, search, insights dashboard
- `/explore` — Sortable data table with trend sparklines
- `/compare` — Two-county comparison with radar charts
- `/brief?id=X` — Per-county printable brief
- `/advocacy` — FOIA templates + ODPC complaint + escalation pathway
- `/method` — Meth …