Zentinel: An AI-powered, offline-first digital traffic enforcement system prototype designed for the Zimbabwe Republic Police (ZRP). Replaces manual ticketing with automated vehicle lookup, smart violation analysis, and digital payment integration.
# 🛡️ Zentinel: The Future of Digital Traffic Enforcement
**Redefining law enforcement through AI, offline-first reliability, and departmental synergy.**
Zentinel is a high-performance, mission-critical web application designed for the **Zimbabwe Republic Police (ZRP)**. It digitizes the roadside ticketing process to eliminate administrative "leakage," reduce paper waste, and enhance public safety. Built with a focus on the **Road Traffic Act [Chapter 13:11]**, Zentinel serves as a secure bridge between the ZRP and **ZINARA**, ensuring that vehicle violations, roadworthiness, and habitual offenders are tracked with surgical precision.
---
## 🏗️ The Tech Stack
I selected this stack to prioritize extreme reliability, data integrity, and lightning-fast performance in low-bandwidth environments.
* **Framework:** Next.js (App Router) – Leveraging Server Components for secure, server-side logic and optimal performance.
* **Language:** TypeScript – Enforcing strict type-safety to prevent runtime errors in sensitive enforcement data.
* **Styling:** Tailwind CSS & shadcn/ui – Clean, "industrial-grade" UI designed for high visibility in various outdoor lighting conditions.
* **Database & Auth:** Supabase (PostgreSQL) – Providing real-time data syncing and robust authentication.
* **Backend Logic:** Supabase Edge Functions & Row Level Security (RLS).
* **Offline Support:** Service Workers (PWA) – Enabling the "Graceful Offline" protocol for remote roadblocks.
---
## ✨ System Features & Development Progress
The system is being rolled out in phases. Below is the current status of the core modules:
| Module | Feature | Status | Description |
| :--- | :--- | :--- | :--- |
| **Authentication** | Secure Rank-Based Login | ✅ Complete | Multi-tier access for Constables vs. Inspectors. |
| **Enforcement** | Digital Inspection Checklist | ✅ Complete | Roadworthy tracking (Fire extinguishers, reflectors, etc.). |
| **AI Engine** | AI Legal Inference | 🚧 In Progress | Background a …