# haletas033/haletasweb architecture

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

- Interactive diagram: https://gitdiagram.com/haletas033/haletasweb
- Repository: https://github.com/haletas033/haletasweb

## Overview

HaletasWeb is a C++-generated personal website and a reusable HTML/CSS/JavaScript builder. Its main workflow starts in `Src/Main.cpp`, which initializes the site and invokes page, stylesheet, and script generators; project listings additionally retrieve repository data. The README also describes supported repositories supplying `website.dsp` metadata and downloadable site resources. The graph preserves those documented capabilities, but leaves their internal transfer details out where sampled code does not establish them.

Main entry points: [`Src/Main.cpp`](https://github.com/haletas033/haletasweb/blob/master/Src/Main.cpp) (Site builder entry), [`Src/utils/repos/repos.cpp`](https://github.com/haletas033/haletasweb/blob/master/Src/utils/repos/repos.cpp) (Repository service), [`Src/pages/index.html.h`](https://github.com/haletas033/haletasweb/blob/master/Src/pages/index.html.h) (Home page), [`Src/pages/projects.html.h`](https://github.com/haletas033/haletasweb/blob/master/Src/pages/projects.html.h) (Projects page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site generation"]
  node_builder["Site builder entry<br/>[Main.cpp]"]
  node_setup["Site setup<br/>[haletasWebSetup.h]"]
  node_generated_files["Generated site files"]
end

subgraph group_content["Pages and navigation"]
  node_html_pages["Page generators"]
  node_home["Home page<br/>[index.html.h]"]
  node_projects["Projects page<br/>[projects.html.h]"]
  node_nav["Navigation builder<br/>[nav.cpp]"]
  node_misc["Page utilities<br/>[misc.cpp]"]
end

subgraph group_dsl["C++ web DSL"]
  node_html_dsl["HTML builder<br/>[Tag.h]"]
  node_css_dsl["CSS builder<br/>[style.h]"]
  node_site_styles["Site styles<br/>[style.css.h]"]
  node_card_styles["Project card styles"]
  node_js_builder["JavaScript DSL<br/>[variable.h]"]
  node_js_script["Skills script<br/>[skillBallPit.js.h]"]
end

subgraph group_integrations["Repository integration"]
  node_repo_service["Repository service<br/>[repos.cpp]"]
  node_repo_metadata["Website metadata<br/>[repos.h]"]
end

node_github(("GitHub API"))

node_builder -->|"initializes"| node_setup
node_builder -->|"generates"| node_home
node_builder -->|"generates"| node_projects
node_builder -->|"generates"| node_html_pages
node_builder -->|"generates"| node_site_styles
node_builder -->|"generates"| node_card_styles
node_builder -->|"generates"| node_js_script
node_home -->|"uses"| node_nav
node_home -->|"uses"| node_misc
node_home -->|"builds with"| node_html_dsl
node_projects -->|"uses"| node_nav
node_projects -->|"gets repository data"| node_repo_service
node_projects -->|"builds with"| node_html_dsl
node_nav -->|"builds tags"| node_html_dsl
node_site_styles -->|"builds with"| node_css_dsl
node_card_styles -->|"builds with"| node_css_dsl
node_js_script -->|"builds with"| node_js_builder
node_setup -->|"configures"| node_repo_service
node_repo_service -->|"fetches repository data"| node_github
node_repo_service -->|"parses metadata"| node_repo_metadata
node_repo_service -.->|"downloads and builds"| node_generated_files
node_html_dsl -->|"writes HTML"| node_generated_files
node_css_dsl -->|"writes CSS"| node_generated_files

click node_builder "https://github.com/haletas033/haletasweb/blob/master/Src/Main.cpp"
click node_setup "https://github.com/haletas033/haletasweb/blob/master/Src/haletasWebSetup.h"
click node_html_pages "https://github.com/haletas033/haletasweb/tree/master/Src/pages"
click node_home "https://github.com/haletas033/haletasweb/blob/master/Src/pages/index.html.h"
click node_projects "https://github.com/haletas033/haletasweb/blob/master/Src/pages/projects.html.h"
click node_nav "https://github.com/haletas033/haletasweb/blob/master/Src/utils/nav/nav.cpp"
click node_misc "https://github.com/haletas033/haletasweb/blob/master/Src/utils/misc/misc.cpp"
click node_html_dsl "https://github.com/haletas033/haletasweb/blob/master/Src/Tag.h"
click node_css_dsl "https://github.com/haletas033/haletasweb/blob/master/Src/style.h"
click node_site_styles "https://github.com/haletas033/haletasweb/blob/master/Src/styles/style.css.h"
click node_card_styles "https://github.com/haletas033/haletasweb/blob/master/Src/styles/repoCardStyles.css.h"
click node_js_builder "https://github.com/haletas033/haletasweb/blob/master/Src/JS/variable.h"
click node_js_script "https://github.com/haletas033/haletasweb/blob/master/Src/scripts/skillBallPit.js.h"
click node_repo_service "https://github.com/haletas033/haletasweb/blob/master/Src/utils/repos/repos.cpp"
click node_repo_metadata "https://github.com/haletas033/haletasweb/blob/master/Src/utils/repos/repos.h"

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_builder,node_setup,node_generated_files toneBlue
class node_html_pages,node_home,node_projects,node_nav,node_misc toneAmber
class node_html_dsl,node_css_dsl,node_site_styles,node_card_styles,node_js_builder,node_js_script,node_github toneMint
class node_repo_service,node_repo_metadata toneRose
```

## Components

### Site generation

- [Site builder entry](https://github.com/haletas033/haletasweb/blob/master/Src/Main.cpp): `Src/Main.cpp`
- [Site setup](https://github.com/haletas033/haletasweb/blob/master/Src/haletasWebSetup.h): `Src/haletasWebSetup.h`
- **Generated site files**

### Pages and navigation

- [Page generators](https://github.com/haletas033/haletasweb/tree/master/Src/pages): `Src/pages`
- [Home page](https://github.com/haletas033/haletasweb/blob/master/Src/pages/index.html.h): `Src/pages/index.html.h`
- [Projects page](https://github.com/haletas033/haletasweb/blob/master/Src/pages/projects.html.h): `Src/pages/projects.html.h`
- [Navigation builder](https://github.com/haletas033/haletasweb/blob/master/Src/utils/nav/nav.cpp): `Src/utils/nav/nav.cpp`
- [Page utilities](https://github.com/haletas033/haletasweb/blob/master/Src/utils/misc/misc.cpp): `Src/utils/misc/misc.cpp`

### C++ web DSL

- [HTML builder](https://github.com/haletas033/haletasweb/blob/master/Src/Tag.h): `Src/Tag.h`
- [CSS builder](https://github.com/haletas033/haletasweb/blob/master/Src/style.h): `Src/style.h`
- [Site styles](https://github.com/haletas033/haletasweb/blob/master/Src/styles/style.css.h): `Src/styles/style.css.h`
- [Project card styles](https://github.com/haletas033/haletasweb/blob/master/Src/styles/repoCardStyles.css.h): `Src/styles/repoCardStyles.css.h`
- [JavaScript DSL](https://github.com/haletas033/haletasweb/blob/master/Src/JS/variable.h): `Src/JS/variable.h`
- [Skills script](https://github.com/haletas033/haletasweb/blob/master/Src/scripts/skillBallPit.js.h): `Src/scripts/skillBallPit.js.h`

### Repository integration

- [Repository service](https://github.com/haletas033/haletasweb/blob/master/Src/utils/repos/repos.cpp): `Src/utils/repos/repos.cpp`
- [Website metadata](https://github.com/haletas033/haletasweb/blob/master/Src/utils/repos/repos.h): `Src/utils/repos/repos.h`

### Other components

- **GitHub API**

## Connections

- Site builder entry → Site setup: initializes (evidence: `Src/Main.cpp`)
- Site builder entry → Home page: generates (evidence: `Src/Main.cpp`)
- Site builder entry → Projects page: generates (evidence: `Src/Main.cpp`)
- Site builder entry → Page generators: generates (evidence: `Src/Main.cpp`)
- Site builder entry → Site styles: generates (evidence: `Src/Main.cpp`)
- Site builder entry → Project card styles: generates (evidence: `Src/Main.cpp`)
- Site builder entry → Skills script: generates (evidence: `Src/Main.cpp`)
- Home page → Navigation builder: uses (evidence: `Src/pages/index.html.h`)
- Home page → Page utilities: uses (evidence: `Src/pages/index.html.h`)
- Home page → HTML builder: builds with (evidence: `Src/pages/index.html.h`)
- Projects page → Navigation builder: uses (evidence: `Src/pages/projects.html.h`)
- Projects page → Repository service: gets repository data (evidence: `Src/pages/projects.html.h`)
- Projects page → HTML builder: builds with (evidence: `Src/pages/projects.html.h`)
- Navigation builder → HTML builder: builds tags
- Site styles → CSS builder: builds with (evidence: `Src/styles/style.css.h`)
- Project card styles → CSS builder: builds with (evidence: `Src/styles/repoCardStyles.css.h`)
- Skills script → JavaScript DSL: builds with (evidence: `Src/scripts/skillBallPit.js.h`)
- Site setup → Repository service: configures (evidence: `Src/haletasWebSetup.h`)
- Repository service → GitHub API: fetches repository data (evidence: `Src/utils/repos/repos.cpp`)
- Repository service → Website metadata: parses metadata (evidence: `Src/utils/repos/repos.cpp`)
- Repository service → Generated site files: downloads and builds
- HTML builder → Generated site files: writes HTML (evidence: `Src/Tag.h`)
- CSS builder → Generated site files: writes CSS (evidence: `Src/style.h`)
