September 2025 – June 2026
Shelfwise: An AI-Powered Inventory Forecasting System
Never overstock, never run out.


Shelfwise is a demand forecasting tool that helps small businesses figure out what their shelves need next. Upload sales history, generate forecasts for any product, and get restocking decisions backed by real numbers, without any spreadsheet or data science background needed.
I built it as my undergraduate thesis. It classifies each product’s demand pattern, runs several forecasting models, and automatically picks the best fit, so steady sellers, seasonal spikes, and slow-moving items all get handled differently. A built-in advisor, powered by a large language model, then turns each forecast into plain-language advice on what to do next.
Highlights
- Runs five forecasting models — Prophet, XGBoost, Croston SBA, and two naive baselines — and picks the best one per product by profiling its demand pattern (smooth, erratic, intermittent, lumpy) and backtesting with rolling-origin cross-validation, with hyperparameters tuned by Optuna.
- Shelfwise Advisor: a Gemini-powered chatbot that reads each forecast and answers follow-up questions in plain language, with support for voice input and text-to-speech.
- Keeps secrets server-side: auth tokens live in HTTP-only cookies and never reach the client bundle (server-function proxy), API keys are encrypted at rest with Fernet, and every query is scoped to the signed-in user.
- Self-hosted end to end: FastAPI and PostgreSQL on a VPS, behind Google OAuth2 and email/password sign-in.
- Handles the messy real-world cases most tools skip, namely intermittent and lumpy demand via Croston SBA, weather regressors through Open-Meteo, and holiday awareness for 50+ countries.
Built with
- TypeScript
- React
- TanStack Start
- Python
- FastAPI
- PostgreSQL







