# jaya626/jp-smart-tech-labs-website architecture

> Architecture diagram of the GitHub repository jaya626/jp-smart-tech-labs-website, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jaya626/jp-smart-tech-labs-website
- Repository: https://github.com/jaya626/jp-smart-tech-labs-website

## Overview

JP Smart Tech Labs is a storefront and services site for 3D printing, prototyping, and technology products. A visitor enters the routed frontend, browses the product catalog or service information, and can add products to a persisted cart. The frontend also includes a model-customization workflow with STL upload, model viewing, print settings, and pricing components. A separate Express backend currently exposes root and health responses; the excerpts do not show it serving the frontend’s product, cart, or contact flows. Several listed pages and integrations were not sampled, so their connections are not asserted.

Main entry points: [`frontend/src/App.jsx`](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/App.jsx) (Page Router), [`frontend/src/pages/HomePage.jsx`](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/HomePage.jsx) (Home Page), [`frontend/src/components/layout/Navbar.jsx`](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/layout/Navbar.jsx) (Navigation), [`frontend/src/components/layout/Footer.jsx`](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/layout/Footer.jsx) (Footer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Frontend Entry"]
  node_mount["React Mount<br/>[main.jsx]"]
  node_routes["Page Router<br/>[App.jsx]"]
  node_home["Home Page<br/>[HomePage.jsx]"]
  node_hero["Hero<br/>[Hero.jsx]"]
  node_category["Category Grid<br/>[CategoryGrid.jsx]"]
  node_layout["Website Layout<br/>[WebsiteLayout.jsx]"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_commerce["Product Shopping"]
  node_shop["Product Listing<br/>[ProductsPage.jsx]"]
  node_catalog[("Product Catalog<br/>[products.js]")]
  node_detail["Product Details"]
  node_cartpage["Cart Page<br/>[CartPage.jsx]"]
  node_cart[("Cart State<br/>[cartStore.js]")]
end

subgraph group_services["Services And Contact"]
  node_servicespage["Services Listing<br/>[ServicesPage.jsx]"]
  node_servicedetail["Service Details"]
  node_contact["Contact Page<br/>[ContactPage.jsx]"]
  node_quote["Quote Page<br/>[QuotePage.jsx]"]
end

subgraph group_custom["3D Customization"]
  node_custompage["Customization Page"]
  node_customsection["Customization Panel"]
  node_upload["STL Upload<br/>[STLUploader.jsx]"]
  node_viewer["3D Model Viewer<br/>[ModelViewer.jsx]"]
  node_settings["Print Settings<br/>[PrintSettings.jsx]"]
  node_pricing["Price Breakdown<br/>[PriceBreakdown.jsx]"]
  node_gallerypage["Gallery Page<br/>[GalleryPage.jsx]"]
  node_gallery["Gallery Grid<br/>[GalleryGrid.jsx]"]
  node_lightbox["Gallery Lightbox"]
end

subgraph group_backend["Backend Runtime"]
  node_server["HTTP Server<br/>[server.js]"]
  node_app["Express App<br/>[app.js]"]
  node_env["Environment Config<br/>[env.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_mount
node_mount -->|"renders"| node_routes
node_routes -->|"routes home"| node_home
node_routes -->|"routes shop"| node_shop
node_routes -->|"routes product"| node_detail
node_routes -->|"routes cart"| node_cartpage
node_routes -->|"routes services"| node_servicespage
node_routes -->|"routes detail"| node_servicedetail
node_routes -->|"routes contact"| node_contact
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_footer
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_category
node_home -->|"renders"| node_customsection
node_shop -->|"reads products"| node_catalog
node_shop -->|"updates cart"| node_cart
node_detail -->|"reads products"| node_catalog
node_cartpage -->|"reads products"| node_catalog
node_cartpage -->|"reads cart"| node_cart
node_servicespage -->|"renders"| node_navbar
node_servicespage -->|"renders"| node_footer
node_servicedetail -->|"renders"| node_navbar
node_servicedetail -->|"renders"| node_footer
node_customsection -->|"renders"| node_upload
node_customsection -->|"renders"| node_viewer
node_customsection -->|"renders"| node_settings
node_shop -->|"renders"| node_navbar
node_shop -->|"renders"| node_footer
node_cartpage -->|"renders"| node_navbar
node_cartpage -->|"renders"| node_footer
node_detail -->|"renders"| node_navbar
node_detail -->|"renders"| node_footer
node_server -->|"loads config"| node_env
node_server -->|"listens with"| node_app

click node_mount "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/main.jsx"
click node_routes "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/HomePage.jsx"
click node_hero "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/home/Hero.jsx"
click node_category "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/category/CategoryGrid.jsx"
click node_layout "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/layouts/WebsiteLayout.jsx"
click node_navbar "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/layout/Navbar.jsx"
click node_footer "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/layout/Footer.jsx"
click node_shop "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/ProductsPage.jsx"
click node_catalog "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/utils/products.js"
click node_detail "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/ProductDetailsPage.jsx"
click node_cartpage "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/CartPage.jsx"
click node_cart "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/store/cartStore.js"
click node_servicespage "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/ServicesPage.jsx"
click node_servicedetail "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/ServiceDetailPage.jsx"
click node_contact "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/ContactPage.jsx"
click node_quote "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/QuotePage.jsx"
click node_custompage "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/CustomizationPage.jsx"
click node_customsection "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/customization/CustomizationSection.jsx"
click node_upload "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/customization/STLUploader.jsx"
click node_viewer "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/customization/ModelViewer.jsx"
click node_settings "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/customization/PrintSettings.jsx"
click node_pricing "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/customization/PriceBreakdown.jsx"
click node_gallerypage "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/GalleryPage.jsx"
click node_gallery "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/gallery/GalleryGrid.jsx"
click node_lightbox "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/gallery/GalleryLightbox.jsx"
click node_server "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/backend/server.js"
click node_app "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/backend/src/app.js"
click node_env "https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/backend/src/config/env.js"

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_mount,node_routes,node_home,node_hero,node_category,node_layout,node_navbar,node_footer toneBlue
class node_shop,node_catalog,node_detail,node_cartpage,node_cart toneAmber
class node_servicespage,node_servicedetail,node_contact,node_quote toneMint
class node_custompage,node_customsection,node_upload,node_viewer,node_settings,node_pricing,node_gallerypage,node_gallery,node_lightbox toneRose
class node_server,node_app,node_env,node_visitor toneIndigo
```

## Components

### Frontend Entry

- [React Mount](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/main.jsx): `frontend/src/main.jsx`
- [Page Router](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Home Page](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/HomePage.jsx): `frontend/src/pages/HomePage.jsx`
- [Hero](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/home/Hero.jsx): `frontend/src/components/home/Hero.jsx`
- [Category Grid](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/category/CategoryGrid.jsx): `frontend/src/components/category/CategoryGrid.jsx`
- [Website Layout](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/layouts/WebsiteLayout.jsx): `frontend/src/layouts/WebsiteLayout.jsx`
- [Navigation](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/layout/Navbar.jsx): `frontend/src/components/layout/Navbar.jsx`
- [Footer](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/layout/Footer.jsx): `frontend/src/components/layout/Footer.jsx`

### Product Shopping

- [Product Listing](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/ProductsPage.jsx): `frontend/src/pages/ProductsPage.jsx`
- [Product Catalog](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/utils/products.js): `frontend/src/utils/products.js`
- [Product Details](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/ProductDetailsPage.jsx): `frontend/src/pages/ProductDetailsPage.jsx`
- [Cart Page](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/CartPage.jsx): `frontend/src/pages/CartPage.jsx`
- [Cart State](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/store/cartStore.js): `frontend/src/store/cartStore.js`

### Services And Contact

- [Services Listing](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/ServicesPage.jsx): `frontend/src/pages/ServicesPage.jsx`
- [Service Details](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/ServiceDetailPage.jsx): `frontend/src/pages/ServiceDetailPage.jsx`
- [Contact Page](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/ContactPage.jsx): `frontend/src/pages/ContactPage.jsx`
- [Quote Page](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/QuotePage.jsx): `frontend/src/pages/QuotePage.jsx`

### 3D Customization

- [Customization Page](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/CustomizationPage.jsx): `frontend/src/pages/CustomizationPage.jsx`
- [Customization Panel](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/customization/CustomizationSection.jsx): `frontend/src/components/customization/CustomizationSection.jsx`
- [STL Upload](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/customization/STLUploader.jsx): `frontend/src/components/customization/STLUploader.jsx`
- [3D Model Viewer](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/customization/ModelViewer.jsx): `frontend/src/components/customization/ModelViewer.jsx`
- [Print Settings](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/customization/PrintSettings.jsx): `frontend/src/components/customization/PrintSettings.jsx`
- [Price Breakdown](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/customization/PriceBreakdown.jsx): `frontend/src/components/customization/PriceBreakdown.jsx`
- [Gallery Page](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/pages/GalleryPage.jsx): `frontend/src/pages/GalleryPage.jsx`
- [Gallery Grid](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/gallery/GalleryGrid.jsx): `frontend/src/components/gallery/GalleryGrid.jsx`
- [Gallery Lightbox](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/frontend/src/components/gallery/GalleryLightbox.jsx): `frontend/src/components/gallery/GalleryLightbox.jsx`

### Backend Runtime

- [HTTP Server](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/backend/server.js): `backend/server.js`
- [Express App](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/backend/src/app.js): `backend/src/app.js`
- [Environment Config](https://github.com/jaya626/jp-smart-tech-labs-website/blob/main/backend/src/config/env.js): `backend/src/config/env.js`

### Other components

- **Visitor**

## Connections

- Visitor → React Mount: opens site (evidence: `frontend/src/main.jsx`)
- React Mount → Page Router: renders (evidence: `frontend/src/main.jsx`)
- Page Router → Home Page: routes home (evidence: `frontend/src/App.jsx`)
- Page Router → Product Listing: routes shop (evidence: `frontend/src/App.jsx`)
- Page Router → Product Details: routes product (evidence: `frontend/src/App.jsx`)
- Page Router → Cart Page: routes cart (evidence: `frontend/src/App.jsx`)
- Page Router → Services Listing: routes services (evidence: `frontend/src/App.jsx`)
- Page Router → Service Details: routes detail (evidence: `frontend/src/App.jsx`)
- Page Router → Contact Page: routes contact (evidence: `frontend/src/App.jsx`)
- Home Page → Navigation: renders (evidence: `frontend/src/pages/HomePage.jsx`)
- Home Page → Footer: renders (evidence: `frontend/src/pages/HomePage.jsx`)
- Home Page → Hero: renders (evidence: `frontend/src/pages/HomePage.jsx`)
- Home Page → Category Grid: renders (evidence: `frontend/src/pages/HomePage.jsx`)
- Home Page → Customization Panel: renders (evidence: `frontend/src/pages/HomePage.jsx`)
- Product Listing → Product Catalog: reads products (evidence: `frontend/src/pages/ProductsPage.jsx`)
- Product Listing → Cart State: updates cart (evidence: `frontend/src/pages/ProductsPage.jsx`)
- Product Details → Product Catalog: reads products (evidence: `frontend/src/pages/ProductDetailsPage.jsx`)
- Cart Page → Product Catalog: reads products (evidence: `frontend/src/pages/CartPage.jsx`)
- Cart Page → Cart State: reads cart (evidence: `frontend/src/pages/CartPage.jsx`)
- Services Listing → Navigation: renders (evidence: `frontend/src/pages/ServicesPage.jsx`)
- Services Listing → Footer: renders (evidence: `frontend/src/pages/ServicesPage.jsx`)
- Service Details → Navigation: renders (evidence: `frontend/src/pages/ServiceDetailPage.jsx`)
- Service Details → Footer: renders (evidence: `frontend/src/pages/ServiceDetailPage.jsx`)
- Customization Panel → STL Upload: renders (evidence: `frontend/src/components/customization/CustomizationSection.jsx`)
- Customization Panel → 3D Model Viewer: renders (evidence: `frontend/src/components/customization/CustomizationSection.jsx`)
- Customization Panel → Print Settings: renders (evidence: `frontend/src/components/customization/CustomizationSection.jsx`)
- Product Listing → Navigation: renders (evidence: `frontend/src/pages/ProductsPage.jsx`)
- Product Listing → Footer: renders (evidence: `frontend/src/pages/ProductsPage.jsx`)
- Cart Page → Navigation: renders (evidence: `frontend/src/pages/CartPage.jsx`)
- Cart Page → Footer: renders (evidence: `frontend/src/pages/CartPage.jsx`)
- Product Details → Navigation: renders (evidence: `frontend/src/pages/ProductDetailsPage.jsx`)
- Product Details → Footer: renders (evidence: `frontend/src/pages/ProductDetailsPage.jsx`)
- HTTP Server → Environment Config: loads config (evidence: `backend/server.js`)
- HTTP Server → Express App: listens with (evidence: `backend/server.js`)
