cd /news/machine-learning/ranchi-dukaan-pro-predicting-stock-d… · home › topics › machine-learning › article
[ARTICLE · art-151076] src=dev.to ↗ pub= topic=machine-learning verified=true sentiment=· neutral

🏪 Ranchi Dukaan Pro — Predicting Stock Demand with TabPFN-TS

A developer built Ranchi Dukaan Pro, a Python and Gradio prototype that uses the TabPFN-TS time-series model to forecast seven-day product demand for a small kirana shop and convert those estimates into reorder recommendations via a simple inventory formula. In a single seven-day holdout on synthetic sales data for milk, bread, and rice, TabPFN-TS beat a same-weekday-last-week baseline with a mean absolute error of 1.29 versus 1.62 units and a WAPE of 9.18% versus 11.56%, though the baseline won for bread. The developer cautions the results come from synthetic data and one test window and do not establish real-world accuracy.

by read3 min views2 publishedOct 16, 2026

Can an AI forecast help a small shopkeeper make better stocking decisions?

Small retailers have to decide what to reorder, how much stock to keep, and when to place the next order. Too little stock can mean missed sales, while too much inventory can tie up money or increase the risk of expiry and waste.

For the Hacktoberfest 2026 Open-Source AI Challenge: Week 2 — Side Hustle, I built Ranchi Dukaan Pro, a prototype that uses TabPFN-TS to estimate the next seven days of product demand and turn those estimates into simple inventory recommendations. The goal is to explore whether a small, practical AI tool could be useful to a local kirana shop.

Ranchi Dukaan Pro is a Python and Gradio dashboard where users can provide daily sales history and review their current inventory.

The prototype includes:

The initial use case is deliberately narrow: helping a small kirana shop make more informed stock-planning decisions.

The workflow is straightforward:

The prototype uses this basic rule:

Reorder quantity = max(0, lead-time demand + safety stock - current stock - incoming stock) The forecasting model estimates demand; the inventory formula makes the reorder recommendation. Keeping these parts separate makes the results easier to inspect and improve.

I generated synthetic daily sales data for three example products: Milk 500 ml, Bread, and Rice 1 kg.

I then held out seven days of historical data and compared TabPFN-TS with a simple baseline that uses sales from the same weekday one week earlier.

The results from this single test window were:

Metric TabPFN-TS Simple baseline
Mean Absolute Error (MAE) 1.29 units 1.62 units
Weighted Absolute Percentage Error (WAPE) 9.18% 11.56%

The overall results favoured TabPFN-TS in this particular test window. However, the model did not outperform the baseline for every product: the baseline performed better for Bread.

Important limitation: these results come from synthetic data and one seven-day holdout. They do not establish real-world accuracy for Ranchi shops. More backtesting and evaluation on real sales records—with the business owner's permission—would be needed before relying on these forecasts for purchasing decisions.

Open Ranchi Dukaan Pro — Gradio Demo The prototype lets you review sample sales, edit inventory quantities, generate forecasts, and inspect suggested orders.

The Gradio share link is temporary and may stop working when its session ends.

Source code: GitHub — ranchi-dukaan-pro The repository includes the main application, setup information, and a downloadable project bundle.

This project uses TabPFN-TS for its forecasting component. I wanted to explore a tabular/time-series model that can be inspected and adapted rather than building the entire application around a closed forecasting service.

The current prototype uses client/cloud inference; it does not claim to run entirely offline. This distinction matters because shop sales can be commercially sensitive. Before using real business data, it is important to review the provider's data-handling terms and get appropriate permission.

The wider opportunity with open-source AI is flexibility: developers can study the implementation, experiment with different approaches, and adapt a tool for a specific problem.

The intended users are small retailers who struggle to track demand and decide what to reorder.

A future version could offer an affordable subscription for features such as recurring forecasts, inventory reports, expiry-aware suggestions, and easier sales imports.

This is currently a business hypothesis, not validated demand. I have not yet established that a real shopkeeper would pay for this prototype. The next step is to show it to a local retailer, understand their current workflow, and learn whether the forecasts and recommendations would actually help.

Building this prototype reinforced three lessons:

Next, I would like to test multiple historical windows, handle missing records and stock-outs more carefully, account for expiry and supplier constraints, and collect feedback from a real shopkeeper.

Ranchi Dukaan Pro is an early experiment in making demand forecasting more accessible to small retailers.

It is not yet a production inventory system, and its predictions should not be treated as guaranteed demand. But it provides a working starting point for exploring how open-source AI can support everyday business decisions.

Built for the Hacktoberfest Open-Source AI Challenge: Week 2 — Side Hustle.

── more in #machine-learning 4 stories · sorted by recency
── more on @ranchi dukaan pro 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ranchi-dukaan-pro-pr…] indexed:0 read:3min 2026-10-16 · —