Dev.to
5/12/2026

How I built an Offline-First AI App using LLaMA 3 and React
Short summary
MedVerify detects counterfeit medicines in offline-first environments using LLaMA 3 for OCR, with local IndexedDB caching for areas with spotty connectivity. Built for India's healthcare crisis (₹6,000 Cr in fake medicines), the PWA gracefully degrades to manual barcode verification when offline. The production app includes zero-storage security, prompt injection defenses, and hardening for tier-3 community health workers.
- •Offline-first PWA using LLaMA 3 + React that works in low-connectivity rural India
- •Addresses ₹6,000 Cr counterfeit medicine market with graceful degradation to local CDSCO database
- •Production-grade security: zero-storage architecture, rate limiting, prompt injection defenses, full setup included
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



