# raj-priyanshu45/portfolio architecture

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

## Overview

This is a React portfolio that presents the developer’s profile, projects, skills, and contact links. The visitor enters through the React mount, views the portfolio assembled by the main app, and can explore project summaries and their request-flow diagrams or follow external links. Project and profile details are centralized as content data; the diagrams visualize that data rather than implementing the showcased backend systems. Relationships are limited to those visible in the excerpts or source index.

Main entry points: [`src/App.tsx`](https://github.com/raj-priyanshu45/portfolio/blob/main/src/App.tsx) (Portfolio app), [`src/main.tsx`](https://github.com/raj-priyanshu45/portfolio/blob/main/src/main.tsx) (React mount), [`src/lib/content.ts`](https://github.com/raj-priyanshu45/portfolio/blob/main/src/lib/content.ts) (Profile and projects), [`src/components/ui/button.tsx`](https://github.com/raj-priyanshu45/portfolio/blob/main/src/components/ui/button.tsx) (Button control)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_mount["React mount<br/>[main.tsx]"]
end

subgraph group_portfolio["Portfolio experience"]
  node_app["Portfolio app<br/>[App.tsx]"]
  node_button["Button control<br/>[button.tsx]"]
  node_request_flow["Request-flow diagram<br/>[request-flow.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_content_data["Profile and projects<br/>[content.ts]"]
end

node_visitor(("Visitor"))
node_browser_storage[("Browser storage")]
node_contact_destinations{{"Contact and project links"}}

node_visitor -->|"opens portfolio"| node_mount
node_mount -->|"renders"| node_app
node_app -->|"reads content"| node_content_data
node_app -->|"uses controls"| node_button
node_app -->|"renders diagrams"| node_request_flow
node_app -->|"reads theme"| node_browser_storage
node_app -->|"saves theme"| node_browser_storage
node_app -->|"links to"| node_contact_destinations
node_content_data -->|"defines URLs"| node_contact_destinations

click node_mount "https://github.com/raj-priyanshu45/portfolio/blob/main/src/main.tsx"
click node_app "https://github.com/raj-priyanshu45/portfolio/blob/main/src/App.tsx"
click node_button "https://github.com/raj-priyanshu45/portfolio/blob/main/src/components/ui/button.tsx"
click node_request_flow "https://github.com/raj-priyanshu45/portfolio/blob/main/src/components/request-flow.tsx"
click node_content_data "https://github.com/raj-priyanshu45/portfolio/blob/main/src/lib/content.ts"

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_mount toneBlue
class node_app,node_button,node_request_flow,node_browser_storage toneAmber
class node_content_data toneMint
class node_visitor,node_contact_destinations toneIndigo
```

## Components

### Application entry

- [React mount](https://github.com/raj-priyanshu45/portfolio/blob/main/src/main.tsx): `src/main.tsx`

### Portfolio experience

- [Portfolio app](https://github.com/raj-priyanshu45/portfolio/blob/main/src/App.tsx): `src/App.tsx`
- [Button control](https://github.com/raj-priyanshu45/portfolio/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Request-flow diagram](https://github.com/raj-priyanshu45/portfolio/blob/main/src/components/request-flow.tsx): `src/components/request-flow.tsx`

### Portfolio content

- [Profile and projects](https://github.com/raj-priyanshu45/portfolio/blob/main/src/lib/content.ts): `src/lib/content.ts`

### Other components

- **Visitor**
- **Browser storage**
- **Contact and project links**

## Connections

- Visitor → React mount: opens portfolio (evidence: `README.md`)
- React mount → Portfolio app: renders (evidence: `src/main.tsx`)
- Portfolio app → Profile and projects: reads content (evidence: `src/App.tsx`)
- Portfolio app → Button control: uses controls (evidence: `src/App.tsx`)
- Portfolio app → Request-flow diagram: renders diagrams (evidence: `src/App.tsx`)
- Portfolio app → Browser storage: reads theme (evidence: `src/App.tsx`)
- Portfolio app → Browser storage: saves theme (evidence: `src/App.tsx`)
- Portfolio app → Contact and project links: links to (evidence: `src/App.tsx`)
- Profile and projects → Contact and project links: defines URLs (evidence: `src/lib/content.ts`)
