AI compliance checker for African foodtech founders exporting to EU/UK markets.
# 🍃 Zareb — AI Compliance Document Checker
**Know your compliance gaps before the auditor does.**
Zareb reads your **HACCP plans, ingredient lists, product labels, and audit reports** — then tells you exactly what's missing for **EU/UK export approval**.
> 🎯 Built for food manufacturers, restaurant chains, and packaged food brands in **Africa** (Lagos, Accra, Nairobi) exporting to European markets.
---
## ✨ Features
| Feature | Description |
|---------|-------------|
| 📄 **Smart Upload** | Drag-and-drop PDF/DOCX files up to 10MB |
| 🤖 **AI Analysis** | Groq-powered compliance check against 8 standards |
| 📊 **Interactive Reports** | Score gauge, categorized gaps, copy-paste fixes |
| 💬 **AI Chat** | Ask follow-up questions about your reports |
| ✅ **Compliance Checklists** | Track progress for each standard with auto-save |
| 🌍 **Africa→EU/UK Focus** | Catches NAFDAC-to-EU gaps, allergen rules, traceability |
### Supported Standards
HACCP · FSMA · SQF · BRCGS · ISO 22000 · NAFDAC (Nigeria) · KEBS (Kenya) · FDA EU Law
---
## 🏗️ Architecture
```
┌──────────────┐ HTTP/JSON ┌──────────────┐ ┌──────────────┐
│ Frontend │ ──────────────────▶ │ Backend │ ──▶ │ PostgreSQL │
│ React + Vite│ ◀────────────────── │ FastAPI │ │ (Railway) │
│ (Netlify) │ SSE streaming │ (Railway) │ └──────────────┘
└──────────────┘ └──────┬───────┘
│
┌──────▼───────┐
│ Groq AI API │
│ (Free Tier) │
└──────────────┘
```
### Data Flow
1. **Register/Login** → JWT token stored in browser
2. **Upload PDF** → Backend extracts text (PyPDF2/python-docx), stores in Cloudinary
3. **Analyze** → Backend sends extracted text to Groq AI → receives structured JSON
4. **View Report** → Score gauge, categorized gaps (Critical/Moderate/Minor), fix suggestions
5. **Chat** → SSE streaming from AI with report context loaded
---
## 🚀 Quick Start
### Prerequisites
- Python 3.11+
- Node.js 18+
- Groq API key (free — no cred …