Reverse engineered prompt

Build me a local web demo for a smart office building HVAC digital twin. I want to open it in the browser and see a multi floor building with zones and equipment like AHUs, chiller, boiler, pumps, and VAVs. The main view should be interactive and show temperatures and CO2 with clear colors, and I should be able to click things to inspect them.

I also want simple controls to change zone setpoints, adjust air settings, trigger demand response, run the simulation forward, reset back to a baseline state, and inject realistic faults so I can test failures and diagnostics. Show useful KPI cards for energy, cost, comfort, air quality, and equipment efficiency, plus alerts I can acknowledge with a short explanation and recommended action.

Please include a chat style operations copilot that can answer plain English questions, make control changes, and advance the sim. If local AI is available, use it, otherwise fall back gracefully. Keep the twin state in JSON, expose the needed API and live updates, and make it easy to start the demo locally on Node 20 plus. Look up current docs online if you need to.

Want more depth? Deep Reverse