# hariharan024/myportfolio architecture

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

## Overview

This repository is a personal portfolio website with a client-side Q&A assistant. A visitor submits a question or selects a suggested prompt; the script matches it against portfolio topics and displays a canned response. The script also manages navigation, theme persistence, and reveal-on-scroll behavior. The README is empty, and only script.js was sampled; the HTML and CSS files are present in the tree but their contents were not inspected, so their detailed roles and wiring are not inferred.

Main entry points: [`script.js`](https://github.com/hariharan024/myportfolio/blob/main/script.js) (Portfolio Q&A)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio experience"]
  node_interactions["Page interactions<br/>[script.js]"]
  node_qa["Portfolio Q&amp;A<br/>[script.js]"]
  node_answer["Answer display<br/>[script.js]"]
  node_theme_store[("Theme storage")]
  node_page_styles["Page styling<br/>[styles.css]"]
end

node_visitor(("Visitor"))

node_visitor -->|"submits question"| node_qa
node_interactions -->|"sets prompt"| node_qa
node_qa -->|"renders answer"| node_answer
node_interactions -->|"reads and writes"| node_theme_store

click node_interactions "https://github.com/hariharan024/myportfolio/blob/main/script.js"
click node_qa "https://github.com/hariharan024/myportfolio/blob/main/script.js"
click node_answer "https://github.com/hariharan024/myportfolio/blob/main/script.js"
click node_page_styles "https://github.com/hariharan024/myportfolio/blob/main/styles.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_interactions,node_qa,node_answer,node_theme_store,node_page_styles toneBlue
class node_visitor toneIndigo
```

## Components

### Portfolio experience

- [Page interactions](https://github.com/hariharan024/myportfolio/blob/main/script.js): `script.js`
- [Portfolio Q&A](https://github.com/hariharan024/myportfolio/blob/main/script.js): `script.js`
- [Answer display](https://github.com/hariharan024/myportfolio/blob/main/script.js): `script.js`
- **Theme storage**
- [Page styling](https://github.com/hariharan024/myportfolio/blob/main/styles.css): `styles.css`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio Q&A: submits question (evidence: `script.js`)
- Page interactions → Portfolio Q&A: sets prompt (evidence: `script.js`)
- Portfolio Q&A → Answer display: renders answer (evidence: `script.js`)
- Page interactions → Theme storage: reads and writes (evidence: `script.js`)
