$ cat multi-tenant-platform.md
Multi-tenant SaaS with a rules engine
One platform, many tenants, new products by configuration.
- COMPANY
- Dexwox Innovations
- ROLE
- Lead Backend Developer & Backend Architect
- STACK
- Node.js · Express · PostgreSQL · Sequelize · JWT · Cron jobs · Automated tests · Swagger · AWS S3 · Docker · React · TypeScript
THE IDEA
Built to fit how each lender actually works.
A loan management SaaS for the whole loan lifecycle: customers, configurable loan products, collections and daily tracking of every due.
THE ENGINEERING
Every night, each loan runs through an event pipeline:
The problem
Lenders managed schemes, repayments and dues by hand in notes and Excel. Loans were slow to process, interest was easy to miscalculate, and defaulters were spotted too late.
The idea
Lenders differ in how they charge interest, apply penalties and collect repayments. Instead of forcing one fixed model, this loan management system lets each client configure its own loan products and runs the whole lifecycle in one place: customers, loans, collections and daily tracking of every due. A nightly process applies charges and penalties and flags overdue accounts, so teams start each day with an accurate view of every loan.
What I built
I designed the backend architecture for a SaaS lending platform: one product serving several finance companies, each on its own isolated database.
-
SaaS onboarding. A master console sets up each new client company, its admin users, and its own session and account-lockout rules.
-
Configurable loan products. Interest, penalty, charge and preclosure rules with tiered slabs. Supports EMI, daily, flexible and interest-only repayment. A new loan type needs configuration, not code.
-
Nightly loan engine. Raises due, overdue, matured and arrears events in a fixed order, and applies the right fees and penal interest.
-
Full lifecycle. Application and approval, disbursement, collections, part payment and preclosure, backed by a complete transaction ledger.
-
Customers. Customer records with KYC, nominees, employment details and photos, plus merging of duplicate records with full history.
-
Collections and tracking. Collection agents, routes and batches; each payment split across principal, interest, charges and penalties; daily due reminders.
-
Dashboards. Business metrics, today’s collections, cash and bank position, disbursement and collection charts, and monthly collection targets against what was achieved. Branch staff see their own branches; admins see every branch, company and funder at once.
-
Reports. Arrears with follow-up remarks, pending instalments, pending and bounced cheques, loan books, funder earnings and cash-disbursement limits. Each one is filterable on screen and exports to Excel or PDF, with separate permissions to view and to export.
-
Hardened security. Role and per-screen permissions, account lockout, session control, and a dependency audit that cut known vulnerabilities from 30 to 0.
The impact
Clients process and store loans quickly and safely in one place. Daily reminders and arrears reports let them track dues and spot defaulters early, and management gets the numbers it needs without building spreadsheets by hand.
Built at work for a lending business. Client and product names are left out on purpose.