# rakesh-1143/vape-hub architecture

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

- Interactive diagram: https://gitdiagram.com/rakesh-1143/vape-hub
- Repository: https://github.com/rakesh-1143/vape-hub

## Overview

The Vape Hub is currently an informational storefront homepage, not a transactional store: the README explicitly says checkout, accounts, inventory, API/database integration, and AWS deployment are not implemented. Visitors pass the age-entry confirmation and browse device concepts, product-category guidance, store information, FAQs, and contact links. The graph follows the documented homepage sections and sampled component references; unsampled subsystem details are represented only where the README establishes the capability.

Main entry points: [`apps/web/src/features/home/HomePage.tsx`](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/HomePage.tsx) (Homepage composition), [`apps/web/src/features/home/components/ProductCategories.tsx`](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/ProductCategories.tsx) (Product categories), [`apps/web/src/features/home/components/ProductStory.tsx`](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/ProductStory.tsx) (Product story), [`apps/web/src/features/home/components/CinematicHero.tsx`](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/CinematicHero.tsx) (Animated device hero)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App and entry"]
  node_app["App router<br/>[App.tsx]"]
  node_age["21+ entry gate<br/>[AgeGate.tsx]"]
end

subgraph group_home["Homepage content"]
  node_home_page["Homepage composition<br/>[HomePage.tsx]"]
  node_categories["Product categories"]
  node_story["Product story<br/>[ProductStory.tsx]"]
end

subgraph group_visuals["Product visuals"]
  node_hero["Animated device hero<br/>[CinematicHero.tsx]"]
  node_product_stage["Interactive product stage<br/>[ProductStage.tsx]"]
  node_device_scene["3D device scene<br/>[DeviceScene.tsx]"]
  node_device_model["Device model<br/>[DeviceModel.tsx]"]
  node_category_visual["Category illustrations<br/>[CategoryVisual.tsx]"]
  node_story_scene["Story scene<br/>[StoryScene.tsx]"]
end

subgraph group_guidance["Store guidance"]
  node_why["Local guidance<br/>[WhyVapeHub.tsx]"]
  node_store["Store experience"]
  node_store_hours["Store hours<br/>[StoreHours.tsx]"]
  node_faq["FAQ<br/>[FAQSection.tsx]"]
  node_cta["Contact call to action<br/>[FinalCTA.tsx]"]
end

subgraph group_shared["Shared UI and data"]
  node_header["Header navigation<br/>[Header.tsx]"]
  node_footer["Footer and contacts<br/>[Footer.tsx]"]
  node_device_data["Device concepts<br/>[devices.ts]"]
  node_content_data["Category and FAQ content<br/>[content.ts]"]
  node_store_data["Store details<br/>[store.ts]"]
  node_accordion["Accessible accordion<br/>[Accordion.tsx]"]
  node_media_query["Responsive and motion query<br/>[useMediaQuery.ts]"]
  node_brand["Brand mark<br/>[Brand.tsx]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens site"| node_app
node_app -->|"routes to"| node_home_page
node_home_page -->|"wraps content"| node_age
node_home_page -->|"renders"| node_header
node_home_page -->|"renders"| node_footer
node_home_page -->|"renders"| node_hero
node_home_page -->|"renders"| node_categories
node_home_page -->|"renders"| node_why
node_home_page -->|"renders"| node_story
node_home_page -->|"renders"| node_store
node_home_page -->|"renders"| node_faq
node_home_page -->|"renders"| node_cta
node_home_page -->|"selects concepts"| node_device_data
node_hero -->|"reads concepts"| node_device_data
node_hero -->|"renders stage"| node_product_stage
node_hero -->|"checks preferences"| node_media_query
node_product_stage -->|"renders scene"| node_device_scene
node_device_scene -->|"renders model"| node_device_model
node_device_scene -->|"reads concepts"| node_device_data
node_categories -->|"reads categories"| node_content_data
node_categories -->|"renders illustrations"| node_category_visual
node_categories -->|"checks layout"| node_media_query
node_why -->|"reads guidance"| node_content_data
node_story -->|"reads story"| node_content_data
node_story -->|"renders scene"| node_story_scene
node_story -->|"renders illustrations"| node_category_visual
node_store -->|"reads details"| node_store_data
node_store -->|"renders hours"| node_store_hours
node_store_hours -->|"reads hours"| node_store_data
node_faq -->|"reads questions"| node_content_data
node_faq -->|"renders answers"| node_accordion
node_cta -->|"reads contacts"| node_store_data
node_footer -->|"renders mark"| node_brand
node_footer -->|"reads contacts"| node_store_data

click node_app "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/app/App.tsx"
click node_age "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/components/layout/AgeGate.tsx"
click node_home_page "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/HomePage.tsx"
click node_header "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/components/layout/Header.tsx"
click node_footer "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/components/layout/Footer.tsx"
click node_hero "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/CinematicHero.tsx"
click node_device_data "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/data/devices.ts"
click node_product_stage "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/ProductStage.tsx"
click node_device_scene "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/scene/DeviceScene.tsx"
click node_device_model "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/scene/DeviceModel.tsx"
click node_categories "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/ProductCategories.tsx"
click node_category_visual "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/CategoryVisual.tsx"
click node_content_data "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/data/content.ts"
click node_why "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/WhyVapeHub.tsx"
click node_story "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/ProductStory.tsx"
click node_story_scene "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/scene/StoryScene.tsx"
click node_store "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/StoreExperience.tsx"
click node_store_hours "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/StoreHours.tsx"
click node_store_data "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/data/store.ts"
click node_faq "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/FAQSection.tsx"
click node_accordion "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/components/ui/Accordion.tsx"
click node_cta "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/FinalCTA.tsx"
click node_media_query "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/lib/useMediaQuery.ts"
click node_brand "https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/components/ui/Brand.tsx"

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_age toneBlue
class node_home_page,node_categories,node_story toneAmber
class node_hero,node_product_stage,node_device_scene,node_device_model,node_category_visual,node_story_scene toneMint
class node_why,node_store,node_store_hours,node_faq,node_cta toneRose
class node_header,node_footer,node_device_data,node_content_data,node_store_data,node_accordion,node_media_query,node_brand,node_visitor toneIndigo
```

## Components

### App and entry

- [App router](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/app/App.tsx): `apps/web/src/app/App.tsx`
- [21+ entry gate](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/components/layout/AgeGate.tsx): `apps/web/src/components/layout/AgeGate.tsx`

### Homepage content

- [Homepage composition](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/HomePage.tsx): `apps/web/src/features/home/HomePage.tsx`
- [Product categories](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/ProductCategories.tsx): `apps/web/src/features/home/components/ProductCategories.tsx`
- [Product story](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/ProductStory.tsx): `apps/web/src/features/home/components/ProductStory.tsx`

### Product visuals

- [Animated device hero](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/CinematicHero.tsx): `apps/web/src/features/home/components/CinematicHero.tsx`
- [Interactive product stage](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/ProductStage.tsx): `apps/web/src/features/home/components/ProductStage.tsx`
- [3D device scene](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/scene/DeviceScene.tsx): `apps/web/src/features/home/scene/DeviceScene.tsx`
- [Device model](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/scene/DeviceModel.tsx): `apps/web/src/features/home/scene/DeviceModel.tsx`
- [Category illustrations](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/CategoryVisual.tsx): `apps/web/src/features/home/components/CategoryVisual.tsx`
- [Story scene](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/scene/StoryScene.tsx): `apps/web/src/features/home/scene/StoryScene.tsx`

### Store guidance

- [Local guidance](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/WhyVapeHub.tsx): `apps/web/src/features/home/components/WhyVapeHub.tsx`
- [Store experience](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/StoreExperience.tsx): `apps/web/src/features/home/components/StoreExperience.tsx`
- [Store hours](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/StoreHours.tsx): `apps/web/src/features/home/components/StoreHours.tsx`
- [FAQ](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/FAQSection.tsx): `apps/web/src/features/home/components/FAQSection.tsx`
- [Contact call to action](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/components/FinalCTA.tsx): `apps/web/src/features/home/components/FinalCTA.tsx`

### Shared UI and data

- [Header navigation](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/components/layout/Header.tsx): `apps/web/src/components/layout/Header.tsx`
- [Footer and contacts](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/components/layout/Footer.tsx): `apps/web/src/components/layout/Footer.tsx`
- [Device concepts](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/data/devices.ts): `apps/web/src/features/home/data/devices.ts`
- [Category and FAQ content](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/data/content.ts): `apps/web/src/features/home/data/content.ts`
- [Store details](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/features/home/data/store.ts): `apps/web/src/features/home/data/store.ts`
- [Accessible accordion](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/components/ui/Accordion.tsx): `apps/web/src/components/ui/Accordion.tsx`
- [Responsive and motion query](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/lib/useMediaQuery.ts): `apps/web/src/lib/useMediaQuery.ts`
- [Brand mark](https://github.com/rakesh-1143/vape-hub/blob/main/apps/web/src/components/ui/Brand.tsx): `apps/web/src/components/ui/Brand.tsx`

### Other components

- **Site visitor**

## Connections

- Site visitor → App router: opens site
- App router → Homepage composition: routes to (evidence: `apps/web/src/app/App.tsx`)
- Homepage composition → 21+ entry gate: wraps content (evidence: `apps/web/src/features/home/HomePage.tsx`)
- Homepage composition → Header navigation: renders (evidence: `apps/web/src/features/home/HomePage.tsx`)
- Homepage composition → Footer and contacts: renders (evidence: `apps/web/src/features/home/HomePage.tsx`)
- Homepage composition → Animated device hero: renders (evidence: `apps/web/src/features/home/HomePage.tsx`)
- Homepage composition → Product categories: renders (evidence: `apps/web/src/features/home/HomePage.tsx`)
- Homepage composition → Local guidance: renders (evidence: `apps/web/src/features/home/HomePage.tsx`)
- Homepage composition → Product story: renders (evidence: `apps/web/src/features/home/HomePage.tsx`)
- Homepage composition → Store experience: renders (evidence: `apps/web/src/features/home/HomePage.tsx`)
- Homepage composition → FAQ: renders (evidence: `apps/web/src/features/home/HomePage.tsx`)
- Homepage composition → Contact call to action: renders (evidence: `apps/web/src/features/home/HomePage.tsx`)
- Homepage composition → Device concepts: selects concepts (evidence: `apps/web/src/features/home/HomePage.tsx`)
- Animated device hero → Device concepts: reads concepts (evidence: `apps/web/src/features/home/components/CinematicHero.tsx`)
- Animated device hero → Interactive product stage: renders stage (evidence: `apps/web/src/features/home/components/CinematicHero.tsx`)
- Animated device hero → Responsive and motion query: checks preferences (evidence: `apps/web/src/features/home/components/CinematicHero.tsx`)
- Interactive product stage → 3D device scene: renders scene (evidence: `apps/web/src/features/home/components/ProductStage.tsx`)
- 3D device scene → Device model: renders model (evidence: `apps/web/src/features/home/scene/DeviceScene.tsx`)
- 3D device scene → Device concepts: reads concepts (evidence: `apps/web/src/features/home/scene/DeviceScene.tsx`)
- Product categories → Category and FAQ content: reads categories (evidence: `apps/web/src/features/home/components/ProductCategories.tsx`)
- Product categories → Category illustrations: renders illustrations (evidence: `apps/web/src/features/home/components/ProductCategories.tsx`)
- Product categories → Responsive and motion query: checks layout (evidence: `apps/web/src/features/home/components/ProductCategories.tsx`)
- Local guidance → Category and FAQ content: reads guidance (evidence: `apps/web/src/features/home/components/WhyVapeHub.tsx`)
- Product story → Category and FAQ content: reads story (evidence: `apps/web/src/features/home/components/ProductStory.tsx`)
- Product story → Story scene: renders scene (evidence: `apps/web/src/features/home/components/ProductStory.tsx`)
- Product story → Category illustrations: renders illustrations (evidence: `apps/web/src/features/home/components/ProductStory.tsx`)
- Store experience → Store details: reads details (evidence: `apps/web/src/features/home/components/StoreExperience.tsx`)
- Store experience → Store hours: renders hours (evidence: `apps/web/src/features/home/components/StoreExperience.tsx`)
- Store hours → Store details: reads hours (evidence: `apps/web/src/features/home/components/StoreHours.tsx`)
- FAQ → Category and FAQ content: reads questions (evidence: `apps/web/src/features/home/components/FAQSection.tsx`)
- FAQ → Accessible accordion: renders answers (evidence: `apps/web/src/features/home/components/FAQSection.tsx`)
- Contact call to action → Store details: reads contacts (evidence: `apps/web/src/features/home/components/FinalCTA.tsx`)
- Footer and contacts → Brand mark: renders mark (evidence: `apps/web/src/components/layout/Footer.tsx`)
- Footer and contacts → Store details: reads contacts (evidence: `apps/web/src/components/layout/Footer.tsx`)
