receipt-ocr-ng
Turns a photo of a Nigerian bank or fintech receipt (OPay, PalmPay, Kuda, Moniepoint, GTBank and more) into structured transaction data. Open source on npm, about 1,000 downloads.
- Receipt image
- Vision model on Groq, temperature 0, JSON mode
- Normalise enums, coerce numbers
- Typed TransactionRecord
- An unreadable field comes back as null, never a misleading 0.
- If parsing fails, the raw model output is returned so the caller can debug or retry.
- Next: An evaluation set of real receipts to measure field-level accuracy per bank.
TypeScript · Groq · Qwen 3.6
{
"amount": 25000,
"currency": "NGN",
"platform": "opay",
"transaction_type": "transfer",
"status": "successful",
"recipient_account": "0123456789",
"reference": "250114010100xxxx",
"transaction_date": "2025-01-14T10:42:00+01:00",
"narration": null
}