Insurance claims management platform for the Zimbabwean market with AI-powered damage assessment and multi-role access. · Built with Manus
# KINGA — AutoVerify AI
KINGA is an AI-powered motor insurance claims verification platform. It ingests claim documents (PDFs, photos, police reports, repair quotes), runs them through a 10-stage forensic pipeline, and produces a structured fraud risk assessment, physics-validated damage analysis, and cost-optimised repair recommendation.
---
## Quick Start (Local Development)
**Prerequisites:** Node.js 22+, pnpm, a MySQL-compatible database (TiDB Cloud recommended).
```bash
# 1. Install dependencies
pnpm install
# 2. Set environment variables (see .env.example or the Manus Secrets panel)
# Required: DATABASE_URL, JWT_SECRET, BUILT_IN_FORGE_API_KEY, BUILT_IN_FORGE_API_URL
# 3. Push the database schema
pnpm db:push
# 4. Start the development server
pnpm dev
# → Frontend:
localhost
# → Backend API:
localhost
```
**Other useful commands:**
| Command | Purpose |
|---|---|
| `pnpm test` | Run all Vitest unit tests |
| `pnpm check` | TypeScript type-check (full project) |
| `pnpm check:server` | TypeScript type-check (server only) |
| `pnpm lint` | ESLint |
| `pnpm db:push` | Apply schema changes to the database |
| `pnpm build` | Production build |
---
## Project Structure
```
kinga-replit/
├── client/ Frontend (React 19 + Tailwind 4 + shadcn/ui)
│ └── src/
│ ├── pages/ 91 page-level components (one per route)
│ ├── components/ Reusable UI components
│ └── App.tsx Route definitions
│
├── server/ Backend (Express 4 + tRPC 11)
│ ├── pipeline-v2/ The 10-stage AI forensic pipeline (176 files)
│ ├── routers/ 69 tRPC sub-routers (one per feature domain)
│ ├── services/ Shared business logic services
│ ├── db.ts All database query helpers
│ ├── routers.ts tRPC router barrel (imports all sub-routers)
│ ├── driver-registry.ts Driver master record upsert
│ ├── vehicle-registry. …