This demo explores and showcases the possibilities of spatializing a real-world e-commerce site’s GUI.
| Large Screen | Small Window |
|---|---|
![]() |
![]() |
| Phone | Tablet |
|---|---|
![]() |
![]() |
| visionOS Safari | WebSpatial |
|---|---|
![]() |
![]() |
Run this command to reinstall dependencies after cloning or updating the repository:
pnpm install:cleanInstall the following tools globally:
- Xcode
- visionOS simulator
Then, create a .env.local file:
cp .env.example .env.localpnpm devEnsure the environment variable
XR_ENVis empty when running this dev server
Option A: open two terminals and run these two commands in each one:
pnpm devpnpm dev:avpThis environment-variable-enabled devserver can coexist with the devserver for desktop/mobile, using different ports and base automatically.
Option B: open one terminal and run this all-in-one command:
pnpm dev:allFill in the $XR_DEV_SERVER in the .env.local file.
XR_DEV_SERVER=http://localhost:[port from `pnpm dev:avp`]/webspatial/avp/
XR_PRE_SERVER=
XR_PROD_SERVER=Then:
pnpm run:avp






