Loan verification for salary lendersPrivate codebase
VerifyFlow
Loan verification for salary lenders. A credit officer uploads a bank statement and a payroll file or payslip, and in minutes gets the hidden debts, the true debt-to-income, the maximum safe loan and a risk level. It advises; people decide.
330
automated tests passing
₦143k
a month of hidden debt found in the demo borrower
11
IPPIS checks across three months of payroll
0
raw account numbers stored
The problem
Salary lenders lend against government payroll (IPPIS). The borrower's payslip looks healthy, but the bank statement tells the truth: repayments to other lenders that never show up on the application.
Reading PDF statements and payroll sheets by hand is slow, and the costly debts are the ones a tired reviewer misses.
What I built
Hidden Debt Check
Parses bank statements and finds recurring repayments to other lenders, then works out true debt-to-income and the largest loan the person can safely carry.
IPPIS three-month check
Imports monthly IPPIS pay sheets in all three real layouts and flags 11 kinds of finding: missing from the latest month, net pay down more than 10%, rising deductions, name mismatches, salary paid to a dependant and more.
Built like a bank would want
Every upload is virus-scanned and the server fails closed without a scanner. Files are read in a separate process with time and memory limits. Account numbers are stored only as HMAC hashes, and lender files are encrypted.
A workspace for credit officers
Cases, decisions and overrides with an audit log, PDF and Word reports, sign-in codes and idle sign-out after 15 minutes, plus API keys and webhooks for lenders who integrate.
One database per lender
Each lender gets its own Neon Postgres project, provisioned automatically, with uploads in a private Cloudflare R2 bucket.
How it fits together
Uploads pass a virus scan and a sandboxed parser before any check runs. Each lender's data lives in its own database.
VerifyFlow architecture. Uploads pass a virus scan and a sandboxed parser before any check runs. Each lender's data lives in its own database.
- Officer app connects to Engine API (Python, FastAPI)
- Engine API connects to Virus scan (ClamAV, fails closed)
- Engine API connects to Parser sandbox (30 s, 512 MB limits)
- Parser sandbox connects to Checks (debt, DTI, IPPIS)
- Checks connects to Report (PDF, Word, webhook)
- Engine API connects to Control DB (users, audit log)
- Engine API connects to Files (R2, encrypted)
- Checks connects to Lender DB (Neon, one per lender)
Stack
Engine
- Python 3.11
- FastAPI
- pdfplumber
- openpyxl
- SQLAlchemy
- Alembic
App
- Next.js
- React 19
- TypeScript
Infrastructure
- Neon Postgres
- Cloudflare R2
- ClamAV
- Resend
- Railway
Want the full walkthrough?
The code is private, but I'm happy to show it running and talk through the decisions.
Next case study
Hand Graph