# cheekydavy/portfolio architecture

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

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

## Overview

This is a static React portfolio presenting the developer’s background and five projects, with project detail pages and interactive repository-derived architecture diagrams. Visitors browse the home sections, open a project, then open its architecture view; the app parses a project’s Mermaid diagram, themes it, and renders an explorer with component inspection and source links. The graph also preserves the portfolio’s content, hash routing, live repository metadata, and reusable diagram view. Relationships are based on excerpts, SOURCE INDEX references, or README descriptions; unsampled implementation details are not inferred.

Main entry points: [`src/components/ArchitectureExplorer.tsx`](https://github.com/cheekydavy/portfolio/blob/main/src/components/ArchitectureExplorer.tsx) (Architecture explorer), [`src/components/ProjectDetail.tsx`](https://github.com/cheekydavy/portfolio/blob/main/src/components/ProjectDetail.tsx) (Project detail), [`src/App.tsx`](https://github.com/cheekydavy/portfolio/blob/main/src/App.tsx) (App shell), [`src/components/InlineDiagram.tsx`](https://github.com/cheekydavy/portfolio/blob/main/src/components/InlineDiagram.tsx) (Inline diagram)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Portfolio content"]
  node_home["Home sections<br/>[Hero.tsx]"]
  node_about["About content<br/>[About.tsx]"]
  node_projects["Project listing<br/>[Projects.tsx]"]
  node_projectdata["Project catalog<br/>[projects.ts]"]
  node_sitedata["Profile content<br/>[site.ts]"]
  node_detail["Project detail<br/>[ProjectDetail.tsx]"]
  node_pos["POS sections<br/>[PosSections.tsx]"]
  node_layers["Layer summary<br/>[LayerStack.tsx]"]
end

subgraph group_navigation["Pages and routing"]
  node_app["App shell<br/>[App.tsx]"]
  node_router["Hash router<br/>[useRoute.ts]"]
end

subgraph group_architecture["Diagram exploration"]
  node_explorer["Architecture explorer"]
  node_inline["Inline diagram<br/>[InlineDiagram.tsx]"]
  node_diagrams["Project diagrams"]
  node_parser["Diagram parser<br/>[diagram.ts]"]
  node_theme["Mermaid theme<br/>[mermaidTheme.ts]"]
  node_tones["Diagram palettes<br/>[tones.ts]"]
end

subgraph group_shared["Shared services"]
  node_ui["UI primitives<br/>[ui.tsx]"]
  node_icons["Icon set<br/>[Icons.tsx]"]
  node_motion["Motion preference<br/>[useMotion.ts]"]
  node_github["Repository metadata<br/>[github.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_app
node_app -->|"reads route"| node_router
node_app -->|"shows home"| node_home
node_app -->|"shows project"| node_detail
node_app -->|"loads on demand"| node_explorer
node_router -->|"validates project"| node_projectdata
node_projects -->|"reads entries"| node_projectdata
node_detail -->|"reads project"| node_projectdata
node_home -->|"shows profile"| node_sitedata
node_about -->|"reads profile"| node_sitedata
node_detail -->|"renders diagram"| node_inline
node_detail -->|"renders layers"| node_layers
node_detail -->|"renders POS detail"| node_pos
node_explorer -->|"uses project config"| node_projectdata
node_explorer -->|"loads diagram"| node_diagrams
node_inline -->|"loads diagram"| node_diagrams
node_explorer -->|"parses diagram"| node_parser
node_inline -->|"parses diagram"| node_parser
node_explorer -->|"initializes Mermaid"| node_theme
node_inline -->|"initializes Mermaid"| node_theme
node_parser -->|"uses palette"| node_tones
node_explorer -->|"uses colors"| node_tones
node_ui -->|"checks preference"| node_motion
node_ui -->|"fetches repo metadata"| node_github
node_explorer -->|"uses controls"| node_icons
node_inline -->|"uses controls"| node_icons
node_detail -->|"uses primitives"| node_ui

click node_app "https://github.com/cheekydavy/portfolio/blob/main/src/App.tsx"
click node_router "https://github.com/cheekydavy/portfolio/blob/main/src/hooks/useRoute.ts"
click node_home "https://github.com/cheekydavy/portfolio/blob/main/src/components/Hero.tsx"
click node_about "https://github.com/cheekydavy/portfolio/blob/main/src/components/About.tsx"
click node_projects "https://github.com/cheekydavy/portfolio/blob/main/src/components/Projects.tsx"
click node_projectdata "https://github.com/cheekydavy/portfolio/blob/main/src/data/projects.ts"
click node_sitedata "https://github.com/cheekydavy/portfolio/blob/main/src/data/site.ts"
click node_detail "https://github.com/cheekydavy/portfolio/blob/main/src/components/ProjectDetail.tsx"
click node_pos "https://github.com/cheekydavy/portfolio/blob/main/src/components/PosSections.tsx"
click node_layers "https://github.com/cheekydavy/portfolio/blob/main/src/components/LayerStack.tsx"
click node_explorer "https://github.com/cheekydavy/portfolio/blob/main/src/components/ArchitectureExplorer.tsx"
click node_inline "https://github.com/cheekydavy/portfolio/blob/main/src/components/InlineDiagram.tsx"
click node_diagrams "https://github.com/cheekydavy/portfolio/tree/main/src/diagrams"
click node_parser "https://github.com/cheekydavy/portfolio/blob/main/src/lib/diagram.ts"
click node_theme "https://github.com/cheekydavy/portfolio/blob/main/src/lib/mermaidTheme.ts"
click node_tones "https://github.com/cheekydavy/portfolio/blob/main/src/data/tones.ts"
click node_ui "https://github.com/cheekydavy/portfolio/blob/main/src/components/ui.tsx"
click node_icons "https://github.com/cheekydavy/portfolio/blob/main/src/components/Icons.tsx"
click node_motion "https://github.com/cheekydavy/portfolio/blob/main/src/hooks/useMotion.ts"
click node_github "https://github.com/cheekydavy/portfolio/blob/main/src/lib/github.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_about,node_projects,node_projectdata,node_sitedata,node_detail,node_pos,node_layers toneBlue
class node_app,node_router toneAmber
class node_explorer,node_inline,node_diagrams,node_parser,node_theme,node_tones toneMint
class node_ui,node_icons,node_motion,node_github toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio content

- [Home sections](https://github.com/cheekydavy/portfolio/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [About content](https://github.com/cheekydavy/portfolio/blob/main/src/components/About.tsx): `src/components/About.tsx`
- [Project listing](https://github.com/cheekydavy/portfolio/blob/main/src/components/Projects.tsx): `src/components/Projects.tsx`
- [Project catalog](https://github.com/cheekydavy/portfolio/blob/main/src/data/projects.ts): `src/data/projects.ts`
- [Profile content](https://github.com/cheekydavy/portfolio/blob/main/src/data/site.ts): `src/data/site.ts`
- [Project detail](https://github.com/cheekydavy/portfolio/blob/main/src/components/ProjectDetail.tsx): `src/components/ProjectDetail.tsx`
- [POS sections](https://github.com/cheekydavy/portfolio/blob/main/src/components/PosSections.tsx): `src/components/PosSections.tsx`
- [Layer summary](https://github.com/cheekydavy/portfolio/blob/main/src/components/LayerStack.tsx): `src/components/LayerStack.tsx`

### Pages and routing

- [App shell](https://github.com/cheekydavy/portfolio/blob/main/src/App.tsx): `src/App.tsx`
- [Hash router](https://github.com/cheekydavy/portfolio/blob/main/src/hooks/useRoute.ts): `src/hooks/useRoute.ts`

### Diagram exploration

- [Architecture explorer](https://github.com/cheekydavy/portfolio/blob/main/src/components/ArchitectureExplorer.tsx): `src/components/ArchitectureExplorer.tsx`
- [Inline diagram](https://github.com/cheekydavy/portfolio/blob/main/src/components/InlineDiagram.tsx): `src/components/InlineDiagram.tsx`
- [Project diagrams](https://github.com/cheekydavy/portfolio/tree/main/src/diagrams): `src/diagrams`
- [Diagram parser](https://github.com/cheekydavy/portfolio/blob/main/src/lib/diagram.ts): `src/lib/diagram.ts`
- [Mermaid theme](https://github.com/cheekydavy/portfolio/blob/main/src/lib/mermaidTheme.ts): `src/lib/mermaidTheme.ts`
- [Diagram palettes](https://github.com/cheekydavy/portfolio/blob/main/src/data/tones.ts): `src/data/tones.ts`

### Shared services

- [UI primitives](https://github.com/cheekydavy/portfolio/blob/main/src/components/ui.tsx): `src/components/ui.tsx`
- [Icon set](https://github.com/cheekydavy/portfolio/blob/main/src/components/Icons.tsx): `src/components/Icons.tsx`
- [Motion preference](https://github.com/cheekydavy/portfolio/blob/main/src/hooks/useMotion.ts): `src/hooks/useMotion.ts`
- [Repository metadata](https://github.com/cheekydavy/portfolio/blob/main/src/lib/github.ts): `src/lib/github.ts`

### Other components

- **Visitor**

## Connections

- Visitor → App shell: opens site (evidence: `README.md`)
- App shell → Hash router: reads route (evidence: `src/App.tsx`)
- App shell → Home sections: shows home (evidence: `src/App.tsx`)
- App shell → Project detail: shows project (evidence: `src/App.tsx`)
- App shell → Architecture explorer: loads on demand (evidence: `src/App.tsx`)
- Hash router → Project catalog: validates project (evidence: `src/hooks/useRoute.ts`)
- Project listing → Project catalog: reads entries (evidence: `src/components/Projects.tsx`)
- Project detail → Project catalog: reads project (evidence: `src/components/ProjectDetail.tsx`)
- Home sections → Profile content: shows profile (evidence: `src/components/Hero.tsx`)
- About content → Profile content: reads profile (evidence: `src/components/About.tsx`)
- Project detail → Inline diagram: renders diagram (evidence: `src/components/ProjectDetail.tsx`)
- Project detail → Layer summary: renders layers (evidence: `src/components/ProjectDetail.tsx`)
- Project detail → POS sections: renders POS detail (evidence: `src/components/ProjectDetail.tsx`)
- Architecture explorer → Project catalog: uses project config (evidence: `src/components/ArchitectureExplorer.tsx`)
- Architecture explorer → Project diagrams: loads diagram (evidence: `README.md`)
- Inline diagram → Project diagrams: loads diagram (evidence: `README.md`)
- Architecture explorer → Diagram parser: parses diagram (evidence: `src/components/ArchitectureExplorer.tsx`)
- Inline diagram → Diagram parser: parses diagram (evidence: `src/components/InlineDiagram.tsx`)
- Architecture explorer → Mermaid theme: initializes Mermaid (evidence: `src/components/ArchitectureExplorer.tsx`)
- Inline diagram → Mermaid theme: initializes Mermaid (evidence: `src/components/InlineDiagram.tsx`)
- Diagram parser → Diagram palettes: uses palette (evidence: `src/lib/diagram.ts`)
- Architecture explorer → Diagram palettes: uses colors (evidence: `src/components/ArchitectureExplorer.tsx`)
- UI primitives → Motion preference: checks preference (evidence: `src/components/ui.tsx`)
- UI primitives → Repository metadata: fetches repo metadata (evidence: `src/components/ui.tsx`)
- Architecture explorer → Icon set: uses controls (evidence: `src/components/ArchitectureExplorer.tsx`)
- Inline diagram → Icon set: uses controls (evidence: `src/components/InlineDiagram.tsx`)
- Project detail → UI primitives: uses primitives (evidence: `src/components/ProjectDetail.tsx`)
