# rajkumarskr/portfolio architecture

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

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

## Overview

This is a browser-based portfolio with client-side interactions for navigation, scroll effects, and image loading. The principal workflow shown is browser page readiness initializing those behaviors; visitors then use the menu and in-page links or view revealed and lazily loaded content. The sampled source is only script.js; index.html and styles.css are present in the tree but were not inspected, so page structure and styling relationships are not mapped.

Main entry points: [`script.js`](https://github.com/rajkumarskr/portfolio/blob/main/script.js) (Page startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Navigation"]
  node_mobile["Mobile menu<br/>[script.js]"]
  node_scroll["Smooth scrolling<br/>[script.js]"]
end

subgraph group_presentation["Presentation"]
  node_animation["Scroll reveals<br/>[script.js]"]
  node_lazy["Lazy images<br/>[script.js]"]
end

subgraph group_runtime["Runtime support"]
  node_startup["Page startup<br/>[script.js]"]
  node_performance["Performance monitor<br/>[script.js]"]
end

node_browser(("Browser"))

node_browser -->|"fires ready"| node_startup
node_startup -->|"initializes"| node_mobile
node_startup -->|"initializes"| node_scroll
node_startup -->|"initializes"| node_animation
node_startup -->|"initializes"| node_lazy
node_startup -->|"initializes"| node_performance

click node_startup "https://github.com/rajkumarskr/portfolio/blob/main/script.js"
click node_mobile "https://github.com/rajkumarskr/portfolio/blob/main/script.js"
click node_scroll "https://github.com/rajkumarskr/portfolio/blob/main/script.js"
click node_animation "https://github.com/rajkumarskr/portfolio/blob/main/script.js"
click node_lazy "https://github.com/rajkumarskr/portfolio/blob/main/script.js"
click node_performance "https://github.com/rajkumarskr/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_mobile,node_scroll,node_browser toneBlue
class node_animation,node_lazy toneAmber
class node_startup,node_performance toneMint
```

## Components

### Navigation

- [Mobile menu](https://github.com/rajkumarskr/portfolio/blob/main/script.js): `script.js`
- [Smooth scrolling](https://github.com/rajkumarskr/portfolio/blob/main/script.js): `script.js`

### Presentation

- [Scroll reveals](https://github.com/rajkumarskr/portfolio/blob/main/script.js): `script.js`
- [Lazy images](https://github.com/rajkumarskr/portfolio/blob/main/script.js): `script.js`

### Runtime support

- [Page startup](https://github.com/rajkumarskr/portfolio/blob/main/script.js): `script.js`
- [Performance monitor](https://github.com/rajkumarskr/portfolio/blob/main/script.js): `script.js`

### Other components

- **Browser**

## Connections

- Browser → Page startup: fires ready (evidence: `script.js`)
- Page startup → Mobile menu: initializes (evidence: `script.js`)
- Page startup → Smooth scrolling: initializes (evidence: `script.js`)
- Page startup → Scroll reveals: initializes (evidence: `script.js`)
- Page startup → Lazy images: initializes (evidence: `script.js`)
- Page startup → Performance monitor: initializes (evidence: `script.js`)
