How monizb/trivagro works
Trivagro is a React frontend for comparing grocery search results across BigBasket, Zepto, Blinkit, and Instamart. A user enters a product name; the app queries three endpoints on a local backend and Blinkit directly, sorts Blinkit results by name similarity, and displays each retailer’s results. BigBasket results use a dedicated list component that supports variants and unit-price calculations. The README says a backend is needed for CORS, but no backend code is present here, so its internal behavior is not represented.
Main entry points: App.js Search and Compare · index.js React Entry · BBProductList.js BigBasket Product List
Components 7
Frontend
- React Entry
src/index.js - Search and Compare
src/App.js
Retailer APIs
- Local Grocery API
- Blinkit Search API
Product Results
- Retailer Result Views
src/App.js - BigBasket Product List
src/BBProductList.js
Other components
- Shopper
Connections 8
- Shopper → Search and Compare: searches products
src/App.js - React Entry → Search and Compare: renders
src/index.js - Search and Compare → Local Grocery API: queries BB, Zepto, Instamart
src/App.js - Local Grocery API → Search and Compare: returns product data
src/App.js - Search and Compare → Blinkit Search API: fetches search results
src/App.js - Blinkit Search API → Search and Compare: returns product data
src/App.js - Search and Compare → Retailer Result Views: displays retailer results
src/App.js - Search and Compare → BigBasket Product List: renders BigBasket products
src/App.js