Kotlin 2.0 • Jetpack Compose • ML Kit OCR • WorkManager

Stop Throwing Profits Away.
Guard Every Expiry Date.

Built for retail stores, kirana shops, and pharmacies. ExpiryGuard turns your Android phone into an automated loss prevention terminal with smart multi-source barcode lookup, on-device OCR date extraction, and proactive bilingual recovery playbooks.

8 Items Tracked In Demo
3 Alerts Urgent Expiries
₹49/mo Pro Plan (7d Free)
EN + HI Bilingual Engine
gitpankaj7 Created with passion by @gitpankaj7 Target SDK 36 (Android 15+)
09:41
5G 100%

Dashboard

Premium Member
Track. Alert. Save.
ExpiryGuard Smart Retail Inventory Shield
Automated Retail Defense

Zero Waste. Maximum Profit Recovery.

Combining camera OCR and real-time heuristics to help store owners clear nearing-expiry stock before it turns into dead loss.

Test ExpiryGuard In Real Time

Experience how ExpiryGuard's barcode resolution, OCR engine, and bilingual AI Assistant protect retail inventory right from your browser.

8901262010114
Amul Pasteurised Butter 500g
EXP: 14/09/2026 B.NO: B249 MRP: 295
API RESOLUTION & OCR RESULT Verified Match
Detected Title: Amul Pasteurised Butter 500g
Category / Brand: Dairy (Amul)
Barcode Scanned: 8901262010114
API Source: Open Food Facts (Global / IN)
OCR Expiry Extracted: 4 days left (96% OCR confidence)

ExpiryGuard queries OpenFoodFacts, OpenBeautyFacts, OpenProductsFacts, and UPCItemDB with fallback duckduckgo scraping so store clerks never have to type product titles manually.

AI Loss Recovery Engine Playbook

Tailored actionable directives based on shelf life, perishability category, and distributor return policies.

Product Name Category Quantity Cost Price Barcode Status Action

Built Ground-Up for Speed and Reliability

Engineered to eliminate manual data entry and protect retail business margins.

🔍

Multi-Source Barcode Lookup

Scans EAN-13, UPC-A, and QR codes. Automatically queries OpenFoodFacts, OpenBeautyFacts, OpenProductsFacts, UPCItemDB, and Google Books ISBN to resolve names and categories in milliseconds.

BarcodeProductLookup.kt
📷

ML Kit On-Device OCR

Uses Google Play Services thin client text recognition to parse inconsistent printed date formats (DD/MM/YYYY, MM/YYYY, Month YYYY) while intelligently ignoring MRP tags, batch numbers, and licenses.

ExpiryDateParser.kt
🧠

Bilingual Loss Recovery

Instant clearance playbooks in English and Hindi (हिंदी). Recommends buy-one-get-one promotions, front-shelf staging, distributor return credit requests, or quarantine bins based on perishability.

LossRecoveryEngine.kt

WorkManager Background Alerts

Runs periodic background workers to scan the local SQLite database. Fires high-priority Android notification channels at 30 days, 7 days, and on the exact day of expiry.

ExpiryNotificationWorker.kt

Offline-First Room + Firestore Sync

Instant offline responsiveness powered by Android Room SQLite and DataStore preferences, with automatic real-time cloud synchronization via Google Cloud Firestore.

Room + Cloud Firestore
💳

Secured Razorpay Backend

Node.js & Firebase Cloud Functions subscription backend enforcing cryptographic HMAC-SHA256 signature verification, IP rate limiting, and replay attack prevention.

backend/index.js (Express)

End-to-End Execution Pipeline

How CameraX, Google ML Kit, Room DB, Firebase, and the Loss Recovery Engine work in unison.

1

Capture & Vision

CameraX preview stream feeds high-fps frames into ML Kit Barcode Analyzer & Text Recognizer.

MLKit.Barcode + TextRecognition
2

Lookup & Normalization

Cascading REST lookup resolves product metadata, auto-tagging categories and filtering MRP prices.

OpenFoodFacts • UPCItemDB
3

Dual-Layer Persistence

Saved instantly to local Room SQLite cache and synchronized with Firestore when online.

Room DB <--> Cloud Firestore
4

Intelligence & Alerts

LossRecoveryEngine evaluates clearance tactics; WorkManager dispatches scheduled push alerts.

LossRecoveryEngine • WorkManager

Transparent & Affordable for Every Store

Start with a 7-day free trial. Upgrade anytime to unlock unlimited inventory and real-time alerts.

Free Trial

Test drive all features with zero risk.

₹0
7 days full access
  • Full Barcode & ML Kit OCR scanning
  • Bilingual Loss Recovery playbooks
  • Standard local SQLite storage
  • Limited to 7 days duration
Explore Demo

Ready to Guard Your Inventory?

Clone the repository, inspect the architecture, or contribute to India's smartest retail expiry management project.

Star gitpankaj7/ExpiryGuard Back to Simulator