
ClaimLens is a multi-tenant motor-insurance claims platform: a customer files a claim, OCR reads the documents, the damage photos are checked for tampering and reuse, a rules engine scores the risk and explains itself, an investigator is assigned, and the claim is approved or rejected — every step scoped to one insurer and written to an append-only audit trail. It runs as a Spring Boot API, a Next.js frontend and a Python/FastAPI image-forensics service, with a fourth Tesseract OCR service kept as an offline alternative to Google Vision.
Insurance claims sit in a permanent tension between speed and caution. Settle too fast and you leak money to fraud; scrutinize everything and you punish honest customers while burying investigators in paperwork. Both failure modes are expensive, and a regulator will still ask why any given decision was made — a question most automated systems can't answer.
Do the mechanical work automatically, surface only the claims that genuinely look suspicious, and record why every decision was made — so a human still owns each real decision. That demands two things most demos skip: isolation that can't be forgotten, and automation that can explain itself. Tenancy is a Hibernate @TenantId discriminator appended to every query including load-by-id, so a cross-tenant read returns 404 rather than a 403 that would confirm the record exists. And every fraud score keeps its per-rule breakdown, every RAG answer keeps its citations, every state change is audited.
A Next.js frontend calls a Spring Boot API that owns the claim lifecycle and PostgreSQL. Document and image work is delegated to Google Vision and a Python/FastAPI OpenCV service, whose signals feed a fraud engine and then auto-assignment. Every external client sits behind an interface with an offline default, so the system stays green without cloud keys.
Next.js 16 frontend
staff workspace · customer portal
Spring Boot API
@TenantId · JWT · permission RBAC
OCR + image forensics
Vision · FastAPI/OpenCV
Fraud engine + RAG
explainable rules · cited answers
Backend
Frontend
Data
Python services
AI & OCR
Infrastructure