Case study · Manufacturing Operations
IFW Commission System
A private commission system for Indian Foundry Works. Operators submit claims, managers approve them and IFW pays, with a record kept at every step. It is a login-gated Next.js application, self-hosted rather than run on a managed hosting platform.
- Next.js App Router
- React Server Components
- Turbopack
- nginx
- Role-based access
- PDF generation
- Multi-language

- Languages on the claim flow
- 3
- React Server Components
- Server-first
- Private by default
- noindex
- nginx on Ubuntu
- Self-hosted
01 The problem
A process that moves money, running without a record
Indian Foundry Works pays commission to operators involved in its machinery sales. An operator submits a photo, an account number and supporting proofs; a manager reviews the claim and approves it; IFW pays.
That is the whole process. IFW wanted it to run as a proper system, with an auditable record of every claim, instead of through informal messages and paperwork.
Three things make this more than “a form with an approve button”. First, there is money at the end of the chain, so a mistake means a payment goes to the wrong place. Second, there are bank details in the middle, the most sensitive data the business handles. Third, the people using it do not share a language, so the claim flow has to work in English, Hindi and Punjabi.
There was also a constraint that ruled out the obvious build. IFW wanted a person to verify each claim, not a rules engine or an automatic payout threshold.
02 The approach
Build it as a private system, and put the sensitive parts on the server
Three decisions shaped the build. All three come from the same fact: this application holds other people’s bank details.
An application, not a website
Nothing in this system is for the public. The only page anyone can reach from the web is a login screen. The application is gated, marked noindex, and served behind nginx on Ubuntu rather than deployed to a managed hosting platform.
WhyA managed platform is a sensible default for a marketing site, but not for a system that holds commission records and account numbers. Self-hosting keeps the deployment, the logs and the data together in one place we can see and check, with no third party in between.
Server-first, using React Server Components
The application is built on the Next.js App Router with React Server Components, compiled with Turbopack. The important logic runs on the server: which claims each role can see, what a manager is allowed to act on, and anything that touches bank details.
WhyIn a server-first setup, data-access code stays on the server by default, and the browser only receives what a page needs to display. For a system like this, that matters more than the conveniences of a client-rendered app, because the mistakes it prevents are costly ones.
Keep the human in the loop, and build for them
IFW asked for manual verification, so we kept it. Approval is a real state that each claim moves through. It carries the evidence a reviewer needs and records who acted on the claim.
WhyAn automatic approval rule would have been easier to build, but worse for the client. IFW was not after speed. They wanted a record they could defend, showing that a named person looked at each claim before any money was paid against it. Automating that step would have removed the main thing they asked for.
03 Challenges
Two problems that needed care
Supporting a person’s decision instead of replacing it
Builds like this usually lean towards automating the approval, with thresholds, rules, or automatic payout above a certain confidence. IFW explicitly did not want that, which changes the problem. The system does not decide. Its job is to help one person decide quickly and consistently, and to record permanently who made each decision.
If that goes wrong, the manual step becomes a bottleneck the client gets blamed for: a queue of claims waiting while someone opens five things in four places before they can approve one.
Approval is modelled as a state the claim is in, rather than a checkbox someone ticks. The evidence a reviewer needs (the photo, the account number and the supporting proofs) is kept with the claim itself, so the decision is easy to make. The decision is also recorded: who submitted, what they attached, who acted, and when.
The system never makes the decision itself. What it does is attach a name and a timestamp to every decision, and stop the claim from being quietly changed afterwards.
The manual check IFW insisted on is no longer the slow part of the process. It is now the audit trail they asked for.
Three scripts on a form that ends in a bank account number
The claim flow is used in English, Hindi and Punjabi, which means three scripts: Latin, Devanagari and Gurmukhi. It is easy to treat that as a presentation detail, but here it is more than that.
If someone cannot read the label above a field, they may type the wrong number into it. On this form, that means money arriving somewhere it should not. The language of the labels sits right next to the most sensitive field in the system, so getting it right is a matter of accuracy, not only courtesy.
The claim flow is available in all three languages, rather than in English with translated help text added alongside. The labels a person sees while entering their account details are in the language they read.
The language a person reads is no longer a source of errors in a process that pays out money.
04 What we built
Claim, review, approve, pay — with a record at every step
Claim submission
- QR-based entry into the claim flow
- Photo upload and supporting proofs
- Account details for payment
- Available in English, Hindi and Punjabi
Review & approval
- Manager approval as an explicit state
- Submitted evidence held against the claim
- Who acted, and when, recorded per claim
Payout record
- Generated PDF receipts
- A lasting record of each settled claim
Access & platform
- Role-based access control
- Bank details held encrypted
- Login-gated and
noindexthroughout - Next.js App Router on self-hosted nginx
05 The result
A commission process that keeps its own records
IFW runs commission claims through a system that records them. Each claim carries its own evidence, each approval carries the name of the person who gave it, and each settled claim has a receipt. That is what we mean by “auditable”.
The manual verification the client asked for is still there. A person still makes each decision. The system makes that decision quick to reach and keeps a record of it that cannot be lost.
This is a closed system that holds commission records and bank details, so the link above only opens a login screen. We have no throughput or usage figures to quote, because that data belongs to the client. The only thing you can check from outside is the login page itself. Everything else on this page describes what we built. We are not asking you to take any numbers on trust.
