Site icon BotFlo

Cursor App Template #45 — Demand Forecasting

Demand Forecasting

Model historical demand, apply growth assumptions, and compare forecast scenarios in one browser-based tool.

Overview

This app helps supply chain and planning teams project future demand from historical sales data. View historical and forecast quantities in an AG Grid, tune growth rate and seasonality assumptions, and switch between Base, Optimistic, and Pessimistic scenarios. Chart.js visualizations show demand trends and scenario totals; Excel import brings in external history. Everything runs in a single self-contained HTML page with data saved locally in your browser.

Key features

Historical & forecast grid

Growth assumptions

Scenarios & charts

Summary KPIs

Data management

Data & persistence

Sample data includes 24 historical rows (12 months × 2 products). Forecasts are generated from a rolling 3-month average with monthly compounding growth and Q4 seasonality uplift. State saves to `localStorage` under `demand-forecasting-data`.

Charts & reporting

The line chart connects historical data to the active scenario forecast. The bar chart compares total forecast volume across Base, Optimistic, and Pessimistic scenarios.

Built with

Tailwind CSS (CDN), AG Grid Community, Alpine.js, Chart.js, and SheetJS — all loaded from CDN in a single HTML file.

Try the interactive walkthrough below. Click Walk through features and use Next / Back (or arrow keys) to explore every feature.

Dark mode and localStorage

Demand Forecasting

Model historical demand, apply growth assumptions, and compare forecast scenarios.

Total forecast12,450
Historical total18,390
YoY growth13%
Peak month2025-12

Growth assumptions

Last hist avg: 1,670Next forecast: 2,045

Scenario

Uses your base growth rate as entered.

Demand trend — Widget Pro

Historical · Forecast

Scenario comparison (forecast total)

12.4k
14.1k
10.8k
Base · Optimistic · Pessimistic
Historical & forecast quantities18 periods
PeriodTypeHistoricalForecastvs Last %
2025-11Historical1,720
2025-12Historical1,890
2026-01Forecast2,045+8%
2026-02Forecast1,980+5%
💾 Saved to localStorage
Exit mobile version