# rohitvegesna/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/rohitvegesna/portfolio
- Repository: https://github.com/rohitvegesna/portfolio
- Video tour (about a minute): https://gitdiagram.com/rohitvegesna/portfolio/video

## Overview

This is a personal portfolio site for a senior QA automation developer. A visitor enters through the React application, which routes to the home or detailed portfolio page; those pages present the professional profile and capabilities described in the README. The navbar supports section navigation, while the app provides shared query, tooltip, and toast infrastructure and analytics. The Express server is documented as local-development support; sampled code shows static serving in production and Vite middleware in development. Page internals were not excerpted, so detailed section-to-section behavior is not asserted.

Main entry points: [`client/src/App.tsx`](https://github.com/rohitvegesna/portfolio/blob/main/client/src/App.tsx) (App router), [`server/index.ts`](https://github.com/rohitvegesna/portfolio/blob/main/server/index.ts) (Express host), [`client/src/main.tsx`](https://github.com/rohitvegesna/portfolio/blob/main/client/src/main.tsx) (React entry), [`server/routes.ts`](https://github.com/rohitvegesna/portfolio/blob/main/server/routes.ts) (API routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Portfolio experience"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App router<br/>[App.tsx]"]
  node_home["Home portfolio<br/>[Home.tsx]"]
  node_detailed["Detailed portfolio<br/>[Detailed.tsx]"]
  node_navbar["Section navigation<br/>[Navbar.tsx]"]
  node_notfound["Not found page<br/>[not-found.tsx]"]
end

subgraph group_shared["Client infrastructure"]
  node_query["Query client<br/>[queryClient.ts]"]
  node_toaster["Toast renderer<br/>[toaster.tsx]"]
  node_analytics["Usage analytics<br/>[App.tsx]"]
end

subgraph group_runtime["Development runtime"]
  node_express["Express host<br/>[index.ts]"]
  node_routes["API routes<br/>[routes.ts]"]
  node_storage[("User storage<br/>[storage.ts]")]
  node_static["Production static host<br/>[static.ts]"]
  node_vite["Development Vite host<br/>[vite.ts]"]
  node_viteconfig["Vite configuration<br/>[vite.config.ts]"]
  node_metaimages["Social image tags"]
end

node_visitor(("Portfolio visitor"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"routes /"| node_home
node_app -->|"routes /detailed"| node_detailed
node_app -->|"fallback route"| node_notfound
node_app -->|"provides queries"| node_query
node_app -->|"renders notices"| node_toaster
node_app -->|"renders analytics"| node_analytics
node_express -->|"registers routes"| node_routes
node_express -->|"serves production"| node_static
node_express -->|"sets up development"| node_vite
node_routes -->|"uses storage"| node_storage
node_vite -->|"loads config"| node_viteconfig
node_viteconfig -->|"registers plugin"| node_metaimages

click node_entry "https://github.com/rohitvegesna/portfolio/blob/main/client/src/main.tsx"
click node_app "https://github.com/rohitvegesna/portfolio/blob/main/client/src/App.tsx"
click node_home "https://github.com/rohitvegesna/portfolio/blob/main/client/src/pages/Home.tsx"
click node_detailed "https://github.com/rohitvegesna/portfolio/blob/main/client/src/pages/Detailed.tsx"
click node_navbar "https://github.com/rohitvegesna/portfolio/blob/main/client/src/components/Navbar.tsx"
click node_notfound "https://github.com/rohitvegesna/portfolio/blob/main/client/src/pages/not-found.tsx"
click node_query "https://github.com/rohitvegesna/portfolio/blob/main/client/src/lib/queryClient.ts"
click node_toaster "https://github.com/rohitvegesna/portfolio/blob/main/client/src/components/ui/toaster.tsx"
click node_analytics "https://github.com/rohitvegesna/portfolio/blob/main/client/src/App.tsx"
click node_express "https://github.com/rohitvegesna/portfolio/blob/main/server/index.ts"
click node_routes "https://github.com/rohitvegesna/portfolio/blob/main/server/routes.ts"
click node_storage "https://github.com/rohitvegesna/portfolio/blob/main/server/storage.ts"
click node_static "https://github.com/rohitvegesna/portfolio/blob/main/server/static.ts"
click node_vite "https://github.com/rohitvegesna/portfolio/blob/main/server/vite.ts"
click node_viteconfig "https://github.com/rohitvegesna/portfolio/blob/main/vite.config.ts"
click node_metaimages "https://github.com/rohitvegesna/portfolio/blob/main/vite-plugin-meta-images.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_entry,node_app,node_home,node_detailed,node_navbar,node_notfound toneBlue
class node_query,node_toaster,node_analytics toneAmber
class node_express,node_routes,node_storage,node_static,node_vite,node_viteconfig,node_metaimages toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio experience

- [React entry](https://github.com/rohitvegesna/portfolio/blob/main/client/src/main.tsx): `client/src/main.tsx`
- [App router](https://github.com/rohitvegesna/portfolio/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Home portfolio](https://github.com/rohitvegesna/portfolio/blob/main/client/src/pages/Home.tsx): `client/src/pages/Home.tsx`
- [Detailed portfolio](https://github.com/rohitvegesna/portfolio/blob/main/client/src/pages/Detailed.tsx): `client/src/pages/Detailed.tsx`
- [Section navigation](https://github.com/rohitvegesna/portfolio/blob/main/client/src/components/Navbar.tsx): `client/src/components/Navbar.tsx`
- [Not found page](https://github.com/rohitvegesna/portfolio/blob/main/client/src/pages/not-found.tsx): `client/src/pages/not-found.tsx`

### Client infrastructure

- [Query client](https://github.com/rohitvegesna/portfolio/blob/main/client/src/lib/queryClient.ts): `client/src/lib/queryClient.ts`
- [Toast renderer](https://github.com/rohitvegesna/portfolio/blob/main/client/src/components/ui/toaster.tsx): `client/src/components/ui/toaster.tsx`
- [Usage analytics](https://github.com/rohitvegesna/portfolio/blob/main/client/src/App.tsx): `client/src/App.tsx`

### Development runtime

- [Express host](https://github.com/rohitvegesna/portfolio/blob/main/server/index.ts): `server/index.ts`
- [API routes](https://github.com/rohitvegesna/portfolio/blob/main/server/routes.ts): `server/routes.ts`
- [User storage](https://github.com/rohitvegesna/portfolio/blob/main/server/storage.ts): `server/storage.ts`
- [Production static host](https://github.com/rohitvegesna/portfolio/blob/main/server/static.ts): `server/static.ts`
- [Development Vite host](https://github.com/rohitvegesna/portfolio/blob/main/server/vite.ts): `server/vite.ts`
- [Vite configuration](https://github.com/rohitvegesna/portfolio/blob/main/vite.config.ts): `vite.config.ts`
- [Social image tags](https://github.com/rohitvegesna/portfolio/blob/main/vite-plugin-meta-images.ts): `vite-plugin-meta-images.ts`

### Other components

- **Portfolio visitor**

## Connections

- Portfolio visitor → React entry: opens site
- React entry → App router: renders (evidence: `client/src/main.tsx`)
- App router → Home portfolio: routes / (evidence: `client/src/App.tsx`)
- App router → Detailed portfolio: routes /detailed (evidence: `client/src/App.tsx`)
- App router → Not found page: fallback route (evidence: `client/src/App.tsx`)
- App router → Query client: provides queries (evidence: `client/src/App.tsx`)
- App router → Toast renderer: renders notices (evidence: `client/src/App.tsx`)
- App router → Usage analytics: renders analytics (evidence: `client/src/App.tsx`)
- Express host → API routes: registers routes (evidence: `server/index.ts`)
- Express host → Production static host: serves production (evidence: `server/index.ts`)
- Express host → Development Vite host: sets up development (evidence: `server/index.ts`)
- API routes → User storage: uses storage (evidence: `server/routes.ts`)
- Development Vite host → Vite configuration: loads config (evidence: `server/vite.ts`)
- Vite configuration → Social image tags: registers plugin (evidence: `vite.config.ts`)
