# braveset14/info architecture

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

## Overview

This is a small Node.js HTTP site. A browser request reaches the server in `index.js`, which selects and reads one of three HTML pages or the 404 page, then returns it with the corresponding status. The available evidence is limited to the server entry point; the HTML files’ contents and any client-side behavior are not shown.

Main entry points: [`index.js`](https://github.com/braveset14/info/blob/main/index.js) (HTTP server), [`index.html`](https://github.com/braveset14/info/blob/main/index.html) (Home page), [`about.html`](https://github.com/braveset14/info/blob/main/about.html) (About page), [`contact-me.html`](https://github.com/braveset14/info/blob/main/contact-me.html) (Contact page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["HTTP site"]
  node_server["HTTP server<br/>[index.js]"]
  node_home["Home page<br/>[index.html]"]
  node_about["About page<br/>[about.html]"]
  node_contact["Contact page<br/>[contact-me.html]"]
  node_notfound["404 page<br/>[404.html]"]
end

node_browser(("Browser"))

node_browser -->|"sends requests"| node_server
node_server -->|"serves at /"| node_home
node_server -->|"serves at /about"| node_about
node_server -->|"serves at /contact-me"| node_contact
node_server -->|"serves unknown paths"| node_notfound

click node_server "https://github.com/braveset14/info/blob/main/index.js"
click node_home "https://github.com/braveset14/info/blob/main/index.html"
click node_about "https://github.com/braveset14/info/blob/main/about.html"
click node_contact "https://github.com/braveset14/info/blob/main/contact-me.html"
click node_notfound "https://github.com/braveset14/info/blob/main/404.html"

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_server,node_home,node_about,node_contact,node_notfound,node_browser toneBlue
```

## Components

### HTTP site

- [HTTP server](https://github.com/braveset14/info/blob/main/index.js): `index.js`
- [Home page](https://github.com/braveset14/info/blob/main/index.html): `index.html`
- [About page](https://github.com/braveset14/info/blob/main/about.html): `about.html`
- [Contact page](https://github.com/braveset14/info/blob/main/contact-me.html): `contact-me.html`
- [404 page](https://github.com/braveset14/info/blob/main/404.html): `404.html`

### Other components

- **Browser**

## Connections

- Browser → HTTP server: sends requests (evidence: `index.js`)
- HTTP server → Home page: serves at / (evidence: `index.js`)
- HTTP server → About page: serves at /about (evidence: `index.js`)
- HTTP server → Contact page: serves at /contact-me (evidence: `index.js`)
- HTTP server → 404 page: serves unknown paths (evidence: `index.js`)
