# micayell/portfolio architecture

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

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

## Overview

Interactive 3D Portfolio serves portfolio content through a Notion-backed site: the home route loads resume and project data, the client presents profile, skills, history, and a 3D project gallery, and visitors can inspect project details or ask the AI assistant questions. The README also documents a custom Notion block parser and a Groq-powered RAG assistant. Source excerpts show the page-to-client and UI composition, but not the chat request implementation, so that link is documented by the README rather than inferred from unsampled code.

Main entry points: [`src/app/ClientPage.tsx`](https://github.com/micayell/portfolio/blob/master/src/app/ClientPage.tsx) (Portfolio Client), [`src/features/common/lib/notion.ts`](https://github.com/micayell/portfolio/blob/master/src/features/common/lib/notion.ts) (Notion Data Parser), [`src/features/chat/components/ChatInterface.tsx`](https://github.com/micayell/portfolio/blob/master/src/features/chat/components/ChatInterface.tsx) (Chat Interface), [`src/app/page.tsx`](https://github.com/micayell/portfolio/blob/master/src/app/page.tsx) (Home Route)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Portfolio Content"]
  node_notion[("Notion CMS")]
  node_notiondata["Notion Data Parser<br/>[notion.ts]"]
  node_mapping["Field Mapping<br/>[notion-mapping.ts]"]
  node_projecttype["Project Model<br/>[project.ts]"]
  node_about["Profile Section<br/>[About.tsx]"]
  node_profiledata["Profile Data<br/>[about.ts]"]
  node_resume["Resume Timeline<br/>[Resume.tsx]"]
  node_skills["Skills Browser<br/>[Skills.tsx]"]
end

subgraph group_experience["Interactive Experience"]
  node_header["Navigation Header<br/>[Header.tsx]"]
  node_intro["Intro Screen<br/>[Intro.tsx]"]
  node_gallery["3D Gallery<br/>[GalleryScene.tsx]"]
  node_projectmodal["Project Details<br/>[ProjectModal.tsx]"]
end

subgraph group_assistant["AI Assistant"]
  node_chatui["Chat Interface<br/>[ChatInterface.tsx]"]
  node_chatmessage["Chat Messages<br/>[ChatMessage.tsx]"]
  node_chatroute["Chat API Route<br/>[route.ts]"]
  node_groq{{"Groq AI"}}
end

subgraph group_platform["App Platform"]
  node_home["Home Route<br/>[page.tsx]"]
  node_client["Portfolio Client<br/>[ClientPage.tsx]"]
  node_projectpage["Project Route<br/>[page.tsx]"]
  node_imageproxy["Notion Image Proxy<br/>[route.ts]"]
  node_layout["App Layout<br/>[AppLayout.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"loads content"| node_notiondata
node_notiondata -->|"queries"| node_notion
node_notiondata -->|"uses mappings"| node_mapping
node_notiondata -->|"creates projects"| node_projecttype
node_home -->|"renders with data"| node_client
node_client -->|"renders"| node_header
node_client -->|"renders"| node_about
node_client -->|"renders"| node_resume
node_client -->|"renders"| node_skills
node_client -->|"renders"| node_intro
node_client -->|"renders"| node_gallery
node_client -->|"renders"| node_projectmodal
node_client -->|"renders"| node_chatui
node_about -->|"reads"| node_profiledata
node_gallery -->|"uses model"| node_projecttype
node_projectmodal -->|"uses model"| node_projecttype
node_chatui -->|"renders"| node_chatmessage
node_chatui -->|"requests answer"| node_chatroute
node_chatroute -->|"calls"| node_groq
node_visitor -.->|"opens project"| node_projectpage
node_projectpage -.->|"loads project"| node_notiondata
node_visitor -.->|"requests image"| node_imageproxy
node_layout -.->|"provides app shell"| node_visitor

click node_home "https://github.com/micayell/portfolio/blob/master/src/app/page.tsx"
click node_notiondata "https://github.com/micayell/portfolio/blob/master/src/features/common/lib/notion.ts"
click node_mapping "https://github.com/micayell/portfolio/blob/master/src/features/common/config/notion-mapping.ts"
click node_projecttype "https://github.com/micayell/portfolio/blob/master/src/features/projects/types/project.ts"
click node_client "https://github.com/micayell/portfolio/blob/master/src/app/ClientPage.tsx"
click node_header "https://github.com/micayell/portfolio/blob/master/src/features/common/components/Header.tsx"
click node_about "https://github.com/micayell/portfolio/blob/master/src/features/about/components/About.tsx"
click node_profiledata "https://github.com/micayell/portfolio/blob/master/src/features/about/data/about.ts"
click node_resume "https://github.com/micayell/portfolio/blob/master/src/features/resume/components/Resume.tsx"
click node_skills "https://github.com/micayell/portfolio/blob/master/src/features/skills/components/Skills.tsx"
click node_intro "https://github.com/micayell/portfolio/blob/master/src/features/home/components/Intro.tsx"
click node_gallery "https://github.com/micayell/portfolio/blob/master/src/features/projects/components/GalleryScene.tsx"
click node_projectmodal "https://github.com/micayell/portfolio/blob/master/src/features/projects/components/ProjectModal.tsx"
click node_chatui "https://github.com/micayell/portfolio/blob/master/src/features/chat/components/ChatInterface.tsx"
click node_chatmessage "https://github.com/micayell/portfolio/blob/master/src/features/chat/components/ChatMessage.tsx"
click node_chatroute "https://github.com/micayell/portfolio/blob/master/src/app/api/chat/route.ts"
click node_projectpage "https://github.com/micayell/portfolio/blob/master/src/app/projects/%5Bid%5D/page.tsx"
click node_imageproxy "https://github.com/micayell/portfolio/blob/master/src/app/api/notion-image-proxy/route.ts"
click node_layout "https://github.com/micayell/portfolio/blob/master/src/features/common/components/AppLayout.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_notion,node_notiondata,node_mapping,node_projecttype,node_about,node_profiledata,node_resume,node_skills toneBlue
class node_header,node_intro,node_gallery,node_projectmodal toneAmber
class node_chatui,node_chatmessage,node_chatroute,node_groq toneMint
class node_home,node_client,node_projectpage,node_imageproxy,node_layout toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio Content

- **Notion CMS**
- [Notion Data Parser](https://github.com/micayell/portfolio/blob/master/src/features/common/lib/notion.ts): `src/features/common/lib/notion.ts`
- [Field Mapping](https://github.com/micayell/portfolio/blob/master/src/features/common/config/notion-mapping.ts): `src/features/common/config/notion-mapping.ts`
- [Project Model](https://github.com/micayell/portfolio/blob/master/src/features/projects/types/project.ts): `src/features/projects/types/project.ts`
- [Profile Section](https://github.com/micayell/portfolio/blob/master/src/features/about/components/About.tsx): `src/features/about/components/About.tsx`
- [Profile Data](https://github.com/micayell/portfolio/blob/master/src/features/about/data/about.ts): `src/features/about/data/about.ts`
- [Resume Timeline](https://github.com/micayell/portfolio/blob/master/src/features/resume/components/Resume.tsx): `src/features/resume/components/Resume.tsx`
- [Skills Browser](https://github.com/micayell/portfolio/blob/master/src/features/skills/components/Skills.tsx): `src/features/skills/components/Skills.tsx`

### Interactive Experience

- [Navigation Header](https://github.com/micayell/portfolio/blob/master/src/features/common/components/Header.tsx): `src/features/common/components/Header.tsx`
- [Intro Screen](https://github.com/micayell/portfolio/blob/master/src/features/home/components/Intro.tsx): `src/features/home/components/Intro.tsx`
- [3D Gallery](https://github.com/micayell/portfolio/blob/master/src/features/projects/components/GalleryScene.tsx): `src/features/projects/components/GalleryScene.tsx`
- [Project Details](https://github.com/micayell/portfolio/blob/master/src/features/projects/components/ProjectModal.tsx): `src/features/projects/components/ProjectModal.tsx`

### AI Assistant

- [Chat Interface](https://github.com/micayell/portfolio/blob/master/src/features/chat/components/ChatInterface.tsx): `src/features/chat/components/ChatInterface.tsx`
- [Chat Messages](https://github.com/micayell/portfolio/blob/master/src/features/chat/components/ChatMessage.tsx): `src/features/chat/components/ChatMessage.tsx`
- [Chat API Route](https://github.com/micayell/portfolio/blob/master/src/app/api/chat/route.ts): `src/app/api/chat/route.ts`
- **Groq AI**

### App Platform

- [Home Route](https://github.com/micayell/portfolio/blob/master/src/app/page.tsx): `src/app/page.tsx`
- [Portfolio Client](https://github.com/micayell/portfolio/blob/master/src/app/ClientPage.tsx): `src/app/ClientPage.tsx`
- [Project Route](https://github.com/micayell/portfolio/blob/master/src/app/projects/%5Bid%5D/page.tsx): `src/app/projects/[id]/page.tsx`
- [Notion Image Proxy](https://github.com/micayell/portfolio/blob/master/src/app/api/notion-image-proxy/route.ts): `src/app/api/notion-image-proxy/route.ts`
- [App Layout](https://github.com/micayell/portfolio/blob/master/src/features/common/components/AppLayout.tsx): `src/features/common/components/AppLayout.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → Home Route: opens (evidence: `README.md`)
- Home Route → Notion Data Parser: loads content (evidence: `src/app/page.tsx`)
- Notion Data Parser → Notion CMS: queries (evidence: `src/features/common/lib/notion.ts`)
- Notion Data Parser → Field Mapping: uses mappings (evidence: `src/features/common/lib/notion.ts`)
- Notion Data Parser → Project Model: creates projects (evidence: `src/features/common/lib/notion.ts`)
- Home Route → Portfolio Client: renders with data (evidence: `src/app/page.tsx`)
- Portfolio Client → Navigation Header: renders (evidence: `src/app/ClientPage.tsx`)
- Portfolio Client → Profile Section: renders (evidence: `src/app/ClientPage.tsx`)
- Portfolio Client → Resume Timeline: renders (evidence: `src/app/ClientPage.tsx`)
- Portfolio Client → Skills Browser: renders (evidence: `src/app/ClientPage.tsx`)
- Portfolio Client → Intro Screen: renders (evidence: `src/app/ClientPage.tsx`)
- Portfolio Client → 3D Gallery: renders (evidence: `src/app/ClientPage.tsx`)
- Portfolio Client → Project Details: renders (evidence: `src/app/ClientPage.tsx`)
- Portfolio Client → Chat Interface: renders (evidence: `src/app/ClientPage.tsx`)
- Profile Section → Profile Data: reads (evidence: `src/features/about/components/About.tsx`)
- 3D Gallery → Project Model: uses model (evidence: `src/features/projects/components/GalleryScene.tsx`)
- Project Details → Project Model: uses model (evidence: `src/features/projects/components/ProjectModal.tsx`)
- Chat Interface → Chat Messages: renders (evidence: `src/features/chat/components/ChatInterface.tsx`)
- Chat Interface → Chat API Route: requests answer (evidence: `README.md`)
- Chat API Route → Groq AI: calls (evidence: `README.md`)
- Visitor → Project Route: opens project
- Project Route → Notion Data Parser: loads project (evidence: `src/app/projects/[id]/page.tsx`)
- Visitor → Notion Image Proxy: requests image
- App Layout → Visitor: provides app shell
