# niteshkraut/portfolio architecture

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

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

## Overview

This is a small static website with a script that cycles through three role labels using `Typed` on the `.text` selector. The likely user workflow is viewing the site and seeing that animated text, but the HTML and stylesheet were not excerpted, so their contents and loading relationships cannot be confirmed. The only evidenced runtime relationship is the script’s call to `Typed`; no broader product capabilities are documented.

Main entry points: [`script.js`](https://github.com/niteshkraut/portfolio/blob/main/script.js) (Role animation), [`index.html`](https://github.com/niteshkraut/portfolio/blob/main/index.html) (Site page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Static site"]
  node_page["Site page<br/>[index.html]"]
  node_styles["Site styles<br/>[style.css]"]
  node_role_text["Role animation<br/>[script.js]"]
end

node_visitor(("Visitor"))
node_typed["Typed library"]

node_role_text -->|"initializes"| node_typed
node_role_text -->|"targets .text"| node_page

click node_page "https://github.com/niteshkraut/portfolio/blob/main/index.html"
click node_styles "https://github.com/niteshkraut/portfolio/blob/main/style.css"
click node_role_text "https://github.com/niteshkraut/portfolio/blob/main/script.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_page,node_styles,node_role_text toneBlue
class node_visitor,node_typed toneIndigo
```

## Components

### Static site

- [Site page](https://github.com/niteshkraut/portfolio/blob/main/index.html): `index.html`
- [Site styles](https://github.com/niteshkraut/portfolio/blob/main/style.css): `style.css`
- [Role animation](https://github.com/niteshkraut/portfolio/blob/main/script.js): `script.js`

### Other components

- **Visitor**
- **Typed library**

## Connections

- Role animation → Typed library: initializes (evidence: `script.js`)
- Role animation → Site page: targets .text (evidence: `script.js`)
