# nicoboga4075/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/nicoboga4075/portfolio
- Repository: https://github.com/nicoboga4075/portfolio

## Overview

This is a bilingual personal portfolio and blog, built as a static Eleventy site and deployed from the repository root on Netlify. Visitors browse localized portfolio pages, project showcases and articles; browser scripts add interactive features, and the service worker supports offline use. Netlify functions provide article content, public configuration and a visit counter. The README documents the Eleventy layout, data, feed and sitemap. Some page and function wiring is documented rather than shown in sampled source, so those connections are identified accordingly.

Main entry points: [`.eleventy.js`](https://github.com/nicoboga4075/portfolio/blob/main/.eleventy.js) (Eleventy site), [`articles`](https://github.com/nicoboga4075/portfolio/tree/main/articles) (Article pages), [`netlify/functions/shared/http.mts`](https://github.com/nicoboga4075/portfolio/blob/main/netlify/functions/shared/http.mts) (HTTP helpers), [`netlify/functions/article.mts`](https://github.com/nicoboga4075/portfolio/blob/main/netlify/functions/article.mts) (Article function)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site rendering"]
  node_eleventy["Eleventy site<br/>[.eleventy.js]"]
  node_layout["Shared layout<br/>[base.njk]"]
  node_portfolio["Portfolio pages<br/>[index_en.html]"]
  node_blog["Blog pages<br/>[blog_en.html]"]
  node_articles["Article pages"]
  node_projects["Project pages"]
  node_feed["Feeds and sitemap<br/>[.eleventy.js]"]
end

subgraph group_browser["Visitor experience"]
  node_shared_js["Shared browser helpers<br/>[common.js]"]
  node_interactions["Page interactions<br/>[app.js]"]
  node_chat["Chat integration<br/>[botpress.js]"]
  node_offline["Offline cache<br/>[service-worker.js]"]
end

subgraph group_functions["Netlify functions"]
  node_article_fn["Article function<br/>[article.mts]"]
  node_env_fn["Public config function<br/>[env.mts]"]
  node_visit_fn["Visit counter function<br/>[visit.mts]"]
  node_http_helpers["HTTP helpers<br/>[http.mts]"]
end

subgraph group_content["Content and assets"]
  node_site_data["Localized content"]
end

node_visitor(("Visitor"))
node_github["GitHub API"]
node_supabase[("Supabase")]
node_botpress_service["Botpress service"]
node_browser_cache[("Browser cache")]

node_visitor -->|"browses"| node_portfolio
node_visitor -->|"browses"| node_blog
node_visitor -->|"reads"| node_articles
node_visitor -->|"browses"| node_projects
node_eleventy -->|"lays out"| node_layout
node_eleventy -->|"fills pages"| node_site_data
node_eleventy -->|"builds"| node_portfolio
node_eleventy -->|"builds"| node_blog
node_eleventy -->|"builds"| node_articles
node_eleventy -->|"builds"| node_projects
node_eleventy -->|"generates"| node_feed
node_shared_js -->|"loads before"| node_interactions
node_visitor -->|"activates"| node_chat
node_chat -->|"loads"| node_botpress_service
node_visitor -.->|"uses"| node_offline
node_offline -->|"reads and writes"| node_browser_cache
node_article_fn -->|"uses"| node_http_helpers
node_env_fn -->|"uses"| node_http_helpers
node_visit_fn -->|"uses"| node_http_helpers
node_article_fn -->|"reads files"| node_articles
node_env_fn -->|"fetches updates"| node_github
node_visit_fn -->|"increments visits"| node_supabase

click node_eleventy "https://github.com/nicoboga4075/portfolio/blob/main/.eleventy.js"
click node_layout "https://github.com/nicoboga4075/portfolio/blob/main/_includes/base.njk"
click node_portfolio "https://github.com/nicoboga4075/portfolio/blob/main/index_en.html"
click node_blog "https://github.com/nicoboga4075/portfolio/blob/main/blog_en.html"
click node_articles "https://github.com/nicoboga4075/portfolio/tree/main/articles"
click node_projects "https://github.com/nicoboga4075/portfolio/tree/main/projects"
click node_site_data "https://github.com/nicoboga4075/portfolio/tree/main/_data"
click node_feed "https://github.com/nicoboga4075/portfolio/blob/main/.eleventy.js"
click node_shared_js "https://github.com/nicoboga4075/portfolio/blob/main/js/common.js"
click node_interactions "https://github.com/nicoboga4075/portfolio/blob/main/js/app.js"
click node_chat "https://github.com/nicoboga4075/portfolio/blob/main/js/botpress.js"
click node_offline "https://github.com/nicoboga4075/portfolio/blob/main/service-worker.js"
click node_article_fn "https://github.com/nicoboga4075/portfolio/blob/main/netlify/functions/article.mts"
click node_env_fn "https://github.com/nicoboga4075/portfolio/blob/main/netlify/functions/env.mts"
click node_visit_fn "https://github.com/nicoboga4075/portfolio/blob/main/netlify/functions/visit.mts"
click node_http_helpers "https://github.com/nicoboga4075/portfolio/blob/main/netlify/functions/shared/http.mts"

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_eleventy,node_layout,node_portfolio,node_blog,node_articles,node_projects,node_feed toneBlue
class node_shared_js,node_interactions,node_chat,node_offline,node_supabase,node_browser_cache toneAmber
class node_article_fn,node_env_fn,node_visit_fn,node_http_helpers,node_github toneMint
class node_site_data toneRose
class node_visitor,node_botpress_service toneIndigo
```

## Components

### Site rendering

- [Eleventy site](https://github.com/nicoboga4075/portfolio/blob/main/.eleventy.js): `.eleventy.js`
- [Shared layout](https://github.com/nicoboga4075/portfolio/blob/main/_includes/base.njk): `_includes/base.njk`
- [Portfolio pages](https://github.com/nicoboga4075/portfolio/blob/main/index_en.html): `index_en.html`
- [Blog pages](https://github.com/nicoboga4075/portfolio/blob/main/blog_en.html): `blog_en.html`
- [Article pages](https://github.com/nicoboga4075/portfolio/tree/main/articles): `articles`
- [Project pages](https://github.com/nicoboga4075/portfolio/tree/main/projects): `projects`
- [Feeds and sitemap](https://github.com/nicoboga4075/portfolio/blob/main/.eleventy.js): `.eleventy.js`

### Visitor experience

- [Shared browser helpers](https://github.com/nicoboga4075/portfolio/blob/main/js/common.js): `js/common.js`
- [Page interactions](https://github.com/nicoboga4075/portfolio/blob/main/js/app.js): `js/app.js`
- [Chat integration](https://github.com/nicoboga4075/portfolio/blob/main/js/botpress.js): `js/botpress.js`
- [Offline cache](https://github.com/nicoboga4075/portfolio/blob/main/service-worker.js): `service-worker.js`

### Netlify functions

- [Article function](https://github.com/nicoboga4075/portfolio/blob/main/netlify/functions/article.mts): `netlify/functions/article.mts`
- [Public config function](https://github.com/nicoboga4075/portfolio/blob/main/netlify/functions/env.mts): `netlify/functions/env.mts`
- [Visit counter function](https://github.com/nicoboga4075/portfolio/blob/main/netlify/functions/visit.mts): `netlify/functions/visit.mts`
- [HTTP helpers](https://github.com/nicoboga4075/portfolio/blob/main/netlify/functions/shared/http.mts): `netlify/functions/shared/http.mts`

### Content and assets

- [Localized content](https://github.com/nicoboga4075/portfolio/tree/main/_data): `_data`

### Other components

- **Visitor**
- **GitHub API**
- **Supabase**
- **Botpress service**
- **Browser cache**

## Connections

- Visitor → Portfolio pages: browses (evidence: `README.md`)
- Visitor → Blog pages: browses (evidence: `README.md`)
- Visitor → Article pages: reads (evidence: `README.md`)
- Visitor → Project pages: browses (evidence: `README.md`)
- Eleventy site → Shared layout: lays out (evidence: `README.md`)
- Eleventy site → Localized content: fills pages (evidence: `README.md`)
- Eleventy site → Portfolio pages: builds (evidence: `README.md`)
- Eleventy site → Blog pages: builds (evidence: `README.md`)
- Eleventy site → Article pages: builds (evidence: `README.md`)
- Eleventy site → Project pages: builds (evidence: `README.md`)
- Eleventy site → Feeds and sitemap: generates (evidence: `README.md`)
- Shared browser helpers → Page interactions: loads before (evidence: `js/common.js`)
- Visitor → Chat integration: activates (evidence: `js/botpress.js`)
- Chat integration → Botpress service: loads (evidence: `js/botpress.js`)
- Visitor → Offline cache: uses (evidence: `README.md`)
- Offline cache → Browser cache: reads and writes (evidence: `service-worker.js`)
- Article function → HTTP helpers: uses (evidence: `netlify/functions/article.mts`)
- Public config function → HTTP helpers: uses (evidence: `netlify/functions/env.mts`)
- Visit counter function → HTTP helpers: uses (evidence: `netlify/functions/visit.mts`)
- Article function → Article pages: reads files (evidence: `netlify/functions/article.mts`)
- Public config function → GitHub API: fetches updates (evidence: `netlify/functions/env.mts`)
- Visit counter function → Supabase: increments visits (evidence: `netlify/functions/visit.mts`)
