Fintech · Loan Origination & Servicing
SafarLoan
A role-gated digital lending platform covering the complete loan lifecycle — application, underwriting, sanctioning, disbursal, repayment and NOC release — across separate portals for borrowers, loan officers and administrators, all served from a single Postgres database.
- Shipped three role-gated portals behind one database, resolving roles at the edge so unauthorised users never reach a protected route.
- Made Row-Level Security the authorization boundary across roughly 45 policies and 26 tables, so a leaked client key exposes no tenant data.
- Built a reducing-balance EMI engine with drift-corrected amortisation schedules, dual-mode prepayment modelling and grace-period-aware late fees, mirrored exactly in a SQL function.
- Scored applications against eight underwriting rules — FOIR, income, amount, tenure, headroom, CIBIL, collateral cover and PAN — each returning PASS, WARN or FAIL with actual-versus-required values instead of a single opaque verdict.
- +3 more in the case study
- Next.js 16
- React 19
- TypeScript
- Supabase
- PostgreSQL
- Row-Level Security
- Server Actions
- Tailwind CSS 4
- Vercel
By the numbers
- 25
- Routes
- 26
- DB tables
- ~45
- RLS policies
- ~19k
- Lines of code