# lostnseeker/lavinahome architecture

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

- Interactive diagram: https://gitdiagram.com/lostnseeker/lavinahome
- Repository: https://github.com/lostnseeker/lavinahome

## Overview

This is a React storefront for Levina Home, with an Express backend supporting account and order APIs plus PlentyONE/Shopify integrations. The customer workflow is browsing and filtering products, inspecting a product, managing a cart, and submitting checkout. The graph also preserves account, localization, and integration-status capabilities. Some backend routes and App behavior were only partially excerpted, so uncertain links are omitted or marked dashed.

Main entry points: [`src/App.tsx`](https://github.com/lostnseeker/lavinahome/blob/main/src/App.tsx) (Storefront App), [`server.js`](https://github.com/lostnseeker/lavinahome/blob/main/server.js) (Express API), [`src/components/AuthModal.tsx`](https://github.com/lostnseeker/lavinahome/blob/main/src/components/AuthModal.tsx) (Account UI), [`src/services/integrationService.ts`](https://github.com/lostnseeker/lavinahome/blob/main/src/services/integrationService.ts) (Integration Orchestrator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront"]
  node_app["Storefront App<br/>[App.tsx]"]
  node_navigation["Navigation<br/>[Navbar.tsx]"]
  node_localization["Localization<br/>[i18n.ts]"]
  node_auth_ui["Account UI<br/>[AuthModal.tsx]"]
  node_legal["Legal Information<br/>[LegalModal.tsx]"]
end

subgraph group_shopping["Shopping"]
  node_catalog["Product Catalog<br/>[App.tsx]"]
  node_search["Product Search<br/>[SearchModal.tsx]"]
  node_product_detail["Product Details"]
  node_product_modal["Product Quick View"]
  node_editorial["Editorial &amp; Stories"]
  node_social_gallery["Instagram Gallery"]
end

subgraph group_commerce["Commerce"]
  node_cart["Cart<br/>[CartDrawer.tsx]"]
  node_wishlist["Wishlist<br/>[WishlistDrawer.tsx]"]
  node_checkout["Checkout<br/>[CheckoutModal.tsx]"]
end

subgraph group_services["Services"]
  node_order_service["Order Service<br/>[orderService.ts]"]
  node_integration_ui["Integration Status UI"]
  node_integration_service["Integration Orchestrator"]
  node_shopify["Shopify Service<br/>[shopifyService.ts]"]
  node_plentyone["PlentyONE Service"]
end

subgraph group_backend["Backend"]
  node_backend["Express API<br/>[server.js]"]
end

node_customer(("Customer"))
node_erp["PlentyONE ERP"]
node_shopify_platform["Shopify Platform"]

node_customer -->|"browses"| node_app
node_app -->|"renders"| node_navigation
node_app -->|"filters products"| node_catalog
node_app -->|"renders"| node_product_detail
node_app -->|"renders"| node_search
node_app -->|"renders"| node_cart
node_app -->|"renders"| node_wishlist
node_app -->|"renders"| node_checkout
node_app -->|"renders"| node_editorial
node_app -->|"renders"| node_social_gallery
node_app -.->|"renders"| node_auth_ui
node_app -.->|"renders"| node_legal
node_app -.->|"renders"| node_product_modal
node_navigation -->|"switches language"| node_localization
node_auth_ui -.->|"requests account API"| node_backend
node_auth_ui -.->|"updates session"| node_app
node_checkout -->|"places order"| node_order_service
node_order_service -->|"submits checkout"| node_backend
node_integration_ui -->|"loads status"| node_integration_service
node_integration_ui -->|"checks ERP"| node_plentyone
node_integration_service -->|"creates checkout"| node_shopify
node_integration_service -->|"syncs order"| node_plentyone
node_plentyone -->|"calls API"| node_backend
node_backend -.->|"syncs catalog and orders"| node_erp
node_shopify -.->|"requests checkout"| node_shopify_platform

click node_app "https://github.com/lostnseeker/lavinahome/blob/main/src/App.tsx"
click node_navigation "https://github.com/lostnseeker/lavinahome/blob/main/src/components/Navbar.tsx"
click node_localization "https://github.com/lostnseeker/lavinahome/blob/main/src/i18n/i18n.ts"
click node_auth_ui "https://github.com/lostnseeker/lavinahome/blob/main/src/components/AuthModal.tsx"
click node_legal "https://github.com/lostnseeker/lavinahome/blob/main/src/components/LegalModal.tsx"
click node_catalog "https://github.com/lostnseeker/lavinahome/blob/main/src/App.tsx"
click node_search "https://github.com/lostnseeker/lavinahome/blob/main/src/components/SearchModal.tsx"
click node_product_detail "https://github.com/lostnseeker/lavinahome/blob/main/src/components/ProductDetailPage.tsx"
click node_product_modal "https://github.com/lostnseeker/lavinahome/blob/main/src/components/ProductDetailModal.tsx"
click node_editorial "https://github.com/lostnseeker/lavinahome/blob/main/src/components/SanctuaryStoryPage.tsx"
click node_social_gallery "https://github.com/lostnseeker/lavinahome/blob/main/src/components/InstagramGallery.tsx"
click node_cart "https://github.com/lostnseeker/lavinahome/blob/main/src/components/CartDrawer.tsx"
click node_wishlist "https://github.com/lostnseeker/lavinahome/blob/main/src/components/WishlistDrawer.tsx"
click node_checkout "https://github.com/lostnseeker/lavinahome/blob/main/src/components/CheckoutModal.tsx"
click node_order_service "https://github.com/lostnseeker/lavinahome/blob/main/src/services/orderService.ts"
click node_integration_ui "https://github.com/lostnseeker/lavinahome/blob/main/src/components/IntegrationStatusModal.tsx"
click node_integration_service "https://github.com/lostnseeker/lavinahome/blob/main/src/services/integrationService.ts"
click node_shopify "https://github.com/lostnseeker/lavinahome/blob/main/src/services/shopifyService.ts"
click node_plentyone "https://github.com/lostnseeker/lavinahome/blob/main/src/services/plentyoneService.ts"
click node_backend "https://github.com/lostnseeker/lavinahome/blob/main/server.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_app,node_navigation,node_localization,node_auth_ui,node_legal toneBlue
class node_catalog,node_search,node_product_detail,node_product_modal,node_editorial,node_social_gallery toneAmber
class node_cart,node_wishlist,node_checkout toneMint
class node_order_service,node_integration_ui,node_integration_service,node_shopify,node_plentyone toneRose
class node_backend,node_customer,node_erp,node_shopify_platform toneIndigo
```

## Components

### Storefront

- [Storefront App](https://github.com/lostnseeker/lavinahome/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation](https://github.com/lostnseeker/lavinahome/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Localization](https://github.com/lostnseeker/lavinahome/blob/main/src/i18n/i18n.ts): `src/i18n/i18n.ts`
- [Account UI](https://github.com/lostnseeker/lavinahome/blob/main/src/components/AuthModal.tsx): `src/components/AuthModal.tsx`
- [Legal Information](https://github.com/lostnseeker/lavinahome/blob/main/src/components/LegalModal.tsx): `src/components/LegalModal.tsx`

### Shopping

- [Product Catalog](https://github.com/lostnseeker/lavinahome/blob/main/src/App.tsx): `src/App.tsx`
- [Product Search](https://github.com/lostnseeker/lavinahome/blob/main/src/components/SearchModal.tsx): `src/components/SearchModal.tsx`
- [Product Details](https://github.com/lostnseeker/lavinahome/blob/main/src/components/ProductDetailPage.tsx): `src/components/ProductDetailPage.tsx`
- [Product Quick View](https://github.com/lostnseeker/lavinahome/blob/main/src/components/ProductDetailModal.tsx): `src/components/ProductDetailModal.tsx`
- [Editorial & Stories](https://github.com/lostnseeker/lavinahome/blob/main/src/components/SanctuaryStoryPage.tsx): `src/components/SanctuaryStoryPage.tsx`
- [Instagram Gallery](https://github.com/lostnseeker/lavinahome/blob/main/src/components/InstagramGallery.tsx): `src/components/InstagramGallery.tsx`

### Commerce

- [Cart](https://github.com/lostnseeker/lavinahome/blob/main/src/components/CartDrawer.tsx): `src/components/CartDrawer.tsx`
- [Wishlist](https://github.com/lostnseeker/lavinahome/blob/main/src/components/WishlistDrawer.tsx): `src/components/WishlistDrawer.tsx`
- [Checkout](https://github.com/lostnseeker/lavinahome/blob/main/src/components/CheckoutModal.tsx): `src/components/CheckoutModal.tsx`

### Services

- [Order Service](https://github.com/lostnseeker/lavinahome/blob/main/src/services/orderService.ts): `src/services/orderService.ts`
- [Integration Status UI](https://github.com/lostnseeker/lavinahome/blob/main/src/components/IntegrationStatusModal.tsx): `src/components/IntegrationStatusModal.tsx`
- [Integration Orchestrator](https://github.com/lostnseeker/lavinahome/blob/main/src/services/integrationService.ts): `src/services/integrationService.ts`
- [Shopify Service](https://github.com/lostnseeker/lavinahome/blob/main/src/services/shopifyService.ts): `src/services/shopifyService.ts`
- [PlentyONE Service](https://github.com/lostnseeker/lavinahome/blob/main/src/services/plentyoneService.ts): `src/services/plentyoneService.ts`

### Backend

- [Express API](https://github.com/lostnseeker/lavinahome/blob/main/server.js): `server.js`

### Other components

- **Customer**
- **PlentyONE ERP**
- **Shopify Platform**

## Connections

- Customer → Storefront App: browses
- Storefront App → Navigation: renders (evidence: `src/App.tsx`)
- Storefront App → Product Catalog: filters products (evidence: `src/App.tsx`)
- Storefront App → Product Details: renders (evidence: `src/App.tsx`)
- Storefront App → Product Search: renders (evidence: `src/App.tsx`)
- Storefront App → Cart: renders (evidence: `src/App.tsx`)
- Storefront App → Wishlist: renders (evidence: `src/App.tsx`)
- Storefront App → Checkout: renders (evidence: `src/App.tsx`)
- Storefront App → Editorial & Stories: renders (evidence: `src/App.tsx`)
- Storefront App → Instagram Gallery: renders (evidence: `src/App.tsx`)
- Storefront App → Account UI: renders (evidence: `src/App.tsx`)
- Storefront App → Legal Information: renders (evidence: `src/App.tsx`)
- Storefront App → Product Quick View: renders
- Navigation → Localization: switches language (evidence: `src/components/Navbar.tsx`)
- Account UI → Express API: requests account API
- Account UI → Storefront App: updates session (evidence: `src/App.tsx`)
- Checkout → Order Service: places order (evidence: `src/components/CheckoutModal.tsx`)
- Order Service → Express API: submits checkout (evidence: `src/services/orderService.ts`)
- Integration Status UI → Integration Orchestrator: loads status (evidence: `src/components/IntegrationStatusModal.tsx`)
- Integration Status UI → PlentyONE Service: checks ERP (evidence: `src/components/IntegrationStatusModal.tsx`)
- Integration Orchestrator → Shopify Service: creates checkout (evidence: `src/services/integrationService.ts`)
- Integration Orchestrator → PlentyONE Service: syncs order (evidence: `src/services/integrationService.ts`)
- PlentyONE Service → Express API: calls API (evidence: `src/services/plentyoneService.ts`)
- Express API → PlentyONE ERP: syncs catalog and orders
- Shopify Service → Shopify Platform: requests checkout
