Lager
From scheduled data collection to answers an AI can use. I built the pipeline, the database, the dashboard and the tools that connect them.
- In stock
- Few left
- Sold out
- Not sold here
From source
to answer.
The dashboard is the visible part. Most of the work sits underneath: collecting consistent data, keeping its history and making it useful.
Collect
Scheduled Python jobs read retail stock four times a day, starting with broad availability and then collecting exact counts.
Store
A database keeps the observations and daily snapshots, so the system can compare stock over time.
Prepare
Expensive calculations run ahead of the request. Cached results serve trends, rankings and summaries.
Explore
A JavaScript dashboard brings together stores, products, outlet items and changes in availability.
Ask
A unified API and an MCP server expose the same data to AI assistants, including Hubben.
The system
behind the screen.
What I built
Scheduled collection
Separate collection of general stock, exact quantities, outlet items and newly discovered products.
Historical comparisons
Snapshots make changes visible across products and stores, instead of showing only the latest number.
Prepared queries
Precomputed aggregates keep the dashboard responsive while collection and processing happen in the background.
One API
The front end and AI tools use a shared interface to the data, rather than maintaining separate collection pipelines.
MCP for assistants
A Python implementation built with the standard library lets assistants query stock in ordinary language.
A complete working system
Collection, storage, processing and presentation run together on a Raspberry Pi 5 that I maintain at home.
Under the hood
- Collection & APIPython, scheduled jobs and a unified data interface
- HistoryDatabase observations and daily snapshots
- PerformancePrecomputed calculations and cached results
- FrontendJavaScript modules
- AI integrationMCP server in Python, used by assistants such as Hubben
- HostingRaspberry Pi 5