oneshotEFA/verification-engine ? reverse-engineered prompt
Reverse engineered prompt
Build me a TypeScript library that can verify Ethiopian bank transfer receipts in a Node 20 app.
It should support CBE, Telebirr, Bank of Abyssinia, and E Birr, and be able to check receipts from a full link, an SMS message, a transaction reference, or an OCR screenshot. I want a simple VerificationEngine I can call with the bank, amount, proof text or image, and get back either success with the parsed receipt details or a clear failure reason.
Please make it work without any framework dependencies, and keep it usable in plain TypeScript projects. Add the built in URL validation for supported banks, amount matching with a little tolerance, and support for custom OCR readers and custom proxy resolution. If it makes sense, include a clean way to add another bank later by implementing one interface.
Also make sure there are tests for the main verification paths and the amount and URL checks. If you need to look up anything current, check the docs online first.
Are you gonna build this?
make sure you review the code using coderabbit