FineLoc
Artificial Intelligence
Case study
In development2024 – 2026SaaS that helps check rental applications: it points out inconsistencies in the documents supplied, without giving a verdict.
The problem
A landlord receives payslips and supporting documents that they have neither the time nor the means to check, while some have been altered.
The solution
The user uploads an application, runs an analysis and gets a report of verifiable elements: arithmetic consistency of a payslip, comparison between documents. The tool flags; it does not conclude in the user's place.
Main features
- Applications, tenants and documents, with private file storage
- Payslip extraction by OCR, validated against a strict schema
- Consistency checks and comparison between documents
- Analysis credits: hold, capture, release, expiry
- Stripe payment in test mode (not yet open for sale)
Technical design
A Next.js application with 22 data models. Authentication is custom (hashed passwords, signed sessions, one-time tokens). The credit ledger relies on PostgreSQL row locks and idempotent Stripe handling. A separate Python lab studies edit detection on fully synthetic documents.
Challenges
- An exact credit ledger
- Credits could be taken from grants that had already expired and reading the balance was not atomic. The computation was isolated in a pure function and protected by locks, then verified against a real PostgreSQL started for the tests.
- Saying what does not work
- A copy-move detection prototype flagged untouched images without locating the real edit: it was dropped. In the lab, measured detection is good on native PDFs and no better than chance on scanned documents, which the results state as is.
Results
- In development: payment is in test mode and the service is not open
- 43 test files, including ledger tests against PostgreSQL
- Python lab: 58 tests, synthetic datasets with exact masks
Technologies
- Next.js 15
- React 18
- TypeScript
- Prisma
- PostgreSQL
- Stripe (mode test)
- Stockage compatible S3
- OCR Mistral
- Zod
- Python (laboratoire)
Skills demonstrated
TypeScript · Next.js · Prisma · PostgreSQL · API design and integration · Authentication and authorisation · Artificial intelligence integration · Python · Stripe payments · Testing and quality assurance
Links
No public link for this project.