# yashrai0/portfolio architecture

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

## Overview

This repository implements a personal developer portfolio site, not the showcased SaaS products themselves. Visitors enter the home page, browse profile and project sections, use the FAQ or chat assistant, and can follow contact links. The page composes the portfolio sections; the chat widget sends messages to a server route. The sampled sources show layout metadata and structured-data generation as an internal presentation layer. Other component-to-component links are included only where the source index or excerpts establish them; the chat route’s downstream behavior is not inferred.

Main entry points: [`src/app/page.tsx`](https://github.com/yashrai0/portfolio/blob/main/src/app/page.tsx) (Home Page), [`src/app/layout.tsx`](https://github.com/yashrai0/portfolio/blob/main/src/app/layout.tsx) (Root Layout), [`src/components/footer.tsx`](https://github.com/yashrai0/portfolio/blob/main/src/components/footer.tsx) (Footer), [`src/components/chat-widget.tsx`](https://github.com/yashrai0/portfolio/blob/main/src/components/chat-widget.tsx) (Chat Widget)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Site Shell"]
  node_home["Home Page<br/>[page.tsx]"]
  node_layout["Root Layout<br/>[layout.tsx]"]
  node_header["Navigation<br/>[header.tsx]"]
  node_footer["Footer<br/>[footer.tsx]"]
  node_backtop["Back to Top<br/>[back-to-top.tsx]"]
end

subgraph group_portfolio["Portfolio Content"]
  node_hero["Introduction<br/>[hero.tsx]"]
  node_social["Social Proof<br/>[social-proof.tsx]"]
  node_projects["Projects<br/>[projects.tsx]"]
  node_features["Skills and Features<br/>[features.tsx]"]
  node_certifications["Certifications<br/>[certifications.tsx]"]
  node_achievements["Achievements<br/>[achievements.tsx]"]
  node_whychoose["Why Choose<br/>[why-choose.tsx]"]
  node_journey["Career Journey<br/>[journey.tsx]"]
  node_stats["Statistics<br/>[stats.tsx]"]
  node_process["Process<br/>[process.tsx]"]
end

subgraph group_engagement["Visitor Engagement"]
  node_faq["FAQ<br/>[faq.tsx]"]
  node_contact["Contact CTA<br/>[cta-section.tsx]"]
  node_chat["Chat Widget<br/>[chat-widget.tsx]"]
  node_chatapi["Chat API Route<br/>[route.ts]"]
  node_cursor["Custom Cursor<br/>[custom-cursor.tsx]"]
end

subgraph group_metadata["Metadata and SEO"]
  node_structured["Structured Data<br/>[structured-data.ts]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"opens"| node_home
node_layout -->|"wraps"| node_home
node_home -->|"renders"| node_header
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_social
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_features
node_home -->|"renders"| node_certifications
node_home -->|"renders"| node_achievements
node_home -->|"renders"| node_whychoose
node_home -->|"renders"| node_journey
node_home -->|"renders"| node_faq
node_home -->|"renders"| node_contact
node_home -->|"renders"| node_footer
node_home -->|"renders"| node_chat
node_footer -->|"uses"| node_backtop
node_home -->|"generates FAQ schema"| node_structured
node_layout -->|"generates site schemas"| node_structured
node_chat -->|"POSTs message"| node_chatapi
node_visitor -.->|"follows contact links"| node_contact

click node_home "https://github.com/yashrai0/portfolio/blob/main/src/app/page.tsx"
click node_layout "https://github.com/yashrai0/portfolio/blob/main/src/app/layout.tsx"
click node_header "https://github.com/yashrai0/portfolio/blob/main/src/components/header.tsx"
click node_footer "https://github.com/yashrai0/portfolio/blob/main/src/components/footer.tsx"
click node_backtop "https://github.com/yashrai0/portfolio/blob/main/src/components/back-to-top.tsx"
click node_hero "https://github.com/yashrai0/portfolio/blob/main/src/components/hero.tsx"
click node_social "https://github.com/yashrai0/portfolio/blob/main/src/components/social-proof.tsx"
click node_projects "https://github.com/yashrai0/portfolio/blob/main/src/components/projects.tsx"
click node_features "https://github.com/yashrai0/portfolio/blob/main/src/components/features.tsx"
click node_certifications "https://github.com/yashrai0/portfolio/blob/main/src/components/certifications.tsx"
click node_achievements "https://github.com/yashrai0/portfolio/blob/main/src/components/achievements.tsx"
click node_whychoose "https://github.com/yashrai0/portfolio/blob/main/src/components/why-choose.tsx"
click node_journey "https://github.com/yashrai0/portfolio/blob/main/src/components/journey.tsx"
click node_stats "https://github.com/yashrai0/portfolio/blob/main/src/components/stats.tsx"
click node_process "https://github.com/yashrai0/portfolio/blob/main/src/components/process.tsx"
click node_faq "https://github.com/yashrai0/portfolio/blob/main/src/components/faq.tsx"
click node_contact "https://github.com/yashrai0/portfolio/blob/main/src/components/cta-section.tsx"
click node_chat "https://github.com/yashrai0/portfolio/blob/main/src/components/chat-widget.tsx"
click node_chatapi "https://github.com/yashrai0/portfolio/blob/main/src/app/api/chat/route.ts"
click node_cursor "https://github.com/yashrai0/portfolio/blob/main/src/components/custom-cursor.tsx"
click node_structured "https://github.com/yashrai0/portfolio/blob/main/src/lib/structured-data.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_home,node_layout,node_header,node_footer,node_backtop toneBlue
class node_hero,node_social,node_projects,node_features,node_certifications,node_achievements,node_whychoose,node_journey,node_stats,node_process toneAmber
class node_faq,node_contact,node_chat,node_chatapi,node_cursor toneMint
class node_structured toneRose
class node_visitor toneIndigo
```

## Components

### Site Shell

- [Home Page](https://github.com/yashrai0/portfolio/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Root Layout](https://github.com/yashrai0/portfolio/blob/main/src/app/layout.tsx): `src/app/layout.tsx`
- [Navigation](https://github.com/yashrai0/portfolio/blob/main/src/components/header.tsx): `src/components/header.tsx`
- [Footer](https://github.com/yashrai0/portfolio/blob/main/src/components/footer.tsx): `src/components/footer.tsx`
- [Back to Top](https://github.com/yashrai0/portfolio/blob/main/src/components/back-to-top.tsx): `src/components/back-to-top.tsx`

### Portfolio Content

- [Introduction](https://github.com/yashrai0/portfolio/blob/main/src/components/hero.tsx): `src/components/hero.tsx`
- [Social Proof](https://github.com/yashrai0/portfolio/blob/main/src/components/social-proof.tsx): `src/components/social-proof.tsx`
- [Projects](https://github.com/yashrai0/portfolio/blob/main/src/components/projects.tsx): `src/components/projects.tsx`
- [Skills and Features](https://github.com/yashrai0/portfolio/blob/main/src/components/features.tsx): `src/components/features.tsx`
- [Certifications](https://github.com/yashrai0/portfolio/blob/main/src/components/certifications.tsx): `src/components/certifications.tsx`
- [Achievements](https://github.com/yashrai0/portfolio/blob/main/src/components/achievements.tsx): `src/components/achievements.tsx`
- [Why Choose](https://github.com/yashrai0/portfolio/blob/main/src/components/why-choose.tsx): `src/components/why-choose.tsx`
- [Career Journey](https://github.com/yashrai0/portfolio/blob/main/src/components/journey.tsx): `src/components/journey.tsx`
- [Statistics](https://github.com/yashrai0/portfolio/blob/main/src/components/stats.tsx): `src/components/stats.tsx`
- [Process](https://github.com/yashrai0/portfolio/blob/main/src/components/process.tsx): `src/components/process.tsx`

### Visitor Engagement

- [FAQ](https://github.com/yashrai0/portfolio/blob/main/src/components/faq.tsx): `src/components/faq.tsx`
- [Contact CTA](https://github.com/yashrai0/portfolio/blob/main/src/components/cta-section.tsx): `src/components/cta-section.tsx`
- [Chat Widget](https://github.com/yashrai0/portfolio/blob/main/src/components/chat-widget.tsx): `src/components/chat-widget.tsx`
- [Chat API Route](https://github.com/yashrai0/portfolio/blob/main/src/app/api/chat/route.ts): `src/app/api/chat/route.ts`
- [Custom Cursor](https://github.com/yashrai0/portfolio/blob/main/src/components/custom-cursor.tsx): `src/components/custom-cursor.tsx`

### Metadata and SEO

- [Structured Data](https://github.com/yashrai0/portfolio/blob/main/src/lib/structured-data.ts): `src/lib/structured-data.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Home Page: opens
- Root Layout → Home Page: wraps (evidence: `src/app/layout.tsx`)
- Home Page → Navigation: renders (evidence: `src/app/page.tsx`)
- Home Page → Introduction: renders (evidence: `src/app/page.tsx`)
- Home Page → Social Proof: renders (evidence: `src/app/page.tsx`)
- Home Page → Projects: renders (evidence: `src/app/page.tsx`)
- Home Page → Skills and Features: renders (evidence: `src/app/page.tsx`)
- Home Page → Certifications: renders (evidence: `src/app/page.tsx`)
- Home Page → Achievements: renders (evidence: `src/app/page.tsx`)
- Home Page → Why Choose: renders (evidence: `src/app/page.tsx`)
- Home Page → Career Journey: renders (evidence: `src/app/page.tsx`)
- Home Page → FAQ: renders (evidence: `src/app/page.tsx`)
- Home Page → Contact CTA: renders (evidence: `src/app/page.tsx`)
- Home Page → Footer: renders (evidence: `src/app/page.tsx`)
- Home Page → Chat Widget: renders (evidence: `src/app/page.tsx`)
- Footer → Back to Top: uses (evidence: `src/components/footer.tsx`)
- Home Page → Structured Data: generates FAQ schema (evidence: `src/app/page.tsx`)
- Root Layout → Structured Data: generates site schemas (evidence: `src/app/layout.tsx`)
- Chat Widget → Chat API Route: POSTs message (evidence: `src/components/chat-widget.tsx`)
- Visitor → Contact CTA: follows contact links
