DEV Community

Abhinav Gupta
Abhinav Gupta

Posted on

I Built a Free AI Business Manager for Street Vendors in Hindi & English

How I Built a Bilingual AI-Powered Business Manager for Street Vendors in Jamshedpur

The Problem

Walk through any street in Jamshedpur, Jharkhand, and you'll find hundreds of small shop owners and hawkers running their entire business from memory โ€” stock levels, daily sales, employee wages, profit margins. They have no tools. Notebooks get lost. Mental math fails. And at the end of the day, most don't even know if they made a profit.

These vendors are not tech-illiterate. They have smartphones. They use WhatsApp. But every existing business app is either too complex, too expensive, or only available in English.

I wanted to solve that.


The Solution โ€” Dukaan Manager

Dukaan Manager is a free, offline-capable Progressive Web App (PWA) and Android app built for small shop owners and street vendors in India. It runs entirely in the browser โ€” no server, no subscription, no data charges beyond the initial load.

Built using HTML, CSS, JavaScript, and powered by the Gemini 2.0 Flash API, it gives every small vendor access to a smart business advisor in their pocket.


What It Does

๐Ÿ“ฆ Stock Management

Vendors can add items by name or photo. Each item stores buying price, selling price, and quantity. The app automatically calculates profit margins and flags low-stock items with colour-coded alerts.

๐Ÿ’ฐ Daily Sales Recording

Sales are recorded item by item, linked to which employee made the sale. The app auto-fills prices and calculates the total. Unsaved drafts survive accidental page refreshes using sessionStorage.

๐Ÿ‘ฅ Employee Tracking

Add employees with their role, salary, phone number, and joining date. Mark daily attendance (present/absent) with one tap. Track total sales made by each employee across all time.

๐Ÿ“… Sales History

Every saved sale is stored permanently in the browser's localStorage. History is grouped by date, collapsible, and shows daily revenue and profit โ€” clean and simple.

๐Ÿค– AI Business Advisor (Gemini-Powered)

This is where Google AI comes in. Using the Gemini 2.0 Flash API, vendors can ask natural language questions about their business:

  • "Which item gives me the most profit?"
  • "What should I restock tomorrow?"
  • "Are my prices competitive?"
  • "Which employee sold the most this week?"

Gemini receives the full context โ€” stock data, today's sales, employee info, and the last 7 days of history โ€” and responds with practical, concise advice tailored to that specific vendor's shop.

๐ŸŒ Hindi + English Toggle

With one tap, the entire app switches between English and Hindi (Devanagari script). Gemini also responds in whichever language the vendor prefers. This was a critical feature โ€” most vendors in Jharkhand are far more comfortable in Hindi.


The Local Problem It Solves

In Jamshedpur and across Tier 2 and Tier 3 India, small vendors face three core problems:

  1. No visibility โ€” they don't know their profit until much later, if ever
  2. No tools โ€” existing apps are designed for larger businesses
  3. Language barrier โ€” English-only apps exclude most of the target users

Dukaan Manager addresses all three. It's free, it works offline, it speaks Hindi, and it puts an AI advisor โ€” powered by Google Gemini โ€” in the hands of someone who has never had access to business intelligence before.


Tech Stack

Layer Technology
Frontend HTML5, CSS3, Vanilla JavaScript
AI Gemini 2.0 Flash API
Storage localStorage + sessionStorage
Distribution PWA (browser) + Android APK via WebIntoApp
Languages English + Hindi (Devanagari)

No backend. No database. No cost to run. Just a single HTML file that works anywhere.


What I Learned

Building with the Gemini API was surprisingly powerful. By passing structured business context โ€” stock, sales, employees โ€” into each prompt, I could turn a general-purpose model into a shop-specific advisor. The responses were practical, local, and genuinely useful.

The biggest challenge was making the app robust for real-world use: preventing data loss, handling float arithmetic correctly, protecting against XSS, and making sure the app felt native on a โ‚น8,000 Android phone.


Impact

Every small vendor who uses Dukaan Manager gets:

  • Real-time profit visibility
  • Stock alerts before they run out
  • A bilingual AI advisor โ€” something previously available only to large businesses
  • Zero cost, zero data plan required after install

This is what Google AI for everyone looks like.


Try It

The app is a single HTML file โ€” open it in any browser and it works instantly.

Built with: Gemini 2.0 Flash API ยท HTML/CSS/JS ยท localStorage ยท PWA

By: A builder from Jamshedpur, Jharkhand, India ๐Ÿ‡ฎ๐Ÿ‡ณ


Built as part of Google's Meet the Builders โ€” Gen AI Academy APAC Edition

Top comments (0)