# santi1925/hoy_mismo architecture

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

- Interactive diagram: https://gitdiagram.com/santi1925/hoy_mismo
- Repository: https://github.com/santi1925/hoy_mismo

## Overview

HOY MISMO is a browser-based storefront for browsing products and simulating a purchase. Its main runtime is concentrated in `js/main.js`, which contains shared product data, page behavior, cart handling, delivery estimates and checkout feedback. The tree shows separate catalog, product and cart pages, but their HTML wiring and the README are not available, so the graph avoids asserting page-to-page navigation or external service integrations.

Main entry points: [`js/main.js`](https://github.com/santi1925/hoy_mismo/blob/main/js/main.js) (Cart handling), [`pages/catalogo.html`](https://github.com/santi1925/hoy_mismo/blob/main/pages/catalogo.html) (Catalog browsing), [`pages/producto.html`](https://github.com/santi1925/hoy_mismo/blob/main/pages/producto.html) (Product detail), [`pages/carrito.html`](https://github.com/santi1925/hoy_mismo/blob/main/pages/carrito.html) (Cart)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shopping["Shopping experience"]
  node_catalog["Catalog browsing<br/>[catalogo.html]"]
  node_product["Product detail<br/>[producto.html]"]
  node_catalog_behavior["Catalog filters<br/>[main.js]"]
  node_product_behavior["Product actions<br/>[main.js]"]
end

subgraph group_order["Cart and checkout"]
  node_cart["Cart<br/>[carrito.html]"]
  node_cart_behavior["Cart handling<br/>[main.js]"]
  node_delivery["Delivery estimates<br/>[main.js]"]
  node_checkout["Checkout simulation<br/>[main.js]"]
end

subgraph group_shared["Shared storefront logic"]
  node_product_data["Product data<br/>[main.js]"]
  node_error_feedback["Page error feedback<br/>[main.js]"]
end

node_shopper(("Shopper"))

node_shopper -->|"browses"| node_catalog
node_shopper -->|"chooses item"| node_product
node_shopper -->|"checks out"| node_cart
node_catalog_behavior -->|"filters products"| node_product_data
node_product_behavior -->|"loads product"| node_product_data
node_product_behavior -->|"adds product"| node_cart_behavior
node_cart_behavior -->|"refreshes delivery"| node_delivery
node_checkout -->|"reads estimate"| node_delivery
node_checkout -->|"clears cart"| node_cart_behavior

click node_catalog "https://github.com/santi1925/hoy_mismo/blob/main/pages/catalogo.html"
click node_product "https://github.com/santi1925/hoy_mismo/blob/main/pages/producto.html"
click node_cart "https://github.com/santi1925/hoy_mismo/blob/main/pages/carrito.html"
click node_catalog_behavior "https://github.com/santi1925/hoy_mismo/blob/main/js/main.js"
click node_product_behavior "https://github.com/santi1925/hoy_mismo/blob/main/js/main.js"
click node_cart_behavior "https://github.com/santi1925/hoy_mismo/blob/main/js/main.js"
click node_delivery "https://github.com/santi1925/hoy_mismo/blob/main/js/main.js"
click node_checkout "https://github.com/santi1925/hoy_mismo/blob/main/js/main.js"
click node_product_data "https://github.com/santi1925/hoy_mismo/blob/main/js/main.js"
click node_error_feedback "https://github.com/santi1925/hoy_mismo/blob/main/js/main.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,node_product,node_catalog_behavior,node_product_behavior toneBlue
class node_cart,node_cart_behavior,node_delivery,node_checkout toneAmber
class node_product_data,node_error_feedback toneMint
class node_shopper toneIndigo
```

## Components

### Shopping experience

- [Catalog browsing](https://github.com/santi1925/hoy_mismo/blob/main/pages/catalogo.html): `pages/catalogo.html`
- [Product detail](https://github.com/santi1925/hoy_mismo/blob/main/pages/producto.html): `pages/producto.html`
- [Catalog filters](https://github.com/santi1925/hoy_mismo/blob/main/js/main.js): `js/main.js`
- [Product actions](https://github.com/santi1925/hoy_mismo/blob/main/js/main.js): `js/main.js`

### Cart and checkout

- [Cart](https://github.com/santi1925/hoy_mismo/blob/main/pages/carrito.html): `pages/carrito.html`
- [Cart handling](https://github.com/santi1925/hoy_mismo/blob/main/js/main.js): `js/main.js`
- [Delivery estimates](https://github.com/santi1925/hoy_mismo/blob/main/js/main.js): `js/main.js`
- [Checkout simulation](https://github.com/santi1925/hoy_mismo/blob/main/js/main.js): `js/main.js`

### Shared storefront logic

- [Product data](https://github.com/santi1925/hoy_mismo/blob/main/js/main.js): `js/main.js`
- [Page error feedback](https://github.com/santi1925/hoy_mismo/blob/main/js/main.js): `js/main.js`

### Other components

- **Shopper**

## Connections

- Shopper → Catalog browsing: browses
- Shopper → Product detail: chooses item
- Shopper → Cart: checks out
- Catalog filters → Product data: filters products (evidence: `js/main.js`)
- Product actions → Product data: loads product (evidence: `js/main.js`)
- Product actions → Cart handling: adds product (evidence: `js/main.js`)
- Cart handling → Delivery estimates: refreshes delivery (evidence: `js/main.js`)
- Checkout simulation → Delivery estimates: reads estimate (evidence: `js/main.js`)
- Checkout simulation → Cart handling: clears cart (evidence: `js/main.js`)
