# souvikpaul07/portfolio architecture

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

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

## Overview

This is a Next.js personal portfolio: visitors browse the developer’s profile, projects, skills, work history, certifications, and contact options; an optional chatbot sends questions to a server API. The page composes the portfolio sections, which draw content from shared static data. The README documents the portfolio’s showcase capabilities; the sampled sources show section rendering and chatbot request dispatch. The chat API’s internals were not shown, so no downstream AI service is inferred.

Main entry points: [`app/page.tsx`](https://github.com/souvikpaul07/portfolio/blob/main/app/page.tsx) (Portfolio page), [`data/portfolio.js`](https://github.com/souvikpaul07/portfolio/blob/main/data/portfolio.js) (Portfolio data), [`components/ui/SectionHeader.jsx`](https://github.com/souvikpaul07/portfolio/blob/main/components/ui/SectionHeader.jsx) (Section heading), [`components/Contact.jsx`](https://github.com/souvikpaul07/portfolio/blob/main/components/Contact.jsx) (Contact section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application Entry"]
  node_home["Portfolio page<br/>[page.tsx]"]
  node_layout["Application layout<br/>[layout.tsx]"]
  node_providers["Theme provider<br/>[providers.tsx]"]
end

subgraph group_showcase["Portfolio Showcase"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_hero["Profile introduction<br/>[Hero.jsx]"]
  node_projects["Project showcase<br/>[Projects.jsx]"]
  node_skills["Technical expertise<br/>[Skills.jsx]"]
  node_experience["Work and education<br/>[Experience.jsx]"]
  node_certifications["Certifications<br/>[Certifications.jsx]"]
  node_footer["Portfolio footer<br/>[Footer.jsx]"]
  node_section_header["Section heading<br/>[SectionHeader.jsx]"]
end

subgraph group_content["Portfolio Content"]
  node_portfolio_data["Portfolio data<br/>[portfolio.js]"]
end

subgraph group_interaction["Visitor Interactions"]
  node_contact["Contact section<br/>[Contact.jsx]"]
  node_chatbot["Chat interface<br/>[Chatbot.jsx]"]
  node_chatapi["Chat API endpoint<br/>[route.ts]"]
end

node_visitor(("Portfolio visitor"))
node_email_client["Visitor email client"]

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_experience
node_home -->|"renders"| node_certifications
node_home -->|"renders"| node_contact
node_home -->|"renders"| node_footer
node_home -->|"renders"| node_chatbot
node_layout -->|"wraps content"| node_providers
node_navbar -->|"reads profile and links"| node_portfolio_data
node_hero -->|"reads profile details"| node_portfolio_data
node_projects -->|"reads project listings"| node_portfolio_data
node_skills -->|"reads skill data"| node_portfolio_data
node_experience -->|"reads work and education"| node_portfolio_data
node_certifications -->|"reads credentials"| node_portfolio_data
node_contact -->|"reads contact details"| node_portfolio_data
node_footer -->|"reads site details"| node_portfolio_data
node_projects -->|"renders"| node_section_header
node_skills -->|"renders"| node_section_header
node_experience -->|"renders"| node_section_header
node_certifications -->|"renders"| node_section_header
node_contact -->|"renders"| node_section_header
node_chatbot -->|"posts question"| node_chatapi
node_contact -->|"opens mailto"| node_email_client

click node_home "https://github.com/souvikpaul07/portfolio/blob/main/app/page.tsx"
click node_layout "https://github.com/souvikpaul07/portfolio/blob/main/app/layout.tsx"
click node_providers "https://github.com/souvikpaul07/portfolio/blob/main/app/providers.tsx"
click node_navbar "https://github.com/souvikpaul07/portfolio/blob/main/components/Navbar.jsx"
click node_hero "https://github.com/souvikpaul07/portfolio/blob/main/components/Hero.jsx"
click node_projects "https://github.com/souvikpaul07/portfolio/blob/main/components/Projects.jsx"
click node_skills "https://github.com/souvikpaul07/portfolio/blob/main/components/Skills.jsx"
click node_experience "https://github.com/souvikpaul07/portfolio/blob/main/components/Experience.jsx"
click node_certifications "https://github.com/souvikpaul07/portfolio/blob/main/components/Certifications.jsx"
click node_contact "https://github.com/souvikpaul07/portfolio/blob/main/components/Contact.jsx"
click node_footer "https://github.com/souvikpaul07/portfolio/blob/main/components/Footer.jsx"
click node_chatbot "https://github.com/souvikpaul07/portfolio/blob/main/components/Chatbot.jsx"
click node_chatapi "https://github.com/souvikpaul07/portfolio/blob/main/app/api/chat/route.ts"
click node_portfolio_data "https://github.com/souvikpaul07/portfolio/blob/main/data/portfolio.js"
click node_section_header "https://github.com/souvikpaul07/portfolio/blob/main/components/ui/SectionHeader.jsx"

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_providers,node_email_client toneBlue
class node_navbar,node_hero,node_projects,node_skills,node_experience,node_certifications,node_footer,node_section_header toneAmber
class node_portfolio_data toneMint
class node_contact,node_chatbot,node_chatapi toneRose
class node_visitor toneIndigo
```

## Components

### Application Entry

- [Portfolio page](https://github.com/souvikpaul07/portfolio/blob/main/app/page.tsx): `app/page.tsx`
- [Application layout](https://github.com/souvikpaul07/portfolio/blob/main/app/layout.tsx): `app/layout.tsx`
- [Theme provider](https://github.com/souvikpaul07/portfolio/blob/main/app/providers.tsx): `app/providers.tsx`

### Portfolio Showcase

- [Navigation](https://github.com/souvikpaul07/portfolio/blob/main/components/Navbar.jsx): `components/Navbar.jsx`
- [Profile introduction](https://github.com/souvikpaul07/portfolio/blob/main/components/Hero.jsx): `components/Hero.jsx`
- [Project showcase](https://github.com/souvikpaul07/portfolio/blob/main/components/Projects.jsx): `components/Projects.jsx`
- [Technical expertise](https://github.com/souvikpaul07/portfolio/blob/main/components/Skills.jsx): `components/Skills.jsx`
- [Work and education](https://github.com/souvikpaul07/portfolio/blob/main/components/Experience.jsx): `components/Experience.jsx`
- [Certifications](https://github.com/souvikpaul07/portfolio/blob/main/components/Certifications.jsx): `components/Certifications.jsx`
- [Portfolio footer](https://github.com/souvikpaul07/portfolio/blob/main/components/Footer.jsx): `components/Footer.jsx`
- [Section heading](https://github.com/souvikpaul07/portfolio/blob/main/components/ui/SectionHeader.jsx): `components/ui/SectionHeader.jsx`

### Portfolio Content

- [Portfolio data](https://github.com/souvikpaul07/portfolio/blob/main/data/portfolio.js): `data/portfolio.js`

### Visitor Interactions

- [Contact section](https://github.com/souvikpaul07/portfolio/blob/main/components/Contact.jsx): `components/Contact.jsx`
- [Chat interface](https://github.com/souvikpaul07/portfolio/blob/main/components/Chatbot.jsx): `components/Chatbot.jsx`
- [Chat API endpoint](https://github.com/souvikpaul07/portfolio/blob/main/app/api/chat/route.ts): `app/api/chat/route.ts`

### Other components

- **Portfolio visitor**
- **Visitor email client**

## Connections

- Portfolio visitor → Portfolio page: opens
- Portfolio page → Navigation: renders (evidence: `app/page.tsx`)
- Portfolio page → Profile introduction: renders (evidence: `app/page.tsx`)
- Portfolio page → Project showcase: renders (evidence: `app/page.tsx`)
- Portfolio page → Technical expertise: renders (evidence: `app/page.tsx`)
- Portfolio page → Work and education: renders (evidence: `app/page.tsx`)
- Portfolio page → Certifications: renders (evidence: `app/page.tsx`)
- Portfolio page → Contact section: renders (evidence: `app/page.tsx`)
- Portfolio page → Portfolio footer: renders (evidence: `app/page.tsx`)
- Portfolio page → Chat interface: renders (evidence: `app/page.tsx`)
- Application layout → Theme provider: wraps content (evidence: `app/layout.tsx`)
- Navigation → Portfolio data: reads profile and links (evidence: `components/Navbar.jsx`)
- Profile introduction → Portfolio data: reads profile details (evidence: `components/Hero.jsx`)
- Project showcase → Portfolio data: reads project listings (evidence: `components/Projects.jsx`)
- Technical expertise → Portfolio data: reads skill data (evidence: `components/Skills.jsx`)
- Work and education → Portfolio data: reads work and education (evidence: `components/Experience.jsx`)
- Certifications → Portfolio data: reads credentials (evidence: `components/Certifications.jsx`)
- Contact section → Portfolio data: reads contact details (evidence: `components/Contact.jsx`)
- Portfolio footer → Portfolio data: reads site details (evidence: `components/Footer.jsx`)
- Project showcase → Section heading: renders (evidence: `components/Projects.jsx`)
- Technical expertise → Section heading: renders (evidence: `components/Skills.jsx`)
- Work and education → Section heading: renders (evidence: `components/Experience.jsx`)
- Certifications → Section heading: renders (evidence: `components/Certifications.jsx`)
- Contact section → Section heading: renders (evidence: `components/Contact.jsx`)
- Chat interface → Chat API endpoint: posts question (evidence: `components/Chatbot.jsx`)
- Contact section → Visitor email client: opens mailto (evidence: `components/Contact.jsx`)
