# varshi000/developer-portfolio architecture

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

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

## Overview

This is a JSON-driven animated developer portfolio. Visitors arrive at the assembled page, browse profile, skills, projects, experience and education, then contact the owner or follow external project/social links. Portfolio content is typed and exported by a shared data layer; section components render it with reusable UI and reduced-motion behavior. README documents the full section set; some wiring and sections were not sampled, so those links are limited to documented assembly and indexed references.

Main entry points: [`src/app/page.tsx`](https://github.com/varshi000/developer-portfolio/blob/main/src/app/page.tsx) (Portfolio page), [`src/lib/data.ts`](https://github.com/varshi000/developer-portfolio/blob/main/src/lib/data.ts) (Typed data exports), [`src/components/sections/ContactSection.tsx`](https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/ContactSection.tsx) (Contact form), [`src/hooks/useReducedMotion.ts`](https://github.com/varshi000/developer-portfolio/blob/main/src/hooks/useReducedMotion.ts) (Motion preference)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Page assembly"]
  node_page["Portfolio page<br/>[page.tsx]"]
  node_metadata["SEO and layout<br/>[layout.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_content_data["JSON content"]
  node_data_api["Typed data exports<br/>[data.ts]"]
  node_portfolio_types["Portfolio types<br/>[portfolio.ts]"]
end

subgraph group_sections["Portfolio sections"]
  node_hero["Hero<br/>[HeroSection.tsx]"]
  node_about["About<br/>[AboutSection.tsx]"]
  node_skills["Skills<br/>[SkillsSection.tsx]"]
  node_projects["Projects browser"]
  node_project_modal["Project details<br/>[ProjectModal.tsx]"]
  node_experience["Experience timeline"]
  node_education["Education"]
  node_contact["Contact form<br/>[ContactSection.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_footer["Footer and socials<br/>[Footer.tsx]"]
end

subgraph group_ui["Shared interface"]
  node_ui_components["Reusable UI"]
  node_motion_pref["Motion preference"]
  node_class_utils["Class utilities<br/>[utils.ts]"]
end

node_visitor(("Visitor"))
node_mail_client["Visitor email client"]
node_portfolio_links["External project and social sites"]

node_visitor -.->|"opens"| node_page
node_page -.->|"uses layout"| node_metadata
node_page -.->|"assembles sections"| node_hero
node_page -.->|"assembles sections"| node_about
node_page -.->|"assembles sections"| node_skills
node_page -.->|"assembles sections"| node_projects
node_page -.->|"assembles sections"| node_experience
node_page -.->|"assembles sections"| node_education
node_page -.->|"assembles sections"| node_contact
node_page -.->|"assembles layout"| node_navbar
node_page -.->|"assembles layout"| node_footer
node_data_api -->|"imports JSON"| node_content_data
node_data_api -->|"types exports"| node_portfolio_types
node_hero -->|"reads profile"| node_data_api
node_about -.->|"reads biography"| node_data_api
node_skills -->|"reads skills"| node_data_api
node_projects -->|"reads projects"| node_data_api
node_projects -->|"opens details"| node_project_modal
node_project_modal -->|"links to projects"| node_portfolio_links
node_experience -->|"reads timeline"| node_data_api
node_education -.->|"reads education"| node_data_api
node_contact -->|"reads socials"| node_data_api
node_contact -->|"opens mailto"| node_mail_client
node_contact -->|"links socials"| node_portfolio_links
node_hero -->|"checks preference"| node_motion_pref
node_skills -->|"checks preference"| node_motion_pref
node_projects -->|"checks preference"| node_motion_pref
node_contact -->|"checks preference"| node_motion_pref
node_experience -->|"checks preference"| node_motion_pref
node_ui_components -.->|"merges classes"| node_class_utils

click node_page "https://github.com/varshi000/developer-portfolio/blob/main/src/app/page.tsx"
click node_metadata "https://github.com/varshi000/developer-portfolio/blob/main/src/app/layout.tsx"
click node_content_data "https://github.com/varshi000/developer-portfolio/tree/main/src/data"
click node_data_api "https://github.com/varshi000/developer-portfolio/blob/main/src/lib/data.ts"
click node_portfolio_types "https://github.com/varshi000/developer-portfolio/blob/main/src/types/portfolio.ts"
click node_hero "https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/HeroSection.tsx"
click node_about "https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/AboutSection.tsx"
click node_skills "https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/SkillsSection.tsx"
click node_projects "https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/ProjectsSection.tsx"
click node_project_modal "https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/ProjectModal.tsx"
click node_experience "https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/ExperienceSection.tsx"
click node_education "https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/EducationSection.tsx"
click node_contact "https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/ContactSection.tsx"
click node_navbar "https://github.com/varshi000/developer-portfolio/blob/main/src/components/layout/Navbar.tsx"
click node_footer "https://github.com/varshi000/developer-portfolio/blob/main/src/components/layout/Footer.tsx"
click node_ui_components "https://github.com/varshi000/developer-portfolio/tree/main/src/components/ui"
click node_motion_pref "https://github.com/varshi000/developer-portfolio/blob/main/src/hooks/useReducedMotion.ts"
click node_class_utils "https://github.com/varshi000/developer-portfolio/blob/main/src/lib/utils.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_page,node_metadata,node_mail_client toneBlue
class node_content_data,node_data_api,node_portfolio_types toneAmber
class node_hero,node_about,node_skills,node_projects,node_project_modal,node_experience,node_education,node_contact,node_navbar,node_footer toneMint
class node_ui_components,node_motion_pref,node_class_utils toneRose
class node_visitor,node_portfolio_links toneIndigo
```

## Components

### Page assembly

- [Portfolio page](https://github.com/varshi000/developer-portfolio/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [SEO and layout](https://github.com/varshi000/developer-portfolio/blob/main/src/app/layout.tsx): `src/app/layout.tsx`

### Portfolio content

- [JSON content](https://github.com/varshi000/developer-portfolio/tree/main/src/data): `src/data`
- [Typed data exports](https://github.com/varshi000/developer-portfolio/blob/main/src/lib/data.ts): `src/lib/data.ts`
- [Portfolio types](https://github.com/varshi000/developer-portfolio/blob/main/src/types/portfolio.ts): `src/types/portfolio.ts`

### Portfolio sections

- [Hero](https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/HeroSection.tsx): `src/components/sections/HeroSection.tsx`
- [About](https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/AboutSection.tsx): `src/components/sections/AboutSection.tsx`
- [Skills](https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/SkillsSection.tsx): `src/components/sections/SkillsSection.tsx`
- [Projects browser](https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/ProjectsSection.tsx): `src/components/sections/ProjectsSection.tsx`
- [Project details](https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/ProjectModal.tsx): `src/components/sections/ProjectModal.tsx`
- [Experience timeline](https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/ExperienceSection.tsx): `src/components/sections/ExperienceSection.tsx`
- [Education](https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/EducationSection.tsx): `src/components/sections/EducationSection.tsx`
- [Contact form](https://github.com/varshi000/developer-portfolio/blob/main/src/components/sections/ContactSection.tsx): `src/components/sections/ContactSection.tsx`
- [Navigation](https://github.com/varshi000/developer-portfolio/blob/main/src/components/layout/Navbar.tsx): `src/components/layout/Navbar.tsx`
- [Footer and socials](https://github.com/varshi000/developer-portfolio/blob/main/src/components/layout/Footer.tsx): `src/components/layout/Footer.tsx`

### Shared interface

- [Reusable UI](https://github.com/varshi000/developer-portfolio/tree/main/src/components/ui): `src/components/ui`
- [Motion preference](https://github.com/varshi000/developer-portfolio/blob/main/src/hooks/useReducedMotion.ts): `src/hooks/useReducedMotion.ts`
- [Class utilities](https://github.com/varshi000/developer-portfolio/blob/main/src/lib/utils.ts): `src/lib/utils.ts`

### Other components

- **Visitor**
- **Visitor email client**
- **External project and social sites**

## Connections

- Visitor → Portfolio page: opens (evidence: `README.md`)
- Portfolio page → SEO and layout: uses layout (evidence: `README.md`)
- Portfolio page → Hero: assembles sections (evidence: `README.md`)
- Portfolio page → About: assembles sections (evidence: `README.md`)
- Portfolio page → Skills: assembles sections (evidence: `README.md`)
- Portfolio page → Projects browser: assembles sections (evidence: `README.md`)
- Portfolio page → Experience timeline: assembles sections (evidence: `README.md`)
- Portfolio page → Education: assembles sections (evidence: `README.md`)
- Portfolio page → Contact form: assembles sections (evidence: `README.md`)
- Portfolio page → Navigation: assembles layout (evidence: `README.md`)
- Portfolio page → Footer and socials: assembles layout (evidence: `README.md`)
- Typed data exports → JSON content: imports JSON (evidence: `src/lib/data.ts`)
- Typed data exports → Portfolio types: types exports (evidence: `src/lib/data.ts`)
- Hero → Typed data exports: reads profile (evidence: `src/components/sections/HeroSection.tsx`)
- About → Typed data exports: reads biography
- Skills → Typed data exports: reads skills (evidence: `src/components/sections/SkillsSection.tsx`)
- Projects browser → Typed data exports: reads projects (evidence: `src/components/sections/ProjectsSection.tsx`)
- Projects browser → Project details: opens details (evidence: `src/components/sections/ProjectsSection.tsx`)
- Project details → External project and social sites: links to projects (evidence: `src/components/sections/ProjectModal.tsx`)
- Experience timeline → Typed data exports: reads timeline (evidence: `src/components/sections/ExperienceSection.tsx`)
- Education → Typed data exports: reads education
- Contact form → Typed data exports: reads socials (evidence: `src/components/sections/ContactSection.tsx`)
- Contact form → Visitor email client: opens mailto (evidence: `src/components/sections/ContactSection.tsx`)
- Contact form → External project and social sites: links socials (evidence: `src/components/sections/ContactSection.tsx`)
- Hero → Motion preference: checks preference (evidence: `src/components/sections/HeroSection.tsx`)
- Skills → Motion preference: checks preference (evidence: `src/components/sections/SkillsSection.tsx`)
- Projects browser → Motion preference: checks preference (evidence: `src/components/sections/ProjectsSection.tsx`)
- Contact form → Motion preference: checks preference (evidence: `src/components/sections/ContactSection.tsx`)
- Experience timeline → Motion preference: checks preference (evidence: `src/components/sections/ExperienceSection.tsx`)
- Reusable UI → Class utilities: merges classes (evidence: `src/components/ui/Button.tsx`)
