# shanugithub25/nfc-review architecture

> Architecture diagram of the GitHub repository shanugithub25/nfc-review, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shanugithub25/nfc-review
- Repository: https://github.com/shanugithub25/nfc-review

## Overview

ReviewTap is a storefront for customizable NFC/QR review cards, with retail checkout, bulk quoting, saved designs and orders, and an admin operations view. The main customer path runs from product/design discovery through cart and checkout to locally recorded orders; accounts and bulk orders are distinct paths, while the admin view manages saved operational data. The excerpts support app routing, storage calls, postal lookup, and 3D card construction. Several listed product capabilities are unsampled, so their internals and links are omitted rather than inferred.

Main entry points: [`src/App.tsx`](https://github.com/shanugithub25/nfc-review/blob/main/src/App.tsx) (App Router), [`src/utils/storage.ts`](https://github.com/shanugithub25/nfc-review/blob/main/src/utils/storage.ts) (Browser Storage), [`src/components/checkout/CheckoutModal.tsx`](https://github.com/shanugithub25/nfc-review/blob/main/src/components/checkout/CheckoutModal.tsx) (Checkout), [`src/three/ReviewCardMesh.ts`](https://github.com/shanugithub25/nfc-review/blob/main/src/three/ReviewCardMesh.ts) (Review Card Mesh)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_app["App Router<br/>[App.tsx]"]
  node_catalog["Product Catalog<br/>[products.ts]"]
  node_showcase["Product Showcase"]
  node_design["Design Upload"]
  node_customizer["Card Customizer<br/>[CardCustomizer.tsx]"]
  node_customizer3d["3D Customizer"]
  node_preview["Card Preview<br/>[CardPreview.tsx]"]
  node_policies["Policy Modals<br/>[PolicyModals.tsx]"]
end

subgraph group_commerce["Commerce"]
  node_cart["Cart Drawer<br/>[CartDrawer.tsx]"]
  node_checkout["Checkout<br/>[CheckoutModal.tsx]"]
  node_bulk["Bulk Quote Portal"]
end

subgraph group_operations["Order Operations"]
  node_account["Account Portal<br/>[AccountPortal.tsx]"]
  node_admin["Admin Dashboard<br/>[AdminDashboard.tsx]"]
end

subgraph group_rendering["Card Rendering"]
  node_cinematic["3D Story"]
  node_scene["Scene Manager<br/>[Scene3DManager.ts]"]
  node_mesh["Review Card Mesh<br/>[ReviewCardMesh.ts]"]
  node_geometry["Card Geometry<br/>[cardGeometry.ts]"]
  node_textures["Card Textures<br/>[cardTextures.ts]"]
  node_qr["QR Utility<br/>[qr.ts]"]
end

subgraph group_shared["Shared Data"]
  node_postal["PIN Lookup<br/>[indiaPostal.ts]"]
  node_storage[("Browser Storage<br/>[storage.ts]")]
  node_config["Brand Configuration<br/>[brand.ts]"]
  node_types["Domain Types<br/>[index.ts]"]
end

node_customer(("Customer"))

node_customer -->|"uses"| node_app
node_app -->|"renders"| node_showcase
node_app -->|"renders"| node_design
node_app -->|"renders"| node_cart
node_app -->|"renders"| node_checkout
node_app -->|"routes to"| node_account
node_app -->|"routes to"| node_admin
node_app -->|"renders"| node_policies
node_app -->|"renders"| node_cinematic
node_showcase -->|"uses products"| node_catalog
node_design -->|"uses products"| node_catalog
node_checkout -->|"looks up PIN"| node_postal
node_checkout -->|"saves order"| node_storage
node_checkout -->|"clears cart"| node_storage
node_cart -.->|"reads cart"| node_storage
node_account -->|"reads account data"| node_storage
node_account -->|"renders preview"| node_preview
node_admin -->|"updates records"| node_storage
node_admin -->|"uses products"| node_catalog
node_app -->|"loads cart"| node_storage
node_scene -->|"creates card"| node_mesh
node_cinematic -->|"creates card"| node_mesh
node_mesh -->|"builds geometry"| node_geometry
node_mesh -->|"creates textures"| node_textures
node_textures -->|"uses QR utility"| node_qr

click node_app "https://github.com/shanugithub25/nfc-review/blob/main/src/App.tsx"
click node_catalog "https://github.com/shanugithub25/nfc-review/blob/main/src/data/products.ts"
click node_showcase "https://github.com/shanugithub25/nfc-review/blob/main/src/components/showcase/CuratedShowcase.tsx"
click node_design "https://github.com/shanugithub25/nfc-review/blob/main/src/components/custom/CustomDesignUpload.tsx"
click node_customizer "https://github.com/shanugithub25/nfc-review/blob/main/src/components/customizer/CardCustomizer.tsx"
click node_customizer3d "https://github.com/shanugithub25/nfc-review/blob/main/src/components/customizer/CardCustomizer3D.tsx"
click node_preview "https://github.com/shanugithub25/nfc-review/blob/main/src/components/customizer/CardPreview.tsx"
click node_cart "https://github.com/shanugithub25/nfc-review/blob/main/src/components/cart/CartDrawer.tsx"
click node_checkout "https://github.com/shanugithub25/nfc-review/blob/main/src/components/checkout/CheckoutModal.tsx"
click node_bulk "https://github.com/shanugithub25/nfc-review/blob/main/src/components/bulk/BulkOrderPortal.tsx"
click node_postal "https://github.com/shanugithub25/nfc-review/blob/main/src/utils/indiaPostal.ts"
click node_account "https://github.com/shanugithub25/nfc-review/blob/main/src/components/account/AccountPortal.tsx"
click node_admin "https://github.com/shanugithub25/nfc-review/blob/main/src/components/admin/AdminDashboard.tsx"
click node_storage "https://github.com/shanugithub25/nfc-review/blob/main/src/utils/storage.ts"
click node_config "https://github.com/shanugithub25/nfc-review/blob/main/src/config/brand.ts"
click node_policies "https://github.com/shanugithub25/nfc-review/blob/main/src/components/common/PolicyModals.tsx"
click node_cinematic "https://github.com/shanugithub25/nfc-review/blob/main/src/components/three/Cinematic3DStory.tsx"
click node_scene "https://github.com/shanugithub25/nfc-review/blob/main/src/three/Scene3DManager.ts"
click node_mesh "https://github.com/shanugithub25/nfc-review/blob/main/src/three/ReviewCardMesh.ts"
click node_geometry "https://github.com/shanugithub25/nfc-review/blob/main/src/three/cardGeometry.ts"
click node_textures "https://github.com/shanugithub25/nfc-review/blob/main/src/three/cardTextures.ts"
click node_qr "https://github.com/shanugithub25/nfc-review/blob/main/src/utils/qr.ts"
click node_types "https://github.com/shanugithub25/nfc-review/blob/main/src/types/index.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_catalog,node_showcase,node_design,node_customizer,node_customizer3d,node_preview,node_policies toneBlue
class node_cart,node_checkout,node_bulk toneAmber
class node_account,node_admin toneMint
class node_cinematic,node_scene,node_mesh,node_geometry,node_textures,node_qr toneRose
class node_postal,node_storage,node_config,node_types,node_customer toneIndigo
```

## Components

### Storefront

- [App Router](https://github.com/shanugithub25/nfc-review/blob/main/src/App.tsx): `src/App.tsx`
- [Product Catalog](https://github.com/shanugithub25/nfc-review/blob/main/src/data/products.ts): `src/data/products.ts`
- [Product Showcase](https://github.com/shanugithub25/nfc-review/blob/main/src/components/showcase/CuratedShowcase.tsx): `src/components/showcase/CuratedShowcase.tsx`
- [Design Upload](https://github.com/shanugithub25/nfc-review/blob/main/src/components/custom/CustomDesignUpload.tsx): `src/components/custom/CustomDesignUpload.tsx`
- [Card Customizer](https://github.com/shanugithub25/nfc-review/blob/main/src/components/customizer/CardCustomizer.tsx): `src/components/customizer/CardCustomizer.tsx`
- [3D Customizer](https://github.com/shanugithub25/nfc-review/blob/main/src/components/customizer/CardCustomizer3D.tsx): `src/components/customizer/CardCustomizer3D.tsx`
- [Card Preview](https://github.com/shanugithub25/nfc-review/blob/main/src/components/customizer/CardPreview.tsx): `src/components/customizer/CardPreview.tsx`
- [Policy Modals](https://github.com/shanugithub25/nfc-review/blob/main/src/components/common/PolicyModals.tsx): `src/components/common/PolicyModals.tsx`

### Commerce

- [Cart Drawer](https://github.com/shanugithub25/nfc-review/blob/main/src/components/cart/CartDrawer.tsx): `src/components/cart/CartDrawer.tsx`
- [Checkout](https://github.com/shanugithub25/nfc-review/blob/main/src/components/checkout/CheckoutModal.tsx): `src/components/checkout/CheckoutModal.tsx`
- [Bulk Quote Portal](https://github.com/shanugithub25/nfc-review/blob/main/src/components/bulk/BulkOrderPortal.tsx): `src/components/bulk/BulkOrderPortal.tsx`

### Order Operations

- [Account Portal](https://github.com/shanugithub25/nfc-review/blob/main/src/components/account/AccountPortal.tsx): `src/components/account/AccountPortal.tsx`
- [Admin Dashboard](https://github.com/shanugithub25/nfc-review/blob/main/src/components/admin/AdminDashboard.tsx): `src/components/admin/AdminDashboard.tsx`

### Card Rendering

- [3D Story](https://github.com/shanugithub25/nfc-review/blob/main/src/components/three/Cinematic3DStory.tsx): `src/components/three/Cinematic3DStory.tsx`
- [Scene Manager](https://github.com/shanugithub25/nfc-review/blob/main/src/three/Scene3DManager.ts): `src/three/Scene3DManager.ts`
- [Review Card Mesh](https://github.com/shanugithub25/nfc-review/blob/main/src/three/ReviewCardMesh.ts): `src/three/ReviewCardMesh.ts`
- [Card Geometry](https://github.com/shanugithub25/nfc-review/blob/main/src/three/cardGeometry.ts): `src/three/cardGeometry.ts`
- [Card Textures](https://github.com/shanugithub25/nfc-review/blob/main/src/three/cardTextures.ts): `src/three/cardTextures.ts`
- [QR Utility](https://github.com/shanugithub25/nfc-review/blob/main/src/utils/qr.ts): `src/utils/qr.ts`

### Shared Data

- [PIN Lookup](https://github.com/shanugithub25/nfc-review/blob/main/src/utils/indiaPostal.ts): `src/utils/indiaPostal.ts`
- [Browser Storage](https://github.com/shanugithub25/nfc-review/blob/main/src/utils/storage.ts): `src/utils/storage.ts`
- [Brand Configuration](https://github.com/shanugithub25/nfc-review/blob/main/src/config/brand.ts): `src/config/brand.ts`
- [Domain Types](https://github.com/shanugithub25/nfc-review/blob/main/src/types/index.ts): `src/types/index.ts`

### Other components

- **Customer**

## Connections

- Customer → App Router: uses (evidence: `src/App.tsx`)
- App Router → Product Showcase: renders (evidence: `src/App.tsx`)
- App Router → Design Upload: renders (evidence: `src/App.tsx`)
- App Router → Cart Drawer: renders (evidence: `src/App.tsx`)
- App Router → Checkout: renders (evidence: `src/App.tsx`)
- App Router → Account Portal: routes to (evidence: `src/App.tsx`)
- App Router → Admin Dashboard: routes to (evidence: `src/App.tsx`)
- App Router → Policy Modals: renders (evidence: `src/App.tsx`)
- App Router → 3D Story: renders (evidence: `src/App.tsx`)
- Product Showcase → Product Catalog: uses products
- Design Upload → Product Catalog: uses products (evidence: `src/components/custom/CustomDesignUpload.tsx`)
- Checkout → PIN Lookup: looks up PIN (evidence: `src/components/checkout/CheckoutModal.tsx`)
- Checkout → Browser Storage: saves order (evidence: `src/components/checkout/CheckoutModal.tsx`)
- Checkout → Browser Storage: clears cart (evidence: `src/components/checkout/CheckoutModal.tsx`)
- Cart Drawer → Browser Storage: reads cart (evidence: `src/components/cart/CartDrawer.tsx`)
- Account Portal → Browser Storage: reads account data (evidence: `src/components/account/AccountPortal.tsx`)
- Account Portal → Card Preview: renders preview (evidence: `src/components/account/AccountPortal.tsx`)
- Admin Dashboard → Browser Storage: updates records (evidence: `src/components/admin/AdminDashboard.tsx`)
- Admin Dashboard → Product Catalog: uses products (evidence: `src/components/admin/AdminDashboard.tsx`)
- App Router → Browser Storage: loads cart (evidence: `src/App.tsx`)
- Scene Manager → Review Card Mesh: creates card (evidence: `src/three/Scene3DManager.ts`)
- 3D Story → Review Card Mesh: creates card (evidence: `src/components/three/Cinematic3DStory.tsx`)
- Review Card Mesh → Card Geometry: builds geometry (evidence: `src/three/ReviewCardMesh.ts`)
- Review Card Mesh → Card Textures: creates textures (evidence: `src/three/ReviewCardMesh.ts`)
- Card Textures → QR Utility: uses QR utility (evidence: `src/utils/qr.ts`)
