10 / 10receipts read correctly in English and in Arabic with Western digits; every wrong Arabic-Indic total flagged (web app, 30 rendered receipts)
01The problem
Why it exists
Saudi receipts mix Arabic and English, Arabic-Indic digits and two-column layouts, and most expense apps read them badly or send them to a server. Fatoora reads them on the phone: the store, the total and the VAT. It verifies ZATCA e-invoice QR codes, files each expense in the right category and shows where the money went. It is a white-label platform: every brand is a JSON file, and Fatoora and Masroof ship from identical sources.
02The system
What I built
Scandocument camera
On-device OCRArabic and English
ZATCA QRverified VAT
Categoriserlearns your stores
Insightswhere the money went
On-device reading with Apple Vision (Arabic and English text plus QR codes); images never leave the phone
A ZATCA QR decoder (seller, VAT number, time, total, VAT) that marks a receipt verified when the VAT number is valid and the VAT matches the rate
A receipt parser for Arabic-Indic digits and two-column Arabic layouts, with a confidence score per field and the printed VAT cross-checking the total
Insights, CSV and PDF export, a home-screen widget, Siri and Shortcuts, a Face ID lock and full Arabic right-to-left
White-label: a new brand is a folder, a Brand.json, one script and four lines of project.yml
An installable web app (PWA) with a line-for-line port of the logic; the same 17 test cases pass on both
03The result
What it achieved
The 17 unit tests pass on iOS and on the web port, and both brands and their widgets compile for iOS 27. On 30 rendered receipts without QR codes, the web app read every field of English receipts and of Arabic receipts with Western digits (10 of 10 each). Arabic-Indic digits are not read reliably by Tesseract (0 of 10 totals), but every wrong total was flagged for review and none was shown as trustworthy; on those receipts the ZATCA QR is the reliable path, and the iOS app uses Apple Vision.
Published limits
Not yet done: device runs, screenshots and TestFlight.
Stack
Swift 6SwiftUISwiftDataVisionWidgetKitApp IntentsPWAtesseract.js