# henrynkoh/ecom_star architecture

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

- Interactive diagram: https://gitdiagram.com/henrynkoh/ecom_star
- Repository: https://github.com/henrynkoh/ecom_star

## Overview

Ecom Star is a construction-planning and Amazon affiliate-content website, with a separate Shorts creation and upload path. The main browser workflow presents a hub, 15 construction stages, planning estimates, and product picks; visitors can also browse campaign listings and export a CSV. The optional Python pipeline renders Shorts from scene data and can upload them to YouTube. The README also describes a daily Amazon ranking routine, but its automation specification was not sampled, so that workflow is represented only as documented capability, not as an inspected implementation.

Main entry points: [`app.js`](https://github.com/henrynkoh/ecom_star/blob/main/app.js) (Page Logic), [`pipeline/run_pipeline.py`](https://github.com/henrynkoh/ecom_star/blob/main/pipeline/run_pipeline.py) (Render And Upload), [`index.html`](https://github.com/henrynkoh/ecom_star/blob/main/index.html) (Planning Hub), [`affiliate.html`](https://github.com/henrynkoh/ecom_star/blob/main/affiliate.html) (Affiliate Campaign)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Planning Website"]
  node_hub["Planning Hub<br/>[index.html]"]
  node_site_logic["Page Logic<br/>[app.js]"]
  node_planning_data["Step And Cost Data<br/>[data.js]"]
  node_construction_steps["15 Construction Pages<br/>[step-01.html]"]
  node_materials["Materials And Tools<br/>[app.js]"]
end

subgraph group_affiliate["Affiliate Content"]
  node_campaign["Affiliate Campaign<br/>[affiliate.html]"]
  node_daily_routine["Daily Ranking Routine"]
end

subgraph group_shorts["Shorts Production"]
  node_shorts_studio["Shorts Studio<br/>[shorts.html]"]
  node_shorts_data["Shorts Scene Data<br/>[shorts-data.js]"]
end

subgraph group_pipeline["Rendering And Upload"]
  node_python_pipeline["Render And Upload<br/>[run_pipeline.py]"]
  node_pipeline_data["Pipeline Short Data<br/>[shorts.json]"]
end

node_visitor(("Visitor"))
node_amazon(("Amazon"))
node_youtube(("YouTube"))

node_visitor -->|"opens"| node_hub
node_hub -->|"runs"| node_site_logic
node_site_logic -->|"reads"| node_planning_data
node_site_logic -->|"links to"| node_construction_steps
node_site_logic -->|"renders"| node_materials
node_site_logic -->|"links to"| node_campaign
node_campaign -->|"links to"| node_amazon
node_site_logic -->|"links to"| node_shorts_studio
node_shorts_studio -->|"uses"| node_shorts_data
node_python_pipeline -->|"reads"| node_pipeline_data
node_python_pipeline -->|"uploads to"| node_youtube
node_visitor -.->|"follows"| node_daily_routine
node_daily_routine -.->|"checks rankings"| node_amazon

click node_hub "https://github.com/henrynkoh/ecom_star/blob/main/index.html"
click node_site_logic "https://github.com/henrynkoh/ecom_star/blob/main/app.js"
click node_planning_data "https://github.com/henrynkoh/ecom_star/blob/main/data.js"
click node_construction_steps "https://github.com/henrynkoh/ecom_star/blob/main/step-01.html"
click node_materials "https://github.com/henrynkoh/ecom_star/blob/main/app.js"
click node_campaign "https://github.com/henrynkoh/ecom_star/blob/main/affiliate.html"
click node_shorts_studio "https://github.com/henrynkoh/ecom_star/blob/main/shorts.html"
click node_shorts_data "https://github.com/henrynkoh/ecom_star/blob/main/shorts-data.js"
click node_python_pipeline "https://github.com/henrynkoh/ecom_star/blob/main/pipeline/run_pipeline.py"
click node_pipeline_data "https://github.com/henrynkoh/ecom_star/blob/main/pipeline/shorts.json"
click node_daily_routine "https://github.com/henrynkoh/ecom_star/tree/main/automation"

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_hub,node_site_logic,node_planning_data,node_construction_steps,node_materials toneBlue
class node_campaign,node_daily_routine toneAmber
class node_shorts_studio,node_shorts_data toneMint
class node_python_pipeline,node_pipeline_data toneRose
class node_visitor,node_amazon,node_youtube toneIndigo
```

## Components

### Planning Website

- [Planning Hub](https://github.com/henrynkoh/ecom_star/blob/main/index.html): `index.html`
- [Page Logic](https://github.com/henrynkoh/ecom_star/blob/main/app.js): `app.js`
- [Step And Cost Data](https://github.com/henrynkoh/ecom_star/blob/main/data.js): `data.js`
- [15 Construction Pages](https://github.com/henrynkoh/ecom_star/blob/main/step-01.html): `step-01.html`
- [Materials And Tools](https://github.com/henrynkoh/ecom_star/blob/main/app.js): `app.js`

### Affiliate Content

- [Affiliate Campaign](https://github.com/henrynkoh/ecom_star/blob/main/affiliate.html): `affiliate.html`
- [Daily Ranking Routine](https://github.com/henrynkoh/ecom_star/tree/main/automation): `automation`

### Shorts Production

- [Shorts Studio](https://github.com/henrynkoh/ecom_star/blob/main/shorts.html): `shorts.html`
- [Shorts Scene Data](https://github.com/henrynkoh/ecom_star/blob/main/shorts-data.js): `shorts-data.js`

### Rendering And Upload

- [Render And Upload](https://github.com/henrynkoh/ecom_star/blob/main/pipeline/run_pipeline.py): `pipeline/run_pipeline.py`
- [Pipeline Short Data](https://github.com/henrynkoh/ecom_star/blob/main/pipeline/shorts.json): `pipeline/shorts.json`

### Other components

- **Visitor**
- **Amazon**
- **YouTube**

## Connections

- Visitor → Planning Hub: opens (evidence: `README.md`)
- Planning Hub → Page Logic: runs (evidence: `README.md`)
- Page Logic → Step And Cost Data: reads (evidence: `README.md`)
- Page Logic → 15 Construction Pages: links to (evidence: `app.js`)
- Page Logic → Materials And Tools: renders (evidence: `app.js`)
- Page Logic → Affiliate Campaign: links to (evidence: `app.js`)
- Affiliate Campaign → Amazon: links to
- Page Logic → Shorts Studio: links to (evidence: `app.js`)
- Shorts Studio → Shorts Scene Data: uses (evidence: `README.md`)
- Render And Upload → Pipeline Short Data: reads (evidence: `pipeline/run_pipeline.py`)
- Render And Upload → YouTube: uploads to (evidence: `pipeline/run_pipeline.py`)
- Visitor → Daily Ranking Routine: follows (evidence: `README.md`)
- Daily Ranking Routine → Amazon: checks rankings (evidence: `README.md`)
