# wdesigner-co/ostrich architecture

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

- Interactive diagram: https://gitdiagram.com/wdesigner-co/ostrich
- Repository: https://github.com/wdesigner-co/ostrich

## Overview

This is a Spanish-language storefront for Ostrich, presented as a static multi-page retail site. The customer-facing surface spans the home, shop, product-detail, and editorial/information pages; sampled behavior includes cart management, product-detail interactions, cookie preferences, newsletter signup, and WhatsApp customization requests. The graph preserves the listed pages and substantial JavaScript modules, but the HTML files and several capabilities are not excerpted, so their wiring and page-to-page workflow are not asserted.

Main entry points: [`js/drawer.js`](https://github.com/wdesigner-co/ostrich/blob/main/js/drawer.js) (Cart drawer), [`js/details.js`](https://github.com/wdesigner-co/ostrich/blob/main/js/details.js) (Product controls), [`js/app2.js`](https://github.com/wdesigner-co/ostrich/blob/main/js/app2.js) (Navigation and media), [`js/botanica.js`](https://github.com/wdesigner-co/ostrich/blob/main/js/botanica.js) (Botánica effects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront pages"]
  node_home["Home page<br/>[index.html]"]
  node_shop["Shop page<br/>[shop.html]"]
  node_product_detail["Product detail<br/>[details.html]"]
  node_botanica["Botánica page<br/>[botanica.html]"]
  node_about["About page<br/>[about_us.html]"]
  node_find_us["Find us page<br/>[find_us.html]"]
  node_shipping["Shipping page<br/>[envios.html]"]
  node_policies["Policies page<br/>[politicas.html]"]
end

subgraph group_shopping["Shopping experience"]
  node_cart["Cart drawer<br/>[drawer.js]"]
  node_cart_storage[("Browser cart storage")]
  node_detail_controls["Product controls<br/>[details.js]"]
end

subgraph group_engagement["Customer engagement"]
  node_newsletter["Newsletter signup"]
  node_newsletter_storage[("Signup status storage")]
  node_cookie_consent["Cookie preferences<br/>[cookies_banner.js]"]
  node_consent_storage[("Consent storage")]
  node_custom_request["Custom order form<br/>[personalizacion.js]"]
end

subgraph group_site_ui["Site interactions"]
  node_site_shell["Navigation and media<br/>[app2.js]"]
  node_botanica_effects["Botánica effects<br/>[botanica.js]"]
  node_testimonials["Testimonials carousel<br/>[testimonials.js]"]
end

node_visitor(("Visitor"))
node_whatsapp["WhatsApp"]

node_cart -->|"reads and writes"| node_cart_storage
node_cart -->|"updates and renders"| node_cart
node_detail_controls -->|"updates controls"| node_detail_controls
node_newsletter -->|"writes status"| node_newsletter_storage
node_cookie_consent -->|"reads and writes"| node_consent_storage
node_custom_request -->|"opens request"| node_whatsapp
node_site_shell -->|"toggles navigation and media"| node_site_shell
node_botanica_effects -->|"animates page content"| node_botanica_effects
node_testimonials -->|"moves carousel"| node_testimonials

click node_home "https://github.com/wdesigner-co/ostrich/blob/main/index.html"
click node_shop "https://github.com/wdesigner-co/ostrich/blob/main/shop.html"
click node_product_detail "https://github.com/wdesigner-co/ostrich/blob/main/details.html"
click node_botanica "https://github.com/wdesigner-co/ostrich/blob/main/botanica.html"
click node_about "https://github.com/wdesigner-co/ostrich/blob/main/about_us.html"
click node_find_us "https://github.com/wdesigner-co/ostrich/blob/main/find_us.html"
click node_shipping "https://github.com/wdesigner-co/ostrich/blob/main/envios.html"
click node_policies "https://github.com/wdesigner-co/ostrich/blob/main/politicas.html"
click node_cart "https://github.com/wdesigner-co/ostrich/blob/main/js/drawer.js"
click node_detail_controls "https://github.com/wdesigner-co/ostrich/blob/main/js/details.js"
click node_newsletter "https://github.com/wdesigner-co/ostrich/blob/main/js/modal_newsletter.js"
click node_cookie_consent "https://github.com/wdesigner-co/ostrich/blob/main/js/cookies_banner.js"
click node_custom_request "https://github.com/wdesigner-co/ostrich/blob/main/js/personalizacion.js"
click node_site_shell "https://github.com/wdesigner-co/ostrich/blob/main/js/app2.js"
click node_botanica_effects "https://github.com/wdesigner-co/ostrich/blob/main/js/botanica.js"
click node_testimonials "https://github.com/wdesigner-co/ostrich/blob/main/js/testimonials.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_home,node_shop,node_product_detail,node_botanica,node_about,node_find_us,node_shipping,node_policies toneBlue
class node_cart,node_cart_storage,node_detail_controls toneAmber
class node_newsletter,node_newsletter_storage,node_cookie_consent,node_consent_storage,node_custom_request toneMint
class node_site_shell,node_botanica_effects,node_testimonials toneRose
class node_visitor,node_whatsapp toneIndigo
```

## Components

### Storefront pages

- [Home page](https://github.com/wdesigner-co/ostrich/blob/main/index.html): `index.html`
- [Shop page](https://github.com/wdesigner-co/ostrich/blob/main/shop.html): `shop.html`
- [Product detail](https://github.com/wdesigner-co/ostrich/blob/main/details.html): `details.html`
- [Botánica page](https://github.com/wdesigner-co/ostrich/blob/main/botanica.html): `botanica.html`
- [About page](https://github.com/wdesigner-co/ostrich/blob/main/about_us.html): `about_us.html`
- [Find us page](https://github.com/wdesigner-co/ostrich/blob/main/find_us.html): `find_us.html`
- [Shipping page](https://github.com/wdesigner-co/ostrich/blob/main/envios.html): `envios.html`
- [Policies page](https://github.com/wdesigner-co/ostrich/blob/main/politicas.html): `politicas.html`

### Shopping experience

- [Cart drawer](https://github.com/wdesigner-co/ostrich/blob/main/js/drawer.js): `js/drawer.js`
- **Browser cart storage**
- [Product controls](https://github.com/wdesigner-co/ostrich/blob/main/js/details.js): `js/details.js`

### Customer engagement

- [Newsletter signup](https://github.com/wdesigner-co/ostrich/blob/main/js/modal_newsletter.js): `js/modal_newsletter.js`
- **Signup status storage**
- [Cookie preferences](https://github.com/wdesigner-co/ostrich/blob/main/js/cookies_banner.js): `js/cookies_banner.js`
- **Consent storage**
- [Custom order form](https://github.com/wdesigner-co/ostrich/blob/main/js/personalizacion.js): `js/personalizacion.js`

### Site interactions

- [Navigation and media](https://github.com/wdesigner-co/ostrich/blob/main/js/app2.js): `js/app2.js`
- [Botánica effects](https://github.com/wdesigner-co/ostrich/blob/main/js/botanica.js): `js/botanica.js`
- [Testimonials carousel](https://github.com/wdesigner-co/ostrich/blob/main/js/testimonials.js): `js/testimonials.js`

### Other components

- **Visitor**
- **WhatsApp**

## Connections

- Cart drawer → Browser cart storage: reads and writes (evidence: `js/drawer.js`)
- Cart drawer → Cart drawer: updates and renders (evidence: `js/drawer.js`)
- Product controls → Product controls: updates controls (evidence: `js/details.js`)
- Newsletter signup → Signup status storage: writes status (evidence: `js/modal_newsletter.js`)
- Cookie preferences → Consent storage: reads and writes (evidence: `js/cookies_banner.js`)
- Custom order form → WhatsApp: opens request (evidence: `js/personalizacion.js`)
- Navigation and media → Navigation and media: toggles navigation and media (evidence: `js/app2.js`)
- Botánica effects → Botánica effects: animates page content (evidence: `js/botanica.js`)
- Testimonials carousel → Testimonials carousel: moves carousel (evidence: `js/testimonials.js`)
