# elio-aliaj/automated-website-and-cms architecture

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

- Interactive diagram: https://gitdiagram.com/elio-aliaj/automated-website-and-cms
- Repository: https://github.com/elio-aliaj/automated-website-and-cms

## Overview

Automated-Website-and-CMS turns a submitted form into a generated website, then lets users regenerate or edit individual sections. The main flow is form submission → server-side section orchestration → ChatGPT code generation → HTML/CSS extraction → generated-site updates. The repository also includes an interactive editor, persisted form/section responses, and a documented DALL·E integration. The graph reflects sampled source and README relationships; unsampled implementation details are represented only where documented, and uncertain edit-to-server wiring is dashed.

Main entry points: [`AI Caller/AI_Caller.js`](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/AI%20Caller/AI_Caller.js) (Request server), [`Changer/Web_Part_Creator.js`](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Changer/Web_Part_Creator.js) (Section orchestrator), [`Changer/Modifying_Web.js`](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Changer/Modifying_Web.js) (Site modifier), [`Edit_Website/Edit.js`](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Edit_Website/Edit.js) (Section editor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intake["User interfaces"]
  node_form["Creation form<br/>[form.js]"]
  node_editor["Section editor<br/>[Edit.js]"]
end

subgraph group_generation["Generation pipeline"]
  node_server["Request server<br/>[AI_Caller.js]"]
  node_creator["Section orchestrator"]
  node_extractor["Code extractor"]
  node_modifier["Site modifier<br/>[Modifying_Web.js]"]
end

subgraph group_site["Generated website"]
  node_template["Generated page<br/>[Gen_Web.html]"]
  node_styles["Generated styles<br/>[Gen_Web.scss]"]
  node_compiled["Compiled styles<br/>[Gen_Web.css]"]
end

subgraph group_services["State and services"]
  node_openai{{"OpenAI API"}}
  node_database[("JSON Server data<br/>[db.json]")]
  node_imagegen{{"DALL·E image service"}}
end

node_user(("Website creator"))

node_user -->|"submits details"| node_form
node_form -->|"posts form data"| node_server
node_server -->|"stores form data"| node_database
node_server -->|"dispatches sections"| node_creator
node_creator -->|"requests ChatGPT"| node_server
node_server -->|"requests completion"| node_openai
node_creator -->|"extracts response code"| node_extractor
node_creator -->|"applies section code"| node_modifier
node_extractor -->|"retries generation"| node_creator
node_modifier -->|"retries rendering"| node_creator
node_modifier -->|"writes SCSS"| node_styles
node_modifier -->|"compiles CSS"| node_compiled
node_modifier -->|"updates section HTML"| node_template
node_modifier -->|"saves response"| node_database
node_editor -->|"reads section data"| node_database
node_editor -.->|"requests section change"| node_server
node_user -->|"customizes sections"| node_editor
node_server -->|"offers image generation"| node_imagegen
node_creator -.->|"requests images"| node_imagegen
node_template -->|"enables interactive edits"| node_editor

click node_form "https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Form%20UI/form.js"
click node_editor "https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Edit_Website/Edit.js"
click node_server "https://github.com/elio-aliaj/automated-website-and-cms/blob/main/AI%20Caller/AI_Caller.js"
click node_creator "https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Changer/Web_Part_Creator.js"
click node_extractor "https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Changer/Extract_Code_Respond.js"
click node_modifier "https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Changer/Modifying_Web.js"
click node_database "https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Data/db.json"
click node_template "https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Gen_Website/Gen_Web.html"
click node_styles "https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Gen_Website/Gen_Web.scss"
click node_compiled "https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Gen_Website/Gen_Web.css"

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_form,node_editor toneBlue
class node_server,node_creator,node_extractor,node_modifier toneAmber
class node_template,node_styles,node_compiled toneMint
class node_openai,node_database,node_imagegen toneRose
class node_user toneIndigo
```

## Components

### User interfaces

- [Creation form](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Form%20UI/form.js): `Form UI/form.js`
- [Section editor](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Edit_Website/Edit.js): `Edit_Website/Edit.js`

### Generation pipeline

- [Request server](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/AI%20Caller/AI_Caller.js): `AI Caller/AI_Caller.js`
- [Section orchestrator](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Changer/Web_Part_Creator.js): `Changer/Web_Part_Creator.js`
- [Code extractor](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Changer/Extract_Code_Respond.js): `Changer/Extract_Code_Respond.js`
- [Site modifier](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Changer/Modifying_Web.js): `Changer/Modifying_Web.js`

### Generated website

- [Generated page](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Gen_Website/Gen_Web.html): `Gen_Website/Gen_Web.html`
- [Generated styles](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Gen_Website/Gen_Web.scss): `Gen_Website/Gen_Web.scss`
- [Compiled styles](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Gen_Website/Gen_Web.css): `Gen_Website/Gen_Web.css`

### State and services

- **OpenAI API**
- [JSON Server data](https://github.com/elio-aliaj/automated-website-and-cms/blob/main/Data/db.json): `Data/db.json`
- **DALL·E image service**

### Other components

- **Website creator**

## Connections

- Website creator → Creation form: submits details (evidence: `README.md`)
- Creation form → Request server: posts form data (evidence: `Form UI/form.js`)
- Request server → JSON Server data: stores form data (evidence: `AI Caller/AI_Caller.js`)
- Request server → Section orchestrator: dispatches sections (evidence: `AI Caller/AI_Caller.js`)
- Section orchestrator → Request server: requests ChatGPT (evidence: `Changer/Web_Part_Creator.js`)
- Request server → OpenAI API: requests completion (evidence: `AI Caller/AI_Caller.js`)
- Section orchestrator → Code extractor: extracts response code (evidence: `Changer/Web_Part_Creator.js`)
- Section orchestrator → Site modifier: applies section code (evidence: `Changer/Web_Part_Creator.js`)
- Code extractor → Section orchestrator: retries generation (evidence: `Changer/Extract_Code_Respond.js`)
- Site modifier → Section orchestrator: retries rendering (evidence: `Changer/Modifying_Web.js`)
- Site modifier → Generated styles: writes SCSS (evidence: `Changer/Modifying_Web.js`)
- Site modifier → Compiled styles: compiles CSS (evidence: `Changer/Modifying_Web.js`)
- Site modifier → Generated page: updates section HTML (evidence: `Changer/Modifying_Web.js`)
- Site modifier → JSON Server data: saves response (evidence: `Changer/Modifying_Web.js`)
- Section editor → JSON Server data: reads section data (evidence: `Edit_Website/Edit.js`)
- Section editor → Request server: requests section change
- Website creator → Section editor: customizes sections (evidence: `README.md`)
- Request server → DALL·E image service: offers image generation (evidence: `AI Caller/AI_Caller.js`)
- Section orchestrator → DALL·E image service: requests images
- Generated page → Section editor: enables interactive edits (evidence: `README.md`)
