# ryancharita/my-portfolio-v2 architecture

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

- Interactive diagram: https://gitdiagram.com/ryancharita/my-portfolio-v2
- Repository: https://github.com/ryancharita/my-portfolio-v2

## Overview

This is a personal portfolio site: visitors browse the developer’s introduction, selected work, capabilities and experience, then find contact links. The Next.js home page composes those sections; a shared layout provides navigation, theme behavior and footer. Profile content supplies most displayed copy, and a separate route renders the social preview image. Edges reflect the excerpts and SOURCE INDEX references; unsampled component behavior is not inferred.

Main entry points: [`content/profile.ts`](https://github.com/ryancharita/my-portfolio-v2/blob/main/content/profile.ts) (Portfolio Content), [`app/page.tsx`](https://github.com/ryancharita/my-portfolio-v2/blob/main/app/page.tsx) (Home Page), [`components/featured-work.tsx`](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/featured-work.tsx) (Featured Work), [`components/icons.tsx`](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/icons.tsx) (Icon Set)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Page Composition"]
  node_home["Home Page<br/>[page.tsx]"]
  node_hero["Hero<br/>[hero.tsx]"]
  node_work["Featured Work<br/>[featured-work.tsx]"]
  node_capabilities["Capabilities<br/>[capabilities.tsx]"]
  node_experience["Experience<br/>[experience.tsx]"]
  node_contact["Contact<br/>[contact.tsx]"]
end

subgraph group_shell["Site Shell"]
  node_layout["Root Layout<br/>[layout.tsx]"]
  node_nav["Navigation<br/>[nav.tsx]"]
  node_theme["Theme Toggle<br/>[theme-toggle.tsx]"]
  node_footer["Footer<br/>[footer.tsx]"]
  node_grid["Grid Spotlight<br/>[grid-spotlight.tsx]"]
  node_inline["Inline Script<br/>[inline-script.tsx]"]
end

subgraph group_support["Content and UI Support"]
  node_profile["Portfolio Content<br/>[profile.ts]"]
  node_sectionheader["Section Header<br/>[section-header.tsx]"]
  node_icons["Icon Set<br/>[icons.tsx]"]
  node_copy["Copy Email"]
  node_asset["Asset Helper<br/>[asset.ts]"]
  node_themeutil["Theme Script<br/>[theme.ts]"]
  node_og["Social Preview Route<br/>[route.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_work
node_home -->|"renders"| node_capabilities
node_home -->|"renders"| node_experience
node_home -->|"renders"| node_contact
node_layout -->|"renders"| node_nav
node_layout -->|"renders"| node_footer
node_layout -->|"renders"| node_grid
node_layout -->|"renders"| node_inline
node_nav -->|"renders"| node_theme
node_nav -->|"reads navigation and profile"| node_profile
node_hero -->|"reads hero and profile"| node_profile
node_work -->|"reads work"| node_profile
node_work -->|"resolves images"| node_asset
node_work -->|"uses icon"| node_icons
node_work -->|"renders header"| node_sectionheader
node_capabilities -->|"reads capabilities"| node_profile
node_capabilities -->|"renders header"| node_sectionheader
node_experience -->|"reads experience"| node_profile
node_experience -->|"renders header"| node_sectionheader
node_contact -->|"reads contact details"| node_profile
node_contact -->|"renders button"| node_copy
node_contact -->|"uses icons"| node_icons
node_copy -->|"uses icons"| node_icons
node_theme -->|"uses theme key"| node_themeutil
node_theme -->|"uses icons"| node_icons
node_footer -->|"reads profile"| node_profile
node_footer -->|"uses icons"| node_icons
node_inline -->|"applies script"| node_themeutil
node_og -->|"reads preview content"| node_profile

click node_home "https://github.com/ryancharita/my-portfolio-v2/blob/main/app/page.tsx"
click node_hero "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/hero.tsx"
click node_work "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/featured-work.tsx"
click node_capabilities "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/capabilities.tsx"
click node_experience "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/experience.tsx"
click node_contact "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/contact.tsx"
click node_layout "https://github.com/ryancharita/my-portfolio-v2/blob/main/app/layout.tsx"
click node_nav "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/nav.tsx"
click node_theme "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/theme-toggle.tsx"
click node_footer "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/footer.tsx"
click node_grid "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/grid-spotlight.tsx"
click node_inline "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/inline-script.tsx"
click node_profile "https://github.com/ryancharita/my-portfolio-v2/blob/main/content/profile.ts"
click node_sectionheader "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/section-header.tsx"
click node_icons "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/icons.tsx"
click node_copy "https://github.com/ryancharita/my-portfolio-v2/blob/main/components/copy-email-button.tsx"
click node_asset "https://github.com/ryancharita/my-portfolio-v2/blob/main/lib/asset.ts"
click node_themeutil "https://github.com/ryancharita/my-portfolio-v2/blob/main/lib/theme.ts"
click node_og "https://github.com/ryancharita/my-portfolio-v2/blob/main/app/og.png/route.tsx"

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_home,node_hero,node_work,node_capabilities,node_experience,node_contact toneBlue
class node_layout,node_nav,node_theme,node_footer,node_grid,node_inline toneAmber
class node_profile,node_sectionheader,node_icons,node_copy,node_asset,node_themeutil,node_og toneMint
class node_visitor toneIndigo
```

## Components

### Page Composition

- [Home Page](https://github.com/ryancharita/my-portfolio-v2/blob/main/app/page.tsx): `app/page.tsx`
- [Hero](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/hero.tsx): `components/hero.tsx`
- [Featured Work](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/featured-work.tsx): `components/featured-work.tsx`
- [Capabilities](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/capabilities.tsx): `components/capabilities.tsx`
- [Experience](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/experience.tsx): `components/experience.tsx`
- [Contact](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/contact.tsx): `components/contact.tsx`

### Site Shell

- [Root Layout](https://github.com/ryancharita/my-portfolio-v2/blob/main/app/layout.tsx): `app/layout.tsx`
- [Navigation](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/nav.tsx): `components/nav.tsx`
- [Theme Toggle](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/theme-toggle.tsx): `components/theme-toggle.tsx`
- [Footer](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/footer.tsx): `components/footer.tsx`
- [Grid Spotlight](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/grid-spotlight.tsx): `components/grid-spotlight.tsx`
- [Inline Script](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/inline-script.tsx): `components/inline-script.tsx`

### Content and UI Support

- [Portfolio Content](https://github.com/ryancharita/my-portfolio-v2/blob/main/content/profile.ts): `content/profile.ts`
- [Section Header](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/section-header.tsx): `components/section-header.tsx`
- [Icon Set](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/icons.tsx): `components/icons.tsx`
- [Copy Email](https://github.com/ryancharita/my-portfolio-v2/blob/main/components/copy-email-button.tsx): `components/copy-email-button.tsx`
- [Asset Helper](https://github.com/ryancharita/my-portfolio-v2/blob/main/lib/asset.ts): `lib/asset.ts`
- [Theme Script](https://github.com/ryancharita/my-portfolio-v2/blob/main/lib/theme.ts): `lib/theme.ts`
- [Social Preview Route](https://github.com/ryancharita/my-portfolio-v2/blob/main/app/og.png/route.tsx): `app/og.png/route.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Home Page: opens (evidence: `README.md`)
- Home Page → Hero: renders (evidence: `app/page.tsx`)
- Home Page → Featured Work: renders (evidence: `app/page.tsx`)
- Home Page → Capabilities: renders (evidence: `app/page.tsx`)
- Home Page → Experience: renders (evidence: `app/page.tsx`)
- Home Page → Contact: renders (evidence: `app/page.tsx`)
- Root Layout → Navigation: renders (evidence: `app/layout.tsx`)
- Root Layout → Footer: renders (evidence: `app/layout.tsx`)
- Root Layout → Grid Spotlight: renders (evidence: `app/layout.tsx`)
- Root Layout → Inline Script: renders (evidence: `app/layout.tsx`)
- Navigation → Theme Toggle: renders (evidence: `components/nav.tsx`)
- Navigation → Portfolio Content: reads navigation and profile (evidence: `components/nav.tsx`)
- Hero → Portfolio Content: reads hero and profile (evidence: `components/hero.tsx`)
- Featured Work → Portfolio Content: reads work (evidence: `components/featured-work.tsx`)
- Featured Work → Asset Helper: resolves images (evidence: `components/featured-work.tsx`)
- Featured Work → Icon Set: uses icon (evidence: `components/featured-work.tsx`)
- Featured Work → Section Header: renders header (evidence: `components/featured-work.tsx`)
- Capabilities → Portfolio Content: reads capabilities (evidence: `components/capabilities.tsx`)
- Capabilities → Section Header: renders header (evidence: `components/capabilities.tsx`)
- Experience → Portfolio Content: reads experience (evidence: `components/experience.tsx`)
- Experience → Section Header: renders header (evidence: `components/experience.tsx`)
- Contact → Portfolio Content: reads contact details (evidence: `components/contact.tsx`)
- Contact → Copy Email: renders button (evidence: `components/contact.tsx`)
- Contact → Icon Set: uses icons (evidence: `components/contact.tsx`)
- Copy Email → Icon Set: uses icons (evidence: `components/copy-email-button.tsx`)
- Theme Toggle → Theme Script: uses theme key (evidence: `components/theme-toggle.tsx`)
- Theme Toggle → Icon Set: uses icons (evidence: `components/theme-toggle.tsx`)
- Footer → Portfolio Content: reads profile (evidence: `components/footer.tsx`)
- Footer → Icon Set: uses icons (evidence: `components/footer.tsx`)
- Inline Script → Theme Script: applies script (evidence: `app/layout.tsx`)
- Social Preview Route → Portfolio Content: reads preview content (evidence: `app/og.png/route.tsx`)
