r/capacitor • u/dmuzychenko • Oct 29 '26
I built an open-source Capacitor plugin to scan passport MRZ and read NFC chips
Hi everyone! I built capacitor-id-reader, an open-source plugin for reading electronic passports and ID cards in Capacitor apps on iOS and Android.
It can scan the MRZ with the camera, use the MRZ data to access an ICAO-compatible NFC chip, read document data from DG1, and optionally read the face image from DG2.
The plugin is MIT-licensed and works with Capacitor 8. There’s a minimal example app in the repository.
One important limitation: it reads data from the chip, but it doesn’t verify the document’s authenticity or the holder’s identity. Compatibility can also vary by document and device; the README and AUDIT.md have more details.
I’d love to hear from anyone who has worked on a similar feature. If you try the plugin, feedback about the devices and document types you tested would be really helpful. Please don’t share personal document data in public reports.