
Receipt Machine
Emailed receipts into the books. 30 s per document, no cloud.
An accounting client: receipts and invoices arrive by email and have to become accounting records. For security, nothing may leave their hardware.
Version 1: modules
Five workflows: mail intake (a sender whitelist, protection against reply loops, unpacking forwarded messages), processing one document at a time, a reply in the thread only when something is wrong, an admin overview. Each module can be fixed on its own. A stuck document is taken over by a watchdog after 20 minutes and set aside after five attempts.
Four containers in all (the workflows, MySQL, libheif for HEIC conversion, Adminer).
Version 2: an API
October 2026: one workflow called through a webhook, no Gmail needed, the result comes back right away or through a callback. Test run: 22 steps, all passed.
A simpler setup with only two containers (the workflows, MySQL).
My own document generator
Real receipts cannot be published, and without correct answers accuracy cannot be measured. I wrote receipt-forge (.NET 9, QuestPDF, SkiaSharp): synthetic Czech receipts and invoices with valid company IDs and 21/12/0% VAT, thermal paper and A4, plus noisy photos and a JSON with the correct values. Public set: 50 documents.