# gaboudron/portfolio architecture

> Architecture diagram of the GitHub repository gaboudron/portfolio, 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/gaboudron/portfolio
- Repository: https://github.com/gaboudron/portfolio

## Overview

This repository is a bilingual personal portfolio website with project details, résumé and contact pages, plus a chat assistant about the portfolio owner. The chat workflow sends a visitor’s message from the browser to a Flask endpoint, which searches profile data and asks Ollama to formulate a reply. The sampled JavaScript also implements project-detail modals. Page files are represented from the tree; their wiring and content were not sampled, and no README documentation was provided.

Main entry points: [`server/app.py`](https://github.com/gaboudron/portfolio/blob/master/server/app.py) (Chat endpoint), [`script.js`](https://github.com/gaboudron/portfolio/blob/master/script.js) (French chat UI), [`english/script.js`](https://github.com/gaboudron/portfolio/blob/master/english/script.js) (English chat UI), [`projects.html`](https://github.com/gaboudron/portfolio/blob/master/projects.html) (French projects)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio site"]
  node_fr_home["French home<br/>[index.html]"]
  node_fr_projects["French projects<br/>[projects.html]"]
  node_fr_resume["French résumé<br/>[resume.html]"]
  node_fr_contact["French contact<br/>[contact.html]"]
  node_en_home["English home<br/>[index.html]"]
  node_en_projects["English projects<br/>[projects.html]"]
  node_en_resume["English résumé<br/>[resume.html]"]
  node_en_contact["English contact<br/>[contact.html]"]
  node_project_ui["Project modals<br/>[script.js]"]
  node_styles["Shared styling<br/>[styles.css]"]
end

subgraph group_chat["Chat assistant"]
  node_fr_chat_ui["French chat UI<br/>[script.js]"]
  node_en_chat_ui["English chat UI<br/>[script.js]"]
  node_chat_api["Chat endpoint<br/>[app.py]"]
  node_profile_search["Profile search<br/>[app.py]"]
end

subgraph group_content["Profile data"]
  node_profile_json[("Profile data<br/>[data.json]")]
end

node_visitor(("Visitor"))
node_ollama["Ollama model"]

node_visitor -->|"selects projects"| node_project_ui
node_project_ui -->|"updates modal"| node_fr_projects
node_visitor -.->|"asks question"| node_fr_chat_ui
node_visitor -.->|"asks question"| node_en_chat_ui
node_fr_chat_ui -->|"posts message"| node_chat_api
node_en_chat_ui -->|"posts message"| node_chat_api
node_chat_api -->|"searches context"| node_profile_search
node_chat_api -->|"loads data"| node_profile_json
node_chat_api -->|"requests reply"| node_ollama
node_chat_api -->|"returns reply"| node_fr_chat_ui
node_chat_api -->|"returns reply"| node_en_chat_ui

click node_fr_home "https://github.com/gaboudron/portfolio/blob/master/index.html"
click node_fr_projects "https://github.com/gaboudron/portfolio/blob/master/projects.html"
click node_fr_resume "https://github.com/gaboudron/portfolio/blob/master/resume.html"
click node_fr_contact "https://github.com/gaboudron/portfolio/blob/master/contact.html"
click node_en_home "https://github.com/gaboudron/portfolio/blob/master/english/index.html"
click node_en_projects "https://github.com/gaboudron/portfolio/blob/master/english/projects.html"
click node_en_resume "https://github.com/gaboudron/portfolio/blob/master/english/resume.html"
click node_en_contact "https://github.com/gaboudron/portfolio/blob/master/english/contact.html"
click node_project_ui "https://github.com/gaboudron/portfolio/blob/master/script.js"
click node_fr_chat_ui "https://github.com/gaboudron/portfolio/blob/master/script.js"
click node_en_chat_ui "https://github.com/gaboudron/portfolio/blob/master/english/script.js"
click node_chat_api "https://github.com/gaboudron/portfolio/blob/master/server/app.py"
click node_profile_search "https://github.com/gaboudron/portfolio/blob/master/server/app.py"
click node_profile_json "https://github.com/gaboudron/portfolio/blob/master/server/data.json"
click node_styles "https://github.com/gaboudron/portfolio/blob/master/styles.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_fr_home,node_fr_projects,node_fr_resume,node_fr_contact,node_en_home,node_en_projects,node_en_resume,node_en_contact,node_project_ui,node_styles toneBlue
class node_fr_chat_ui,node_en_chat_ui,node_chat_api,node_profile_search toneAmber
class node_profile_json toneMint
class node_visitor,node_ollama toneIndigo
```

## Components

### Portfolio site

- [French home](https://github.com/gaboudron/portfolio/blob/master/index.html): `index.html`
- [French projects](https://github.com/gaboudron/portfolio/blob/master/projects.html): `projects.html`
- [French résumé](https://github.com/gaboudron/portfolio/blob/master/resume.html): `resume.html`
- [French contact](https://github.com/gaboudron/portfolio/blob/master/contact.html): `contact.html`
- [English home](https://github.com/gaboudron/portfolio/blob/master/english/index.html): `english/index.html`
- [English projects](https://github.com/gaboudron/portfolio/blob/master/english/projects.html): `english/projects.html`
- [English résumé](https://github.com/gaboudron/portfolio/blob/master/english/resume.html): `english/resume.html`
- [English contact](https://github.com/gaboudron/portfolio/blob/master/english/contact.html): `english/contact.html`
- [Project modals](https://github.com/gaboudron/portfolio/blob/master/script.js): `script.js`
- [Shared styling](https://github.com/gaboudron/portfolio/blob/master/styles.css): `styles.css`

### Chat assistant

- [French chat UI](https://github.com/gaboudron/portfolio/blob/master/script.js): `script.js`
- [English chat UI](https://github.com/gaboudron/portfolio/blob/master/english/script.js): `english/script.js`
- [Chat endpoint](https://github.com/gaboudron/portfolio/blob/master/server/app.py): `server/app.py`
- [Profile search](https://github.com/gaboudron/portfolio/blob/master/server/app.py): `server/app.py`

### Profile data

- [Profile data](https://github.com/gaboudron/portfolio/blob/master/server/data.json): `server/data.json`

### Other components

- **Visitor**
- **Ollama model**

## Connections

- Visitor → Project modals: selects projects (evidence: `script.js`)
- Project modals → French projects: updates modal (evidence: `script.js`)
- Visitor → French chat UI: asks question
- Visitor → English chat UI: asks question
- French chat UI → Chat endpoint: posts message (evidence: `script.js`)
- English chat UI → Chat endpoint: posts message (evidence: `english/script.js`)
- Chat endpoint → Profile search: searches context (evidence: `server/app.py`)
- Chat endpoint → Profile data: loads data (evidence: `server/app.py`)
- Chat endpoint → Ollama model: requests reply (evidence: `server/app.py`)
- Chat endpoint → French chat UI: returns reply (evidence: `script.js`)
- Chat endpoint → English chat UI: returns reply (evidence: `english/script.js`)
