# raynier95/os-system-app architecture

> Architecture diagram of the GitHub repository raynier95/os-system-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/raynier95/os-system-app
- Repository: https://github.com/raynier95/os-system-app

## Overview

This is a small Express system-information dashboard. A browser requests the home route; the server gathers CPU, memory, operating-system, user, and network details through systeminformation, then renders an EJS view. Express also serves static assets and sends a 404 page for unmatched requests. The source shows the data collection and response wiring, but not the view’s presentation details or which CSS files it references.

Main entry points: [`app.js`](https://github.com/raynier95/os-system-app/blob/master/app.js) (Express app), [`src/view/index.ejs`](https://github.com/raynier95/os-system-app/blob/master/src/view/index.ejs) (Dashboard view), [`src/view/404.html`](https://github.com/raynier95/os-system-app/blob/master/src/view/404.html) (404 page), [`src/css/style.css`](https://github.com/raynier95/os-system-app/blob/master/src/css/style.css) (Stylesheet)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_server["Web server"]
  node_app["Express app<br/>[app.js]"]
end

subgraph group_telemetry["System telemetry"]
  node_systeminfo["Systeminformation"]
end

subgraph group_presentation["Presentation"]
  node_dashboard["Dashboard view<br/>[index.ejs]"]
  node_notfound["404 page<br/>[404.html]"]
  node_style["Stylesheet<br/>[style.css]"]
  node_errorstyle["404 stylesheet<br/>[404.css]"]
end

node_browser(("Browser"))

node_browser -->|"requests page"| node_app
node_app -->|"queries system"| node_systeminfo
node_app -->|"renders view"| node_dashboard
node_app -->|"sends file"| node_notfound
node_app -->|"serves static"| node_style
node_app -->|"serves static"| node_errorstyle

click node_app "https://github.com/raynier95/os-system-app/blob/master/app.js"
click node_dashboard "https://github.com/raynier95/os-system-app/blob/master/src/view/index.ejs"
click node_notfound "https://github.com/raynier95/os-system-app/blob/master/src/view/404.html"
click node_style "https://github.com/raynier95/os-system-app/blob/master/src/css/style.css"
click node_errorstyle "https://github.com/raynier95/os-system-app/blob/master/src/css/404.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_app,node_browser toneBlue
class node_systeminfo toneAmber
class node_dashboard,node_notfound,node_style,node_errorstyle toneMint
```

## Components

### Web server

- [Express app](https://github.com/raynier95/os-system-app/blob/master/app.js): `app.js`

### System telemetry

- **Systeminformation**

### Presentation

- [Dashboard view](https://github.com/raynier95/os-system-app/blob/master/src/view/index.ejs): `src/view/index.ejs`
- [404 page](https://github.com/raynier95/os-system-app/blob/master/src/view/404.html): `src/view/404.html`
- [Stylesheet](https://github.com/raynier95/os-system-app/blob/master/src/css/style.css): `src/css/style.css`
- [404 stylesheet](https://github.com/raynier95/os-system-app/blob/master/src/css/404.css): `src/css/404.css`

### Other components

- **Browser**

## Connections

- Browser → Express app: requests page (evidence: `app.js`)
- Express app → Systeminformation: queries system (evidence: `app.js`)
- Express app → Dashboard view: renders view (evidence: `app.js`)
- Express app → 404 page: sends file (evidence: `app.js`)
- Express app → Stylesheet: serves static (evidence: `app.js`)
- Express app → 404 stylesheet: serves static (evidence: `app.js`)
