# umbrellaisnothere/my-portfolio architecture

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

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

## Overview

This repository is a personal portfolio website with a small Express contact API. Visitors browse the home, about, and contact pages; contact-form submissions are sent to the configured API, validated, and—unless dry-run mode is enabled—delivered through Brevo. The frontend also includes navigation and presentation behavior and loads recent Medium posts. The API implementation is concentrated in server.js; the graph separates its route, validation, and delivery responsibilities for clarity. Contact submission wiring is documented in README.md; unsampled HTML and CSS relationships are not inferred.

Main entry points: [`script.js`](https://github.com/umbrellaisnothere/my-portfolio/blob/main/script.js) (Frontend behavior), [`server.js`](https://github.com/umbrellaisnothere/my-portfolio/blob/main/server.js) (Contact route), [`index.html`](https://github.com/umbrellaisnothere/my-portfolio/blob/main/index.html) (Home page), [`contact.html`](https://github.com/umbrellaisnothere/my-portfolio/blob/main/contact.html) (Contact page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Portfolio frontend"]
  node_home["Home page<br/>[index.html]"]
  node_about["About page<br/>[about.html]"]
  node_contact["Contact page<br/>[contact.html]"]
  node_behavior["Frontend behavior<br/>[script.js]"]
  node_api_config["API config<br/>[config.js]"]
  node_styles["Site styles<br/>[style.css]"]
end

subgraph group_api["Contact API"]
  node_contact_route["Contact route<br/>[server.js]"]
  node_validation["Payload validation<br/>[server.js]"]
  node_email_delivery["Email delivery<br/>[server.js]"]
  node_health["Health endpoint<br/>[server.js]"]
end

subgraph group_integrations["External services"]
  node_brevo{{"Brevo API"}}
  node_medium_feed{{"Medium RSS feed"}}
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_home
node_visitor -->|"browses"| node_about
node_visitor -->|"browses"| node_contact
node_home -.->|"uses behavior"| node_behavior
node_contact -.->|"uses behavior"| node_behavior
node_behavior -->|"reads URL"| node_api_config
node_behavior -->|"posts message"| node_contact_route
node_contact_route -->|"validates with"| node_validation
node_contact_route -->|"sends via"| node_email_delivery
node_email_delivery -->|"calls API"| node_brevo
node_contact_route -->|"also serves"| node_health
node_behavior -->|"fetches posts"| node_medium_feed
node_home -.->|"styled by"| node_styles
node_about -.->|"styled by"| node_styles
node_contact -.->|"styled by"| node_styles

click node_home "https://github.com/umbrellaisnothere/my-portfolio/blob/main/index.html"
click node_about "https://github.com/umbrellaisnothere/my-portfolio/blob/main/about.html"
click node_contact "https://github.com/umbrellaisnothere/my-portfolio/blob/main/contact.html"
click node_behavior "https://github.com/umbrellaisnothere/my-portfolio/blob/main/script.js"
click node_api_config "https://github.com/umbrellaisnothere/my-portfolio/blob/main/config.js"
click node_styles "https://github.com/umbrellaisnothere/my-portfolio/blob/main/css/style.css"
click node_contact_route "https://github.com/umbrellaisnothere/my-portfolio/blob/main/server.js"
click node_validation "https://github.com/umbrellaisnothere/my-portfolio/blob/main/server.js"
click node_email_delivery "https://github.com/umbrellaisnothere/my-portfolio/blob/main/server.js"
click node_health "https://github.com/umbrellaisnothere/my-portfolio/blob/main/server.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_about,node_contact,node_behavior,node_api_config,node_styles toneBlue
class node_contact_route,node_validation,node_email_delivery,node_health toneAmber
class node_brevo,node_medium_feed toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio frontend

- [Home page](https://github.com/umbrellaisnothere/my-portfolio/blob/main/index.html): `index.html`
- [About page](https://github.com/umbrellaisnothere/my-portfolio/blob/main/about.html): `about.html`
- [Contact page](https://github.com/umbrellaisnothere/my-portfolio/blob/main/contact.html): `contact.html`
- [Frontend behavior](https://github.com/umbrellaisnothere/my-portfolio/blob/main/script.js): `script.js`
- [API config](https://github.com/umbrellaisnothere/my-portfolio/blob/main/config.js): `config.js`
- [Site styles](https://github.com/umbrellaisnothere/my-portfolio/blob/main/css/style.css): `css/style.css`

### Contact API

- [Contact route](https://github.com/umbrellaisnothere/my-portfolio/blob/main/server.js): `server.js`
- [Payload validation](https://github.com/umbrellaisnothere/my-portfolio/blob/main/server.js): `server.js`
- [Email delivery](https://github.com/umbrellaisnothere/my-portfolio/blob/main/server.js): `server.js`
- [Health endpoint](https://github.com/umbrellaisnothere/my-portfolio/blob/main/server.js): `server.js`

### External services

- **Brevo API**
- **Medium RSS feed**

### Other components

- **Visitor**

## Connections

- Visitor → Home page: browses (evidence: `README.md`)
- Visitor → About page: browses (evidence: `README.md`)
- Visitor → Contact page: browses (evidence: `README.md`)
- Home page → Frontend behavior: uses behavior
- Contact page → Frontend behavior: uses behavior
- Frontend behavior → API config: reads URL (evidence: `script.js`)
- Frontend behavior → Contact route: posts message (evidence: `README.md`)
- Contact route → Payload validation: validates with (evidence: `server.js`)
- Contact route → Email delivery: sends via (evidence: `server.js`)
- Email delivery → Brevo API: calls API (evidence: `server.js`)
- Contact route → Health endpoint: also serves (evidence: `server.js`)
- Frontend behavior → Medium RSS feed: fetches posts (evidence: `script.js`)
- Home page → Site styles: styled by
- About page → Site styles: styled by
- Contact page → Site styles: styled by
