# Smart Agri-Ledger
Offline-first record keeping for an agricultural cooperative: farmers, field
activities, harvests, and the money owed against them. Runs on a phone in a field
with no signal, and on a laptop in the office as a full spreadsheet.
**It is a ledger, not a payment app.** You pay farmers the way you always have, in
cash or by mobile money, in person. This records what was paid so every balance
stays correct, and tells you who is still owed. Nothing here talks to a bank, and no
button in it sends money to anyone.
**English and Kinyarwanda. Light and dark. One shared owner/manager account.**
**Live:**
gania-isaro.github.io
```bash
npm install
npm run dev #
localhost
npm run build # production bundle in dist/
```
## Two ways in
**Look around first.** The demo cooperative, already full of data:
```
owner@agriledger.rw PIN 1234
```
26 farmers, real harvests, payments and a complete ledger. A banner across the top
says plainly that the figures are generated, so nobody mistakes them for their own.
**Or create an account.** It starts completely empty: no farmers, no harvests, no
money, and nothing to delete before it is yours. You get the crop price list and the
activity catalog, because a cooperative with zero crops can register a farmer but
can never record a harvest against them, which is empty in the unhelpful sense.
Each account gets **its own database** (`smart_agri_data_ `). Tagging rows with an
owner id would mean one missed `where` clause leaks another cooperative's farmers and
balances into your screens; a separate database cannot leak by omission.
---
## What it does
Answers, at a glance, the questions a cooperative asks every morning:
- Who are our farmers, and what is each one doing right now?
- Who has farmed, who has harvested, and how much did they produce?
- How much money does each farmer deserve, and how much have we already paid?
- What happened on this farmer's account, and wh …