# itzv07/venkatesherla-portfolio architecture

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

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

## Overview

#### Purpose and entry points
This is a TypeScript personal portfolio SPA with an Express backend for AI recruiter chat and contact delivery. Browser bootstrapping flows from `index.html` to `index.tsx`, which mounts `App.tsx`. The server entry point is `server.ts`; frontend build/runtime configuration is in `vite.config.ts`.

#### Application composition
`App.tsx` is the page-level orchestrator, assembling the portfolio sections, global UI state, and interactive overlays. Primary content is componentized by professional-profile domain:
- Navigation and introduction: `src/components/Navbar.tsx`, `src/components/Hero.tsx`
- Portfolio narrative and credentials: `src/components/About.tsx`, `src/components/Experience.tsx`, `src/components/Skills.tsx`
- Work and accomplishments: `src/components/Projects.tsx`, `src/components/Certifications.tsx`, `src/components/Achievements.tsx`
- Career actions: `src/components/ContactSection.tsx`, `src/components/ResumeModal.tsx`

#### Content model boundary
Portfolio facts, such as skills, projects, experience, certifications, and achievements, are centralized as frontend data in `src/data/portfolioData.ts`, with shared shape definitions in `src/types.ts`. Display components should consume this model rather than duplicating profile content, separating editorial updates from presentation.

#### Interaction and navigation layer
The site offers non-content interaction systems beyond scrolling: command-based navigation, resume access, theme/UI effects, and sound feedback. The principal boundaries are `src/components/CommandPalette.tsx`, `src/components/ResumeModal.tsx`, and `src/utils/sound.ts`. Visual behavior is implemented client-side through `src/components/BackgroundEffect.tsx`, `src/components/CustomCursor.tsx`, and `src/components/ScrollProgressBar.tsx`.

#### Recruiter AI flow
`src/components/AIRecruiterChatbot.tsx` collects conversational recruiter queries and posts them to the backend’s `/api/recruiter-chat` endpoint. `server.ts` owns API routing and keeps provider credentials server-side; `services/gemini.ts` is the Gemini integration boundary. The external dependency is Google Gemini through `@google/genai`, authenticated with `GEMINI_API_KEY`; the browser should not call Gemini directly.

#### Contact and service integration
The contact UI in `src/components/ContactSection.tsx` submits to `/api/contact` managed by `server.ts`. The backend is responsible for email transport and credentials, using configured SMTP/Gmail values such as `SMTP_USER` and `SMTP_PASS`. Environment-secret placeholders belong in `.env.example`; deployment must inject actual values.

#### Runtime and deployment shape
The frontend runs as a React 19/Vite application with global styling in `index.css`. The backend is Node.js with Express 5 and TypeScript, exposing health, chat, and contact API endpoints from `server.ts`. Development uses Vite-oriented scripts, while production builds the client and starts the Express process; package/runtime declarations are in `package.json` and `tsconfig.json`.

Main entry points: [`App.tsx`](https://github.com/itzv07/venkatesherla-portfolio/blob/main/App.tsx) (App), [`server.ts`](https://github.com/itzv07/venkatesherla-portfolio/blob/main/server.ts) (Express API server), [`index.tsx`](https://github.com/itzv07/venkatesherla-portfolio/blob/main/index.tsx) (React bootstrap), [`package.json`](https://github.com/itzv07/venkatesherla-portfolio/blob/main/package.json) (Package runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["React/Vite Client"]
  node_html["HTML entry<br/>Vite entry<br/>[index.html]"]
  node_bootstrap["React bootstrap<br/>client entry<br/>[index.tsx]"]
  node_app["App<br/>page orchestrator<br/>[App.tsx]"]
  node_sections["Portfolio sections<br/>profile UI"]
  node_contact["Contact section<br/>contact UI<br/>[ContactSection.tsx]"]
  node_chatbot["AI recruiter chatbot<br/>chat UI"]
  node_command["Command palette<br/>navigation UI<br/>[CommandPalette.tsx]"]
  node_resume["Resume modal<br/>overlay UI<br/>[ResumeModal.tsx]"]
  node_effects["Visual effects<br/>client UI effects"]
  node_portfolio_data[("Portfolio data<br/>content model<br/>[portfolioData.ts]")]
  node_types["Shared types<br/>TypeScript definitions<br/>[types.ts]"]
  node_styles["Global styles<br/>CSS<br/>[index.css]"]
  node_vite["Vite configuration<br/>build/runtime config<br/>[vite.config.ts]"]
end

subgraph group_server["Express Backend"]
  node_express{{"Express API server<br/>Node entry and routes<br/>[server.ts]"}}
  node_gemini_service["Gemini service<br/>provider adapter<br/>[gemini.ts]"]
  node_secrets["Environment secrets<br/>runtime configuration<br/>[.env.example]"]
end

subgraph group_external["External Services"]
  node_gemini{{"Google Gemini<br/>AI provider"}}
  node_smtp{{"SMTP/Gmail<br/>email transport"}}
end

node_package["Package runtime<br/>scripts and dependencies<br/>[package.json]"]

node_html -->|"loads"| node_bootstrap
node_bootstrap -->|"mounts"| node_app
node_bootstrap -->|"imports"| node_styles
node_app -->|"composes"| node_sections
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_chatbot
node_app -->|"hosts"| node_command
node_app -->|"hosts"| node_resume
node_app -->|"enables"| node_effects
node_sections -->|"reads profile facts"| node_portfolio_data
node_portfolio_data -->|"uses shapes"| node_types
node_command -.->|"opens"| node_resume
node_chatbot -->|"POST /api/recruiter-chat"| node_express
node_contact -->|"POST /api/contact"| node_express
node_express -->|"routes chat"| node_gemini_service
node_gemini_service -->|"calls @google/genai"| node_gemini
node_express -->|"sends contact email"| node_smtp
node_express -.->|"reads credentials"| node_secrets
node_vite -->|"serves/builds"| node_bootstrap
node_package -.->|"runs client scripts"| node_vite
node_package -.->|"starts production server"| node_express

click node_html "https://github.com/itzv07/venkatesherla-portfolio/blob/main/index.html"
click node_bootstrap "https://github.com/itzv07/venkatesherla-portfolio/blob/main/index.tsx"
click node_app "https://github.com/itzv07/venkatesherla-portfolio/blob/main/App.tsx"
click node_contact "https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/components/ContactSection.tsx"
click node_chatbot "https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/components/AIRecruiterChatbot.tsx"
click node_command "https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/components/CommandPalette.tsx"
click node_resume "https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/components/ResumeModal.tsx"
click node_portfolio_data "https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/data/portfolioData.ts"
click node_types "https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/types.ts"
click node_styles "https://github.com/itzv07/venkatesherla-portfolio/blob/main/index.css"
click node_vite "https://github.com/itzv07/venkatesherla-portfolio/blob/main/vite.config.ts"
click node_express "https://github.com/itzv07/venkatesherla-portfolio/blob/main/server.ts"
click node_gemini_service "https://github.com/itzv07/venkatesherla-portfolio/blob/main/services/gemini.ts"
click node_secrets "https://github.com/itzv07/venkatesherla-portfolio/blob/main/.env.example"
click node_package "https://github.com/itzv07/venkatesherla-portfolio/blob/main/package.json"

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_html,node_bootstrap,node_app,node_sections,node_contact,node_chatbot,node_command,node_resume,node_effects,node_portfolio_data,node_types,node_styles,node_vite toneBlue
class node_express,node_gemini_service,node_secrets toneAmber
class node_gemini,node_smtp toneMint
class node_package toneNeutral
```

## Components

### React/Vite Client

Browser SPA and interactive portfolio UI.

- [HTML entry](https://github.com/itzv07/venkatesherla-portfolio/blob/main/index.html): Vite entry · `index.html`
- [React bootstrap](https://github.com/itzv07/venkatesherla-portfolio/blob/main/index.tsx): client entry · `index.tsx`
- [App](https://github.com/itzv07/venkatesherla-portfolio/blob/main/App.tsx): page orchestrator · Assembles sections, global state, and overlays. · `App.tsx`
- **Portfolio sections**: profile UI · Navigation, intro, narrative, work, and credentials.
- [Contact section](https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/components/ContactSection.tsx): contact UI · `src/components/ContactSection.tsx`
- [AI recruiter chatbot](https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/components/AIRecruiterChatbot.tsx): chat UI · `src/components/AIRecruiterChatbot.tsx`
- [Command palette](https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/components/CommandPalette.tsx): navigation UI · `src/components/CommandPalette.tsx`
- [Resume modal](https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/components/ResumeModal.tsx): overlay UI · `src/components/ResumeModal.tsx`
- **Visual effects**: client UI effects · Background, cursor, scroll progress, and sound feedback.
- [Portfolio data](https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/data/portfolioData.ts): content model · Centralized profile facts for display components. · `src/data/portfolioData.ts`
- [Shared types](https://github.com/itzv07/venkatesherla-portfolio/blob/main/src/types.ts): TypeScript definitions · `src/types.ts`
- [Global styles](https://github.com/itzv07/venkatesherla-portfolio/blob/main/index.css): CSS · `index.css`
- [Vite configuration](https://github.com/itzv07/venkatesherla-portfolio/blob/main/vite.config.ts): build/runtime config · `vite.config.ts`

### Express Backend

Server-side API and secret-bearing integrations.

- [Express API server](https://github.com/itzv07/venkatesherla-portfolio/blob/main/server.ts): Node entry and routes · Exposes health, recruiter chat, and contact endpoints. · `server.ts`
- [Gemini service](https://github.com/itzv07/venkatesherla-portfolio/blob/main/services/gemini.ts): provider adapter · Keeps Gemini credentials and calls server-side. · `services/gemini.ts`
- [Environment secrets](https://github.com/itzv07/venkatesherla-portfolio/blob/main/.env.example): runtime configuration · Deployment injects Gemini and SMTP credentials. · `.env.example`

### External Services

- **Google Gemini**: AI provider
- **SMTP/Gmail**: email transport

### Other components

- [Package runtime](https://github.com/itzv07/venkatesherla-portfolio/blob/main/package.json): scripts and dependencies · `package.json`

## Connections

- HTML entry → React bootstrap: loads
- React bootstrap → App: mounts
- React bootstrap → Global styles: imports
- App → Portfolio sections: composes
- App → Contact section: renders
- App → AI recruiter chatbot: renders
- App → Command palette: hosts
- App → Resume modal: hosts
- App → Visual effects: enables
- Portfolio sections → Portfolio data: reads profile facts
- Portfolio data → Shared types: uses shapes
- Command palette → Resume modal: opens
- AI recruiter chatbot → Express API server: POST /api/recruiter-chat
- Contact section → Express API server: POST /api/contact
- Express API server → Gemini service: routes chat
- Gemini service → Google Gemini: calls @google/genai
- Express API server → SMTP/Gmail: sends contact email
- Express API server → Environment secrets: reads credentials
- Vite configuration → React bootstrap: serves/builds
- Package runtime → Vite configuration: runs client scripts
- Package runtime → Express API server: starts production server
