Guides / Websites

Turn your shop into a clickable 3D dashboard: 3 prompts for Claude Code and a moving three.js world

Give it data (sample data if there is no POS yet), describe your shop, then ask for three.js with everything clickable. Tested on a fictional bubble tea shop.

Is your daily revenue always a flat table? In this guide Claude Code turns a bubble tea shop into a small 3D world: click the shop to see today's cups, click a scooter to see when it arrives, and any stock item that runs low turns red. The shop, 午後珍奶 (Afternoon Boba), is fictional, and every number on screen is sample data Claude made. No real POS is connected. Every picture below is the actual page running.

01Before you start: Claude Code and an empty folder

We used Claude Code (Opus 5.5), not a normal chat window, because it creates files on your computer and can open a browser to check its own work. The whole page is four files, index.html, app.js, style.css and sample-data.json, all written by Claude.

  1. Install Claude Code by following the official quickstart.
  2. Create an empty folder, for example my-shop-dashboard, and open Claude Code inside it.
  3. Give it the three prompts below in order: 1, 2, 3. Ours worked first time; we didn't ask for any changes.

02Step 1: give it data, and ask for sample data if there's no POS yet

Say where the dashboard's numbers come from in the very first prompt. Our shop has no POS yet, so we asked for sample data, with fields that are easy to swap so real POS exports can replace it later.

Prompt 1: data (replace the [ ] parts with your shop)
I run a [bubble tea shop] called "[shop name]" and I haven't connected a POS yet.
First make me a sample data file, sample-data.json. Later I'll replace it with real data exported from my POS, so keep the fields easy to swap:
- Store: cups sold today, revenue today (in [currency]), people in the queue now, top 3 items with their cup counts
- Warehouse stock: [tea leaves, tapioca pearls, fresh milk, cups], each with current quantity, unit and a low-stock threshold (at least one item already below its threshold)
- [3] delivery scooters: ID, status (delivering / returning / standby), orders on board, next stop, ETA in minutes
- Customers today, repeat-purchase rate
Clearly mark the file as sample data.

We used the shop name 午後珍奶 (fictional). The sample-data.json Claude made includes 386 cups today, NT$24,850 revenue and 5 people queueing; only 4.5 kg of tapioca pearls left, below the 10 kg threshold; and scooter A1 out on delivery with 3 orders, arriving in 6 minutes. All of these are made-up sample numbers.

03Step 2: describe your shop as if it were a toy model

The second prompt is only about looks. Write one thing per line: what is in the shop, what is next to it, what moves, what is in the background, and the style and colours.

Prompt 2: the 3D world (replace the [ ] parts with your shop)
Design my shop as a small 3D isometric world, like a toy model on a desk:
- On the street corner, a [bubble tea shop called "shop name"]: [orange sign, takeaway window, a few little people queueing at the door]
- A small warehouse behind the shop with boxes of [tea leaves, tapioca pearls, fresh milk and cups]
- [3] delivery scooters driving around the streets, each with an insulated box on the back
- Zebra crossings, street lamps, a few round trees and some low houses in the background
- Off-white background, soft shadows, clean low-poly style, colours [orange, milk-tea beige, mint green]
The finished isometric world: the bubble tea shop, a mint-green warehouse, three scooters, houses and trees
All of prompt 2 is there: orange sign, queue, warehouse, three scooters, crossings, lamps, round trees, low houses.

04Step 3 (the important one): ask for three.js, with everything moving and clickable

If you only say "make it 3D", you often get a pretty picture you can't click. This prompt has to spell out three things: build a web page with three.js, make everything move, and make every object clickable, with data cards that read from sample-data.json.

Prompt 3: the three.js page (replace the [ ] parts with your objects and data)
Build this world as a web page with three.js (index.html, reading its data from sample-data.json):
- When the page opens, the world assembles piece by piece (the ground appears first, buildings drop in from above with a small bounce)
- Everything moves: scooters loop around the streets, the sign glows softly, the queueing people sway a little, the warehouse roller door opens and closes
- Every object is clickable: it brightens on hover, and a click opens a frosted-glass data card next to it, joined to the object by a dashed line. Every number is read from sample-data.json
  - Click the [shop]: [cups today, revenue, queue, top 3 items]
  - Click the [warehouse]: [each stock item; any item below its threshold turns red and is marked "Restock"]
  - Click a [scooter]: [status, orders on board, next stop, minutes to arrival]
- Cards follow their object as it moves; click empty space to close them
- A "Table mode" button at the top right switches to an ordinary flat table dashboard (same data) for comparison; press it again to go back to 3D
- Shop name at the top left, and a small "Sample data" label in a corner
- It must look good on both phone and desktop
The page just opened: the ground and roads appear first and houses drop in from above
On load, the ground and roads appear first and houses drop in with a bounce: the world assembles piece by piece.
Frosted data card after clicking the shop: today's cups, revenue, queue and top 3 items
Click the shop: 386 cups, NT$24,850, 5 in the queue and the top 3 items, with a dashed line to the shop.
Warehouse stock card where tapioca pearls are below the threshold, shown in red and marked restock
Click the warehouse: pearls at 4.5 kg are below the threshold, so they turn red and get a 補貨 (restock) tag.
Data card for scooter A1: delivering, 3 orders on board, arriving in 6 minutes, next stop Minsheng Road 52
Click scooter A1: out on delivery, 3 orders, arriving in 6 minutes. The card follows the scooter.

05Compare: one click turns the same data back into a flat table

The 表格模式 (Table mode) button at the top right is something we asked for in prompt 3. One click turns the same data into an ordinary dashboard: revenue, cups, queue, customers and repeat rate, plus tables for top items, stock and scooters. Click 回到 3D (Back to 3D) to return.

Table mode: a flat dashboard of the same sample data, with the pearls row marked restock
Table mode: just as complete, but you read it cell by cell. The 3D version shows at a glance where the problem is.

06It works on phones too

The last line of prompt 3 says it must look good on phone and desktop. We opened the same page at phone size (390×844): the world shrinks and centres itself, and data cards sit at the bottom of the screen, still joined by a dashed line to the object you tapped.

Three phone-size screens: the 3D world, the shop data card and the warehouse stock card
The same page at phone size: the world, the shop card and the warehouse card. Cards sit at the bottom of the screen.

07Trying it yourself: opening the page and switching to real data

  1. The page reads sample-data.json, so double-clicking index.html won't load the data; the page tells you to open it through a local server.
  2. Run npx serve in the folder, or ask Claude Code to start a local server for you, then open the address it gives you.
  3. Once you have a POS, overwrite sample-data.json with your POS export using the same field names. The page doesn't need to change.
  4. When the data is real, remember to switch off the sample-data flag (in our file it is isDemo).

08Keep in mind

  1. 午後珍奶 is a fictional shop, and every number on screen is sample data generated by Claude, not real sales.
  2. We didn't connect any POS, Stripe or Square, and this guide doesn't show a connection.
  3. Claude Code (Opus 5.5) built the page in one go on 23 October 2026 and we didn't edit it. The same prompts give different details on every run.
  4. Before you load real revenue or customer data, think about who can see it: a sample-data.json on a public URL can be opened by anyone.
  5. three.js loads from jsDelivr, so the 3D view needs an internet connection.

Sources

Related guides