# anelmelis/finalweb-3a architecture

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

- Interactive diagram: https://gitdiagram.com/anelmelis/finalweb-3a
- Repository: https://github.com/anelmelis/finalweb-3a

## Overview

MineDrop is a browser-only Minecraft merchandise storefront: visitors discover products, save or revisit items, build a cart, and submit a simulated checkout; signed-in demo users can view order history and shopping statistics. The main pages are separate static-page scripts sharing browser storage rather than a backend. The graph also captures the home-page currency converter, demo account flow, and site-wide theme. README documents several cross-page capabilities; unsampled subsystem internals are represented only at the directory level, and edges are limited to documented or excerpted relationships.

Main entry points: [`shared/account-orders.js`](https://github.com/anelmelis/finalweb-3a/blob/main/shared/account-orders.js) (Account and Order Service), [`booking/booking.js`](https://github.com/anelmelis/finalweb-3a/blob/main/booking/booking.js) (Collections and Cart), [`products/productsss.js`](https://github.com/anelmelis/finalweb-3a/blob/main/products/productsss.js) (Catalog and Product Details), [`saved/savedd.js`](https://github.com/anelmelis/finalweb-3a/blob/main/saved/savedd.js) (Saved Favorites)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Store Discovery"]
  node_catalog_data["Product Catalog Data<br/>[products-data.js]"]
  node_catalog["Catalog and Product Details<br/>[productsss.js]"]
  node_favorites["Saved Favorites<br/>[savedd.js]"]
  node_recent_tracker["Recently Viewed Tracking<br/>[recently-viewed.js]"]
  node_recent_ui["Recently Viewed Display"]
end

subgraph group_commerce["Cart and Checkout"]
  node_booking["Collections and Cart<br/>[booking.js]"]
  node_payment["Delivery and Simulated Checkout<br/>[payment.js]"]
end

subgraph group_accounts["Demo Accounts"]
  node_login["Demo Sign-In and Registration<br/>[login.js]"]
  node_account_service["Account and Order Service<br/>[account-orders.js]"]
  node_profile["Profile and Order History<br/>[profile.js]"]
  node_dashboard["Shopping Statistics<br/>[dashboard.js]"]
end

subgraph group_shared["Shared Browser Services"]
  node_browser_storage[("Browser LocalStorage")]
end

subgraph group_engagement["Home and Preferences"]
  node_home["Home and Converter<br/>[main.js]"]
  node_theme["Theme Preference<br/>[theme.js]"]
end

node_visitor(("Visitor"))
node_currency_api{{"Exchange Rate API"}}

node_visitor -->|"visits"| node_home
node_visitor -->|"browses"| node_catalog
node_visitor -->|"saves favorites"| node_favorites
node_visitor -->|"manages cart"| node_booking
node_visitor -->|"submits checkout"| node_payment
node_visitor -->|"uses demo login"| node_login
node_catalog -->|"renders products"| node_catalog_data
node_catalog -->|"records views"| node_recent_tracker
node_recent_ui -->|"reads and removes"| node_recent_tracker
node_recent_ui -->|"resolves products"| node_catalog_data
node_favorites -->|"adds selected item"| node_booking
node_booking -->|"continues to checkout"| node_payment
node_home -->|"fetches rates"| node_currency_api
node_login -->|"signs in or registers"| node_account_service
node_payment -->|"creates order"| node_account_service
node_profile -->|"reads order history"| node_account_service
node_dashboard -->|"uses account orders"| node_account_service
node_account_service -->|"persists accounts and orders"| node_browser_storage
node_booking -->|"persists cart"| node_browser_storage
node_recent_tracker -->|"persists view history"| node_browser_storage
node_favorites -->|"persists favorites"| node_browser_storage
node_theme -->|"persists preference"| node_browser_storage
node_home -->|"persists theme"| node_browser_storage

click node_home "https://github.com/anelmelis/finalweb-3a/blob/main/home/main.js"
click node_catalog_data "https://github.com/anelmelis/finalweb-3a/blob/main/products/products-data.js"
click node_catalog "https://github.com/anelmelis/finalweb-3a/blob/main/products/productsss.js"
click node_favorites "https://github.com/anelmelis/finalweb-3a/blob/main/saved/savedd.js"
click node_recent_tracker "https://github.com/anelmelis/finalweb-3a/blob/main/products/recently-viewed.js"
click node_recent_ui "https://github.com/anelmelis/finalweb-3a/blob/main/saved/recently-viewed-ui.js"
click node_booking "https://github.com/anelmelis/finalweb-3a/blob/main/booking/booking.js"
click node_payment "https://github.com/anelmelis/finalweb-3a/blob/main/payment/payment.js"
click node_login "https://github.com/anelmelis/finalweb-3a/blob/main/login/login.js"
click node_account_service "https://github.com/anelmelis/finalweb-3a/blob/main/shared/account-orders.js"
click node_profile "https://github.com/anelmelis/finalweb-3a/blob/main/profile/profile.js"
click node_dashboard "https://github.com/anelmelis/finalweb-3a/blob/main/profile/dashboard.js"
click node_theme "https://github.com/anelmelis/finalweb-3a/blob/main/shared/theme.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_catalog_data,node_catalog,node_favorites,node_recent_tracker,node_recent_ui toneBlue
class node_booking,node_payment toneAmber
class node_login,node_account_service,node_profile,node_dashboard,node_currency_api toneMint
class node_browser_storage toneRose
class node_home,node_theme,node_visitor toneIndigo
```

## Components

### Store Discovery

- [Product Catalog Data](https://github.com/anelmelis/finalweb-3a/blob/main/products/products-data.js): `products/products-data.js`
- [Catalog and Product Details](https://github.com/anelmelis/finalweb-3a/blob/main/products/productsss.js): `products/productsss.js`
- [Saved Favorites](https://github.com/anelmelis/finalweb-3a/blob/main/saved/savedd.js): `saved/savedd.js`
- [Recently Viewed Tracking](https://github.com/anelmelis/finalweb-3a/blob/main/products/recently-viewed.js): `products/recently-viewed.js`
- [Recently Viewed Display](https://github.com/anelmelis/finalweb-3a/blob/main/saved/recently-viewed-ui.js): `saved/recently-viewed-ui.js`

### Cart and Checkout

- [Collections and Cart](https://github.com/anelmelis/finalweb-3a/blob/main/booking/booking.js): `booking/booking.js`
- [Delivery and Simulated Checkout](https://github.com/anelmelis/finalweb-3a/blob/main/payment/payment.js): `payment/payment.js`

### Demo Accounts

- [Demo Sign-In and Registration](https://github.com/anelmelis/finalweb-3a/blob/main/login/login.js): `login/login.js`
- [Account and Order Service](https://github.com/anelmelis/finalweb-3a/blob/main/shared/account-orders.js): `shared/account-orders.js`
- [Profile and Order History](https://github.com/anelmelis/finalweb-3a/blob/main/profile/profile.js): `profile/profile.js`
- [Shopping Statistics](https://github.com/anelmelis/finalweb-3a/blob/main/profile/dashboard.js): `profile/dashboard.js`

### Shared Browser Services

- **Browser LocalStorage**

### Home and Preferences

- [Home and Converter](https://github.com/anelmelis/finalweb-3a/blob/main/home/main.js): `home/main.js`
- [Theme Preference](https://github.com/anelmelis/finalweb-3a/blob/main/shared/theme.js): `shared/theme.js`

### Other components

- **Visitor**
- **Exchange Rate API**

## Connections

- Visitor → Home and Converter: visits (evidence: `README.md`)
- Visitor → Catalog and Product Details: browses (evidence: `README.md`)
- Visitor → Saved Favorites: saves favorites (evidence: `README.md`)
- Visitor → Collections and Cart: manages cart (evidence: `README.md`)
- Visitor → Delivery and Simulated Checkout: submits checkout (evidence: `README.md`)
- Visitor → Demo Sign-In and Registration: uses demo login (evidence: `README.md`)
- Catalog and Product Details → Product Catalog Data: renders products (evidence: `products/productsss.js`)
- Catalog and Product Details → Recently Viewed Tracking: records views (evidence: `products/productsss.js`)
- Recently Viewed Display → Recently Viewed Tracking: reads and removes (evidence: `saved/recently-viewed-ui.js`)
- Recently Viewed Display → Product Catalog Data: resolves products (evidence: `saved/recently-viewed-ui.js`)
- Saved Favorites → Collections and Cart: adds selected item (evidence: `saved/savedd.js`)
- Collections and Cart → Delivery and Simulated Checkout: continues to checkout (evidence: `README.md`)
- Home and Converter → Exchange Rate API: fetches rates (evidence: `README.md`)
- Demo Sign-In and Registration → Account and Order Service: signs in or registers (evidence: `login/login.js`)
- Delivery and Simulated Checkout → Account and Order Service: creates order (evidence: `README.md`)
- Profile and Order History → Account and Order Service: reads order history (evidence: `profile/profile.js`)
- Shopping Statistics → Account and Order Service: uses account orders (evidence: `profile/dashboard.js`)
- Account and Order Service → Browser LocalStorage: persists accounts and orders (evidence: `shared/account-orders.js`)
- Collections and Cart → Browser LocalStorage: persists cart (evidence: `README.md`)
- Recently Viewed Tracking → Browser LocalStorage: persists view history (evidence: `README.md`)
- Saved Favorites → Browser LocalStorage: persists favorites (evidence: `README.md`)
- Theme Preference → Browser LocalStorage: persists preference (evidence: `shared/theme.js`)
- Home and Converter → Browser LocalStorage: persists theme (evidence: `home/main.js`)
