# kbshari/agenticai architecture

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

- Interactive diagram: https://gitdiagram.com/kbshari/agenticai
- Repository: https://github.com/kbshari/agenticai

## Overview

This repository contains a small welcome site for the Hari SDLC Agent. A visitor requests a page, and the Node server serves files from the public directory; the site also includes a browser theme toggle that applies a saved or system-preferred theme. The sampled server and theme code support those behaviors, but the HTML and styles were not sampled, so page-specific navigation and asset wiring are not asserted.

Main entry points: [`welcome-app/server/server.js`](https://github.com/kbshari/agenticai/blob/main/welcome-app/server/server.js) (Static HTTP server), [`welcome-app/public/theme.js`](https://github.com/kbshari/agenticai/blob/main/welcome-app/public/theme.js) (Theme toggle), [`welcome-app/public`](https://github.com/kbshari/agenticai/tree/main/welcome-app/public) (Public site files)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_serving["HTTP serving"]
  node_server["Static HTTP server<br/>[server.js]"]
end

subgraph group_site["Welcome site"]
  node_public["Public site files"]
end

subgraph group_appearance["Theme preference"]
  node_theme["Theme toggle<br/>[theme.js]"]
end

node_visitor(("Site visitor"))
node_browser["Browser APIs"]

node_visitor -->|"requests pages"| node_server
node_server -->|"reads files"| node_public
node_theme -->|"reads and updates"| node_browser

click node_server "https://github.com/kbshari/agenticai/blob/main/welcome-app/server/server.js"
click node_public "https://github.com/kbshari/agenticai/tree/main/welcome-app/public"
click node_theme "https://github.com/kbshari/agenticai/blob/main/welcome-app/public/theme.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_server,node_browser toneBlue
class node_public toneAmber
class node_theme toneMint
class node_visitor toneIndigo
```

## Components

### HTTP serving

- [Static HTTP server](https://github.com/kbshari/agenticai/blob/main/welcome-app/server/server.js): `welcome-app/server/server.js`

### Welcome site

- [Public site files](https://github.com/kbshari/agenticai/tree/main/welcome-app/public): `welcome-app/public`

### Theme preference

- [Theme toggle](https://github.com/kbshari/agenticai/blob/main/welcome-app/public/theme.js): `welcome-app/public/theme.js`

### Other components

- **Site visitor**
- **Browser APIs**

## Connections

- Site visitor → Static HTTP server: requests pages (evidence: `welcome-app/server/server.js`)
- Static HTTP server → Public site files: reads files (evidence: `welcome-app/server/server.js`)
- Theme toggle → Browser APIs: reads and updates (evidence: `welcome-app/public/theme.js`)
