# ahmad486sami-dotcom/habibigains-site architecture

> Architecture diagram of the GitHub repository ahmad486sami-dotcom/habibigains-site, 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/ahmad486sami-dotcom/habibigains-site
- Repository: https://github.com/ahmad486sami-dotcom/habibigains-site

## Overview

This repository is a small static website with browser-side interactions, including language switching, an Instagram feed, and a launch waitlist. The tree suggests additional pages for workouts, support, account deletion, and administration, but their contents and connections are not shown. The sampled worker scripts remove existing service-worker registrations and caches; no README is available to clarify the site's broader product workflow.

Main entry points: [`site.js`](https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/site.js) (Site interactions), [`index.html`](https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/index.html) (Landing page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website"]
  node_landing["Landing page<br/>[index.html]"]
  node_workout["Workout page<br/>[workout.html]"]
  node_other_pages["Other site pages<br/>[support.html]"]
end

subgraph group_browser["Browser behavior"]
  node_site_behavior["Site interactions<br/>[site.js]"]
  node_instagram["Instagram feed"]
  node_waitlist[("Waitlist API")]
  node_legacy_worker_a["Legacy worker<br/>[service-worker.js]"]
  node_legacy_worker_b["Legacy worker<br/>[serviceworker.js]"]
  node_legacy_worker_c["Legacy worker<br/>[sw.js]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"visits"| node_landing
node_site_behavior -->|"fetches feed"| node_instagram
node_site_behavior -->|"submits signup"| node_waitlist

click node_landing "https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/index.html"
click node_workout "https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/workout.html"
click node_other_pages "https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/support.html"
click node_site_behavior "https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/site.js"
click node_legacy_worker_a "https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/service-worker.js"
click node_legacy_worker_b "https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/serviceworker.js"
click node_legacy_worker_c "https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/sw.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_landing,node_workout,node_other_pages toneBlue
class node_site_behavior,node_instagram,node_waitlist,node_legacy_worker_a,node_legacy_worker_b,node_legacy_worker_c toneAmber
class node_visitor toneIndigo
```

## Components

### Website

- [Landing page](https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/index.html): `index.html`
- [Workout page](https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/workout.html): `workout.html`
- [Other site pages](https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/support.html): `support.html`

### Browser behavior

- [Site interactions](https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/site.js): `site.js`
- **Instagram feed**
- **Waitlist API**
- [Legacy worker](https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/service-worker.js): `service-worker.js`
- [Legacy worker](https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/serviceworker.js): `serviceworker.js`
- [Legacy worker](https://github.com/ahmad486sami-dotcom/habibigains-site/blob/main/sw.js): `sw.js`

### Other components

- **Visitor**

## Connections

- Visitor → Landing page: visits
- Site interactions → Instagram feed: fetches feed (evidence: `site.js`)
- Site interactions → Waitlist API: submits signup (evidence: `site.js`)
