← robertjengstrom.com
Live simulation

Ridgeline Cycle Co.: a bike shop as a live data model

Every shopper, online order and delivery truck you see in the store is an event. Each one lands in an event log and rolls up into the scoreboard the moment it happens. Tap a zone or a salesperson to drill in.

Fictional shop. All products, people and numbers are simulated in your browser.
Thu 11:15 AM
Loading the 3D store…
Drag to orbit · pinch or scroll to zoom

Revenue today vs. yesterday

Today, cumulativeYesterday

Stock vs. target

Solid: on hand · faded: inbound on POs

Sales floor today

Store revenue by salesperson

How it works

The store and the dashboard never talk to each other directly. Both read from the same event log, the way a Power BI report and an operational app would read from one semantic model.

Generate

A minute-by-minute simulator draws shoppers, web orders and supplier deliveries, weighted toward an afternoon peak.

Log

Every action writes one row to an append-only event log: sale, web order, PO, receipt, shipment.

Model

Products, reps and purchase orders act as dimensions. Stock is derived: opening plus received minus sold.

Render

Three.js draws the store from the model; the scoreboard computes its measures from the same rows.

-- the measures behind the scoreboard, written as they would be in a semantic model
Revenue Today   = SUMX(FILTER(event_log, event_log[type] IN {"sale","web"} && event_log[date] = TODAY()), event_log[amount])
On Hand         = [Opening Stock] + SUM(receipts[qty]) - SUM(sales[qty])
Reorder Trigger = IF([On Hand] + [On Order] <= dim_product[min_stock], dim_product[reorder_qty])
vs Yesterday %  = DIVIDE([Revenue Today] - [Revenue Yesterday Same Time], [Revenue Yesterday Same Time])

Single HTML file: Three.js and plain JavaScript, no backend. Built with Claude Code by Robert Engstrom.