# bhavadharani412/personal_portfolio_with_digital_twin architecture

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

- Interactive diagram: https://gitdiagram.com/bhavadharani412/personal_portfolio_with_digital_twin
- Repository: https://github.com/bhavadharani412/personal_portfolio_with_digital_twin

## Overview

This repository is an interactive engineering portfolio: visitors browse the developer’s experience, projects, writing, and skills, and can use Bhava 2.0 or the contact form. The React entry point mounts the page; App composes its sections, which read portfolio content from shared data. The README documents the assistant’s edge-AI architecture, but the Worker implementation is not in this repository, and the sampled chat excerpt does not show its request URL or contextual-prompt wiring.

Main entry points: [`src/App.tsx`](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/App.tsx) (Page composition), [`src/data.ts`](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/data.ts) (Portfolio data), [`src/main.tsx`](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/main.tsx) (React entry), [`src/components/MainSections.tsx`](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/MainSections.tsx) (Experience timeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Page presentation"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["Page composition<br/>[App.tsx]"]
  node_boot["Boot screen<br/>[BootScreen.tsx]"]
  node_common["Navigation and hero<br/>[Common.tsx]"]
end

subgraph group_portfolio["Portfolio content"]
  node_journey["Experience timeline<br/>[MainSections.tsx]"]
  node_projects["Featured projects<br/>[MainSections.tsx]"]
  node_writings["Tech writings"]
  node_skills["Skills display"]
  node_content["Portfolio data<br/>[data.ts]"]
  node_types["Content types<br/>[types.ts]"]
end

subgraph group_interaction["Visitor interactions"]
  node_assistant["Bhava assistant<br/>[ChatAndStats.tsx]"]
  node_contact["Contact form<br/>[ChatAndStats.tsx]"]
  node_social["External profiles"]
end

subgraph group_ai["AI service"]
  node_worker{{"Cloudflare Worker"}}
  node_groq{{"Groq inference"}}
end

node_visitor(("Portfolio visitor"))

node_visitor -->|"opens portfolio"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_boot
node_app -->|"renders"| node_common
node_app -->|"renders"| node_journey
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_writings
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_assistant
node_app -->|"renders"| node_contact
node_journey -->|"reads journey"| node_content
node_projects -->|"reads projects"| node_content
node_writings -->|"reads blogs"| node_content
node_skills -->|"reads skills"| node_content
node_content -->|"uses types"| node_types
node_assistant -->|"sends prompts"| node_worker
node_worker -->|"requests inference"| node_groq
node_contact -->|"links profiles"| node_social

click node_entry "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/main.tsx"
click node_app "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/App.tsx"
click node_boot "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/BootScreen.tsx"
click node_common "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/Common.tsx"
click node_journey "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/MainSections.tsx"
click node_projects "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/MainSections.tsx"
click node_writings "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/ContentSections.tsx"
click node_skills "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/ContentSections.tsx"
click node_content "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/data.ts"
click node_types "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/types.ts"
click node_assistant "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/ChatAndStats.tsx"
click node_contact "https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/ChatAndStats.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_entry,node_app,node_boot,node_common toneBlue
class node_journey,node_projects,node_writings,node_skills,node_content,node_types toneAmber
class node_assistant,node_contact,node_social toneMint
class node_worker,node_groq toneRose
class node_visitor toneIndigo
```

## Components

### Page presentation

- [React entry](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/main.tsx): `src/main.tsx`
- [Page composition](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/App.tsx): `src/App.tsx`
- [Boot screen](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/BootScreen.tsx): `src/components/BootScreen.tsx`
- [Navigation and hero](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/Common.tsx): `src/components/Common.tsx`

### Portfolio content

- [Experience timeline](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/MainSections.tsx): `src/components/MainSections.tsx`
- [Featured projects](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/MainSections.tsx): `src/components/MainSections.tsx`
- [Tech writings](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/ContentSections.tsx): `src/components/ContentSections.tsx`
- [Skills display](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/ContentSections.tsx): `src/components/ContentSections.tsx`
- [Portfolio data](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/data.ts): `src/data.ts`
- [Content types](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/types.ts): `src/types.ts`

### Visitor interactions

- [Bhava assistant](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/ChatAndStats.tsx): `src/components/ChatAndStats.tsx`
- [Contact form](https://github.com/bhavadharani412/personal_portfolio_with_digital_twin/blob/main/src/components/ChatAndStats.tsx): `src/components/ChatAndStats.tsx`
- **External profiles**

### AI service

- **Cloudflare Worker**
- **Groq inference**

### Other components

- **Portfolio visitor**

## Connections

- Portfolio visitor → React entry: opens portfolio (evidence: `src/main.tsx`)
- React entry → Page composition: renders (evidence: `src/main.tsx`)
- Page composition → Boot screen: renders (evidence: `src/App.tsx`)
- Page composition → Navigation and hero: renders (evidence: `src/App.tsx`)
- Page composition → Experience timeline: renders (evidence: `src/App.tsx`)
- Page composition → Featured projects: renders (evidence: `src/App.tsx`)
- Page composition → Tech writings: renders (evidence: `src/App.tsx`)
- Page composition → Skills display: renders (evidence: `src/App.tsx`)
- Page composition → Bhava assistant: renders (evidence: `src/App.tsx`)
- Page composition → Contact form: renders (evidence: `src/App.tsx`)
- Experience timeline → Portfolio data: reads journey (evidence: `src/components/MainSections.tsx`)
- Featured projects → Portfolio data: reads projects (evidence: `src/components/MainSections.tsx`)
- Tech writings → Portfolio data: reads blogs (evidence: `src/components/ContentSections.tsx`)
- Skills display → Portfolio data: reads skills (evidence: `src/components/ContentSections.tsx`)
- Portfolio data → Content types: uses types (evidence: `src/data.ts`)
- Bhava assistant → Cloudflare Worker: sends prompts (evidence: `README.md`)
- Cloudflare Worker → Groq inference: requests inference (evidence: `README.md`)
- Contact form → External profiles: links profiles (evidence: `src/components/ChatAndStats.tsx`)
