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