Menu

How I Built a Real-Time Grocery Price Comparator with React Native & Groq AI
📰

How I Built a Real-Time Grocery Price Comparator with React Native & Groq AI

DEV Community: reactnative·Zaid Bhimala·2 days ago
#Vekwj6sK
Reading 0:00
15s threshold

Indian quick-commerce platforms deliver groceries in 10 minutes, but catalog fragmentation and dynamic pricing mean that identical grocery baskets often differ in price by 20% or more.

To solve this, I built BasketBuddy —a React Native app that compares grocery baskets across stores in real time, auto-matches catalog entities, and bridges carts directly to store checkouts.

Here is an architectural breakdown of how it works and the engineering hurdles faced.

1. The Core Engineering Challenge: Catalog Entity Resolution

Store catalogs rarely share standardized SKUs or naming conventions:

Store A : "Amul Taaza Homogenised Toned Milk 1L"

Store B : "Amul Toned Milk 1000ml pouch"

Store C : "Amul Taaza Fresh Milk - 1 Litre"

Standard Levenshtein distance fails because volume formatting ( 1L vs 1000ml ) and promotional noise ( Super Saver , Combo ) distort similarity scores.

Solution: Hybrid Deterministic + LLM Matching

Deterministic Normalization :

Standardizes unit tokens ( ml -> l , gm -> kg ).

Strips…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.