# π African AI Policy Tracker
> A public database and dashboard monitoring AI legislation, regulatory proposals, and policy shifts across all 55 African Union member states.
**Live:** your-project.vercel.app Β |Β **API:** `/api/policies` Β |Β **Built by:** @cercuit-ola
---
## Why this exists
Africa's data is being shaped by AI policy frameworks designed without African engineers in the room.
Researchers, journalists, civil society organizations, and policymakers currently have no single reliable place to track how African governments are regulating AI β what has passed, what is in draft, and what is changing. This tool is built to close that gap. It is free, open source, and designed to be forked and adapted by any African institution that needs it.
---
## Features
- **Live dashboard** β top policy documents across all 55 AU member states, filterable by type and status
- **REST API** β query policies by country, type, status, date range, with pagination
- **Stats endpoint** β summary counts by status and document type
- **Incremental static regeneration** β pages rebuild automatically every hour
- **Mock data fallback** β dashboard renders even before a database is connected (safe for preview deploys)
- **Open and forkable** β MIT licensed, built on open standards
---
## Stack
| Layer | Technology |
|---|---|
| Framework | Next.js 14 (App Router) |
| Database | PostgreSQL (Vercel Postgres / Neon / Supabase / Railway) |
| Hosting | Vercel |
| Styling | Tailwind CSS |
| Language | JavaScript (ES2022) |
---
## Getting started
### Prerequisites
- Node.js 18+
- A PostgreSQL database (see database options below)
### Local setup
```bash
# 1. Clone the repo
git clone
github.com
cd african-ai-policy-tracker
# 2. Install dependencies
npm install
# 3. Set up environment variables
cp .env.example .env.local
# Edit .env.local and add your DATABASE_URL
# 4. Create the database schema
psql -d β¦