How abu-nasim-lomani/atelier-webar-commerce works
Atelier is a furniture-commerce experience with product configuration, room-fit assessment, 3D viewing, AR launch, and share/order handoff. The product route orchestrates URL and stored configuration, commerce calculations, capability checks, and presentation; render and UI remain separate layers. The README describes an earlier scaffold phase, while the sampled source and SOURCE INDEX document later product capabilities. Some subsystem internals were not sampled, so uncertain links are omitted.
Main entry points: ProductOrchestrator.tsx Product orchestrator · RoomPreview.tsx Room preview UI · page.tsx Landing page · CanvasMount.tsx Canvas mount
Components 24
Site experience
- Landing page
app/page.tsx - Product orchestrator
app/product/[slug]/ProductOrchestrator.tsx - Product presentation
src/ui/modules/product - Room preview UI
src/ui/modules/product/RoomPreview.tsx - Legal and contact pages
src/ui/modules/legal - Landing sections
src/ui/modules/landing
Commerce domain
- Product catalog
src/commerce/catalog.ts - Finish options
src/commerce/finishes.ts - Fit checker
src/commerce/fitChecker.ts - Configuration URLs
src/commerce/urlState.ts - Decision and handoff
src/commerce/decisionArtifact.ts - Product config store
src/state/productConfig.ts
3D and AR
- Canvas mount
src/app/CanvasMount.tsx - Product render canvas
src/render/RenderCanvas.tsx - Preview canvas mount
src/app/RoomPreviewMount.tsx - Room preview canvas
src/render/RoomPreviewCanvas.tsx - Room and sofa scene
src/render/scene/RoomSofa.tsx - AR launch resolver
src/ar/launch.ts - AR canvas and session
src/render/xr/ArCanvas.tsx - AR capability detection
src/capability/arSupport.ts
Shared foundation
- Design tokens
src/tokens/primitive.ts - UI primitives
src/ui/primitives
Asset pipeline
- Offline asset pipeline
assets-pipeline
Other components
- Shopper
Connections 24
- Shopper → Landing page: opens
app/page.tsx - Shopper → Product orchestrator: configures
- Landing page → Landing sections: renders
app/page.tsx - Landing page → Canvas mount: mounts
app/page.tsx - Product orchestrator → Product presentation: composes
app/product/[slug]/ProductOrchestrator.tsx - Product orchestrator → Product config store: reads and updates
app/product/[slug]/ProductOrchestrator.tsx - Product orchestrator → Product catalog: resolves product
app/product/[slug]/ProductOrchestrator.tsx - Product orchestrator → Finish options: resolves finish
app/product/[slug]/ProductOrchestrator.tsx - Product orchestrator → Fit checker: checks fit
app/product/[slug]/ProductOrchestrator.tsx - Product orchestrator → Configuration URLs: syncs URL
app/product/[slug]/ProductOrchestrator.tsx - Product orchestrator → Decision and handoff: composes handoff
app/product/[slug]/ProductOrchestrator.tsx - Product orchestrator → AR capability detection: checks support
app/product/[slug]/ProductOrchestrator.tsx - Product orchestrator → AR launch resolver: resolves launch
app/product/[slug]/ProductOrchestrator.tsx - Product orchestrator → Canvas mount: mounts stage
app/product/[slug]/ProductOrchestrator.tsx - Product orchestrator → AR canvas and session: mounts AR
- Product orchestrator → Room preview UI: presents preview
app/product/[slug]/ProductOrchestrator.tsx - Room preview UI → Preview canvas mount: renders stage
- Room preview UI → Decision and handoff: uses handoff URL
- Room preview UI → Room preview canvas: composes room shot
src/ui/modules/product/RoomPreview.tsx - Canvas mount → Product render canvas: loads canvas
src/app/CanvasMount.tsx - Preview canvas mount → Room preview canvas: loads canvas
src/app/RoomPreviewMount.tsx - Room preview canvas → Room and sofa scene: renders sofa
src/render/RoomPreviewCanvas.tsx - Product orchestrator → Legal and contact pages: offers contact pages
- UI primitives → Design tokens: consumes tokens