# alexprofmutua/alexprofmutua.github.io architecture

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

- Interactive diagram: https://gitdiagram.com/alexprofmutua/alexprofmutua.github.io
- Repository: https://github.com/alexprofmutua/alexprofmutua.github.io

## Overview

This repository is a personal portfolio website: visitors browse profile and project pages, explore recorded chess games, read articles, or find contact details. Its clearest interactive workflow is chess replay selection → PGN parsing → move timeline display. Writing also has a content-to-generated-pages workflow. The supplied README only names the project, so broader site capabilities are inferred from the tree; unsampled page wiring is not asserted.

Main entry points: [`writing/build.mjs`](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/build.mjs) (Page generator), [`index.html`](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/index.html) (Home page), [`chess.js`](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/chess.js) (Replay interface), [`writing/index.html`](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/index.html) (Writing pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio site"]
  node_home["Home page<br/>[index.html]"]
  node_profile["Profile page<br/>[profile.html]"]
  node_about["About page<br/>[index.html]"]
  node_projects["Project pages"]
  node_contactpage["Contact page<br/>[index.html]"]
end

subgraph group_chess["Chess replay"]
  node_chesspage["Chess page<br/>[index.html]"]
  node_replayui["Replay interface<br/>[chess.js]"]
  node_gamedata["Game collection<br/>[chess-games.js]"]
  node_replaylogic["Replay parser<br/>[chess-replay.js]"]
  node_chessengine["Chess engine<br/>[chess.js]"]
end

subgraph group_writing["Writing"]
  node_writingpage["Writing pages<br/>[index.html]"]
  node_articledata["Article manifest<br/>[articles.json]"]
  node_articlecontent["Markdown articles"]
  node_writingbuild["Page generator<br/>[build.mjs]"]
  node_rendering["Content rendering<br/>[components.mjs]"]
  node_filter["Category filter<br/>[filter.js]"]
end

subgraph group_interactions["Visitor interactions"]
  node_navigation["Site navigation<br/>[site-navigation.js]"]
  node_terminal["Portfolio terminal<br/>[portfolio.js]"]
  node_contactcopy["Email copy<br/>[contact.js]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens"| node_home
node_visitor -.->|"opens"| node_chesspage
node_visitor -.->|"opens"| node_writingpage
node_visitor -.->|"opens"| node_contactpage
node_home -.->|"uses"| node_navigation
node_home -.->|"uses"| node_terminal
node_contactpage -.->|"uses"| node_contactcopy
node_chesspage -.->|"uses"| node_replayui
node_replayui -->|"reads"| node_gamedata
node_replayui -->|"calls"| node_replaylogic
node_replaylogic -->|"calls"| node_chessengine
node_writingpage -.->|"uses"| node_filter
node_articledata -->|"supplies manifest"| node_writingbuild
node_articlecontent -->|"supplies Markdown"| node_writingbuild
node_writingbuild -->|"calls"| node_rendering
node_writingbuild -->|"generates pages"| node_writingpage
node_writingbuild -->|"configures script"| node_filter

click node_home "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/index.html"
click node_profile "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/profile.html"
click node_about "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/about/index.html"
click node_projects "https://github.com/alexprofmutua/alexprofmutua.github.io/tree/main/projects"
click node_contactpage "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/contact/index.html"
click node_navigation "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/site-navigation.js"
click node_terminal "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/portfolio.js"
click node_contactcopy "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/contact/contact.js"
click node_chesspage "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/chess/index.html"
click node_replayui "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/chess.js"
click node_gamedata "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/chess-games.js"
click node_replaylogic "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/chess-replay.js"
click node_chessengine "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/lib/chess.js"
click node_writingpage "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/index.html"
click node_articledata "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/articles.json"
click node_articlecontent "https://github.com/alexprofmutua/alexprofmutua.github.io/tree/main/writing/content"
click node_writingbuild "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/build.mjs"
click node_rendering "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/components.mjs"
click node_filter "https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/filter.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_profile,node_about,node_projects,node_contactpage toneBlue
class node_chesspage,node_replayui,node_gamedata,node_replaylogic,node_chessengine toneAmber
class node_writingpage,node_articledata,node_articlecontent,node_writingbuild,node_rendering,node_filter toneMint
class node_navigation,node_terminal,node_contactcopy toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio site

- [Home page](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/index.html): `index.html`
- [Profile page](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/profile.html): `profile.html`
- [About page](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/about/index.html): `about/index.html`
- [Project pages](https://github.com/alexprofmutua/alexprofmutua.github.io/tree/main/projects): `projects`
- [Contact page](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/contact/index.html): `contact/index.html`

### Chess replay

- [Chess page](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/chess/index.html): `chess/index.html`
- [Replay interface](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/chess.js): `chess.js`
- [Game collection](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/chess-games.js): `chess-games.js`
- [Replay parser](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/chess-replay.js): `chess-replay.js`
- [Chess engine](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/lib/chess.js): `lib/chess.js`

### Writing

- [Writing pages](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/index.html): `writing/index.html`
- [Article manifest](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/articles.json): `writing/articles.json`
- [Markdown articles](https://github.com/alexprofmutua/alexprofmutua.github.io/tree/main/writing/content): `writing/content`
- [Page generator](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/build.mjs): `writing/build.mjs`
- [Content rendering](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/components.mjs): `writing/components.mjs`
- [Category filter](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/writing/filter.js): `writing/filter.js`

### Visitor interactions

- [Site navigation](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/site-navigation.js): `site-navigation.js`
- [Portfolio terminal](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/portfolio.js): `portfolio.js`
- [Email copy](https://github.com/alexprofmutua/alexprofmutua.github.io/blob/main/contact/contact.js): `contact/contact.js`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: opens
- Visitor → Chess page: opens
- Visitor → Writing pages: opens
- Visitor → Contact page: opens
- Home page → Site navigation: uses
- Home page → Portfolio terminal: uses
- Contact page → Email copy: uses
- Chess page → Replay interface: uses
- Replay interface → Game collection: reads (evidence: `chess.js`)
- Replay interface → Replay parser: calls (evidence: `chess.js`)
- Replay parser → Chess engine: calls (evidence: `chess-replay.js`)
- Writing pages → Category filter: uses
- Article manifest → Page generator: supplies manifest (evidence: `writing/build.mjs`)
- Markdown articles → Page generator: supplies Markdown (evidence: `writing/build.mjs`)
- Page generator → Content rendering: calls (evidence: `writing/build.mjs`)
- Page generator → Writing pages: generates pages (evidence: `writing/build.mjs`)
- Page generator → Category filter: configures script (evidence: `writing/build.mjs`)
