Bazaar Brain - An agentic AI demand forecasting tool for street vendors in Hazratganj, Lucknow
Link to open source: https://github.com/subrat-dwi/stall-brain
Link to Live Project: https://stall-brain.vercel.app/
"Hazratganj's iconic street market has vendors who over-stock or under-stock daily, leading to waste and lost revenue. Build an agent that reads footfall patterns, weather, local events, and social buzz to recommend optimal daily procurement."
Lucknow context: Hazratganj ยท Janpath Market
Every morning, thousands of street vendors in Hazratganj make the same high-stakes guess: how much stock should I buy today?
They have no tools. They rely on gut feel, last week's memory, and WhatsApp forwards. The consequences are real:
- A vendor overbought potatoes on a rainy day โ the crowd never came, the stock rotted.
- The next day, fearing rain again, he bought less โ but it was an LSG match day, the streets were packed, and he sold out by 4 PM, losing thousands in revenue.
This isn't bad luck. It's a data problem. The signals exist โ weather forecasts, event calendars, day-of-week patterns โ but no one has put them together for a Hazratganj vendor. Bazaar Brain does exactly that.
Bazaar Brain is a multi-page agentic web app that acts as a daily procurement advisor for street vendors. A vendor picks their stall type, customizes their item list, and the AI agent synthesizes live weather data, a Lucknow-specific event calendar, and weekly footfall patterns to produce a precise, actionable stock recommendation โ in English and Hindi.
The AI doesn't just answer a prompt. It reasons across multiple data signals before generating output, making it genuinely agentic rather than a simple chatbot.
Stall Profiles Seven vendor types built around Lucknow's actual street economy โ Chaat Stall, Chai Tapri, Juice Corner, Flower Vendor, Bhutta Stall, Snacks & Namkeen, and Balloon Seller โ each with pre-loaded default inventory.
Editable Inventory Vendors can add, remove, or rename items in their stall list before forecasting. The AI uses only the vendor's actual items โ no generic suggestions.
Live Lucknow Weather Fetches real-time weather from Open-Meteo using Hazratganj's exact coordinates (26.85ยฐN, 80.95ยฐE) and maps conditions to footfall impact multipliers. Rain doesn't just mean "bad weather" โ it means 0.4x footfall for chaat but a boost for bhutta.
Lucknow Event Radar A built-in calendar of local events โ Lucknow Mahotsav, Navratri, IPL LSG home matches at Ekana, public holidays, and weekly footfall patterns โ feeds into the demand calculation before the AI ever sees the prompt.
This build was uploaded as a hackathon project






