Skip to content

Mobile App · Offline Farm Ledger for Android

Kisaan Hisaab — Offline Farm Labour Ledger

Kisaan Hisaab is an offline Android ledger I built solo for my family's cotton farm: worker pay per mann, advances, season profit and PDF ledgers in English, Roman Urdu and Urdu. It is now in testing with real farmers.

  • Dashboard, worker list and a worker's ledger in one offline app. Demo data.
  • Logging a day's picking with a live Mann and rupee preview, then recording a payment. Demo data.
  • The same screen in English, Roman Urdu and Urdu. Demo data.
  • Period reports per worker and season finances with net profit after labour. Demo data.
  • The exported PDF ledger and the work-type settings behind it. Demo data.
On this page

My role

Kisaan Hisaab ("the farmer's accounts") is my own app, written for my family's cotton farm in South Punjab. I built it alone in about two and a half weeks in June 2026, with fixes in August, using Expo SDK 56, React Native 0.85 and TypeScript. I was both the developer and the first person who understood the problem, which shaped almost every decision. It is now in testing with real farmers, and a signed APK can be downloaded and installed.

The problem

In picking season a dozen or more workers pick cotton daily and each is paid by weight. Pay is quoted per 40 KG mann, yet the cotton is weighed in kilograms, and the only record is a notebook. Weeks later someone turns the pages into what each person is owed, minus advances, and settles in cash. Arithmetic mistakes either shortchange a worker or overpay from a thin margin. Rates rise mid-season but old entries must keep the old rate. And the person keeping the books may read Urdu better than English, on a cheap Android phone in bright sun with no signal.

Key decisions and why

Lock the price onto each entry

The rate, the unit conversion and the unit labels are copied onto the entry when it is created. So a rate rise in October leaves September's amounts alone. When an owner changes a rate with entries already present, the app asks whether it applies to future entries, every entry or a date range, and records the choice in the work type's history. The price is that quantities in different units must never be added together, so reports group by work type and unit snapshot, and only money is summed across them.

Derive balances, never store them

Earned, paid and remaining are calculated from entries and payments every time. A stored total can drift from the rows behind it, and in a ledger someone argues about, that is the worst failure. Inside a month or season view I leave payments out of "remaining" on purpose, since a payment clears a person's entire balance rather than one month.

No server, no account

Everything lives on the phone. That removes signal problems and any question of where a family's money records go. The cost is that backup is the owner's job, so backup exports JSON through the share sheet and restore merges records by id rather than replacing them, so restoring the same file twice changes nothing.

Treat Urdu as a first-class language

About 400 strings exist in English, Roman Urdu and Urdu script. Every string is rendered by a single text component, which switches Urdu to the Naskh font and right-to-left layout but leaves numbers, money and dates reading left to right. I wrote the lakh-grouped money formatter (Rs. 1,50,000) by hand because the phone's JavaScript engine does not handle Intl reliably across devices.

What I built

  • Work types: First launch seeds Cotton Picking, Wheat Cutting and Daily Labour (cotton at 1 Mann = 40 KG), and each can be renamed, re-priced or archived. 70 KG shows as "1 Mann 30 KG", the way a farmer counts.
  • Fast entry: a live amount preview, a remembered work type, a worker that stays selected after saving, and a bulk sheet to log the whole crew at once.
  • Built for the field: touch targets of at least 52 px, haptic feedback on errors, undo after every delete, and an in-app evening reminder that needs no permission and survives aggressive battery savers.
  • Finance: income against expenses by season, with net profit including the labour bill pulled from the workers' ledger, so the largest cost is not forgotten.
  • PDF ledgers: one tap for a crew, worker or period report in the chosen language, made offline with the phone's own Urdu fonts and shared straight to WhatsApp.
  • Privacy: a 4-digit PIN or fingerprint, salted hash in secure storage and escalating lockout after wrong guesses.

The app is about 16,000 lines across 82 files.

Results

  • Settlement becomes a lookup: each worker's balance is always current and a one-page PDF can be sent on WhatsApp.
  • Old entries stay at their recorded price, and reaching back in time is an explicit choice by the owner.
  • Entry, reports, PDF export and backup all work with no signal.
  • One per-season profit figure now counts sales, inputs and labour together.
All projects

Have a project in mind?

Whether it's an MVP, a dashboard, or a rescue mission on an existing codebase — let's talk about it.

Prefer to talk first? Book a free 30-min call (opens in a new tab)