# rafi-hariman/cool-profile architecture

> Architecture diagram of the GitHub repository rafi-hariman/cool-profile, 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/rafi-hariman/cool-profile
- Repository: https://github.com/rafi-hariman/cool-profile

## Overview

This is a personal portfolio site: visitors enter the homepage, view the profile and work sections, and can follow project, social, resume, or contact links. The homepage composes the site shell and six content sections, which draw on profile and portfolio data. Separate mobile and dashboard-preview routes are also present. The dashboard preview uses static sample values; its excerpt explicitly marks service wiring as TODO. Source coverage is based on the index and excerpts, so unsampled relationships are not inferred.

Main entry points: [`app/page.tsx`](https://github.com/rafi-hariman/cool-profile/blob/master/app/page.tsx) (Portfolio Home), [`components/reveal.tsx`](https://github.com/rafi-hariman/cool-profile/blob/master/components/reveal.tsx) (Scroll Reveal), [`components/section-heading.tsx`](https://github.com/rafi-hariman/cool-profile/blob/master/components/section-heading.tsx) (Section Heading), [`components/layout/sidebar.tsx`](https://github.com/rafi-hariman/cool-profile/blob/master/components/layout/sidebar.tsx) (Sidebar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["Pages and Routes"]
  node_home["Portfolio Home<br/>[page.tsx]"]
  node_mobile["Mobile Page<br/>[page.tsx]"]
  node_dashboard["Dashboard Preview<br/>[page.tsx]"]
  node_dashboard_alt["Dashboard Prototype<br/>[new-page.tsx]"]
end

subgraph group_shell["Site Presentation"]
  node_shell_component["Site Shell<br/>[site-shell.tsx]"]
  node_sidebar["Sidebar<br/>[sidebar.tsx]"]
  node_sidebar_nav["Sidebar Navigation<br/>[sidebar-nav.tsx]"]
  node_mobile_header["Mobile Header<br/>[mobile-header.tsx]"]
  node_shader["Shader Background"]
  node_robot["3D Robot Card<br/>[robot-card.tsx]"]
end

subgraph group_content["Portfolio Content"]
  node_about["About<br/>[about.tsx]"]
  node_experience["Experience<br/>[experience.tsx]"]
  node_projects["Projects<br/>[projects.tsx]"]
  node_skills["Skills<br/>[skills.tsx]"]
  node_writing["Writing<br/>[writing.tsx]"]
  node_contact["Contact<br/>[contact.tsx]"]
  node_person_data["Profile Data<br/>[person.ts]"]
  node_experience_data["Experience Data<br/>[experience.ts]"]
  node_projects_data["Project Data<br/>[projects.ts]"]
  node_skills_data["Skills Data<br/>[skills.ts]"]
  node_writing_data["Writing Data<br/>[writing.ts]"]
  node_social_data["Social Links<br/>[social.ts]"]
end

subgraph group_ui["Shared UI"]
  node_reveal["Scroll Reveal<br/>[reveal.tsx]"]
  node_heading["Section Heading"]
  node_ui_kit["UI Primitives"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_visitor -->|"opens"| node_mobile
node_visitor -->|"opens"| node_dashboard
node_home -->|"renders"| node_shell_component
node_home -->|"renders"| node_about
node_home -->|"renders"| node_experience
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_writing
node_home -->|"renders"| node_contact
node_shell_component -->|"renders"| node_sidebar
node_shell_component -->|"renders"| node_mobile_header
node_shell_component -->|"renders"| node_shader
node_sidebar -->|"renders"| node_sidebar_nav
node_sidebar -->|"renders"| node_robot
node_sidebar -->|"reads"| node_person_data
node_sidebar -->|"reads"| node_social_data
node_sidebar_nav -->|"reads"| node_person_data
node_mobile_header -->|"reads"| node_person_data
node_about -->|"renders"| node_heading
node_about -->|"renders"| node_reveal
node_experience -->|"reads"| node_experience_data
node_experience -->|"renders"| node_heading
node_experience -->|"renders"| node_reveal
node_projects -->|"reads"| node_projects_data
node_projects -->|"renders"| node_heading
node_projects -->|"renders"| node_reveal
node_skills -->|"reads"| node_skills_data
node_skills -->|"renders"| node_heading
node_skills -->|"renders"| node_reveal
node_writing -->|"reads"| node_writing_data
node_writing -->|"renders"| node_heading
node_writing -->|"renders"| node_reveal
node_contact -->|"reads"| node_person_data
node_contact -->|"reads"| node_social_data
node_contact -->|"renders"| node_heading
node_contact -->|"renders"| node_reveal
node_dashboard -->|"uses"| node_ui_kit
node_dashboard_alt -->|"uses"| node_ui_kit

click node_home "https://github.com/rafi-hariman/cool-profile/blob/master/app/page.tsx"
click node_mobile "https://github.com/rafi-hariman/cool-profile/blob/master/app/mobile/page.tsx"
click node_dashboard "https://github.com/rafi-hariman/cool-profile/blob/master/app/new-page/page.tsx"
click node_dashboard_alt "https://github.com/rafi-hariman/cool-profile/blob/master/new-page.tsx"
click node_shell_component "https://github.com/rafi-hariman/cool-profile/blob/master/components/layout/site-shell.tsx"
click node_sidebar "https://github.com/rafi-hariman/cool-profile/blob/master/components/layout/sidebar.tsx"
click node_sidebar_nav "https://github.com/rafi-hariman/cool-profile/blob/master/components/layout/sidebar-nav.tsx"
click node_mobile_header "https://github.com/rafi-hariman/cool-profile/blob/master/components/layout/mobile-header.tsx"
click node_shader "https://github.com/rafi-hariman/cool-profile/blob/master/components/ui/animated-shader-background.tsx"
click node_robot "https://github.com/rafi-hariman/cool-profile/blob/master/components/robot-card.tsx"
click node_about "https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/about.tsx"
click node_experience "https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/experience.tsx"
click node_projects "https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/projects.tsx"
click node_skills "https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/skills.tsx"
click node_writing "https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/writing.tsx"
click node_contact "https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/contact.tsx"
click node_person_data "https://github.com/rafi-hariman/cool-profile/blob/master/data/person.ts"
click node_experience_data "https://github.com/rafi-hariman/cool-profile/blob/master/data/experience.ts"
click node_projects_data "https://github.com/rafi-hariman/cool-profile/blob/master/data/projects.ts"
click node_skills_data "https://github.com/rafi-hariman/cool-profile/blob/master/data/skills.ts"
click node_writing_data "https://github.com/rafi-hariman/cool-profile/blob/master/data/writing.ts"
click node_social_data "https://github.com/rafi-hariman/cool-profile/blob/master/data/social.ts"
click node_reveal "https://github.com/rafi-hariman/cool-profile/blob/master/components/reveal.tsx"
click node_heading "https://github.com/rafi-hariman/cool-profile/blob/master/components/section-heading.tsx"
click node_ui_kit "https://github.com/rafi-hariman/cool-profile/tree/master/components/ui"

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_mobile,node_dashboard,node_dashboard_alt toneBlue
class node_shell_component,node_sidebar,node_sidebar_nav,node_mobile_header,node_shader,node_robot toneAmber
class node_about,node_experience,node_projects,node_skills,node_writing,node_contact,node_person_data,node_experience_data,node_projects_data,node_skills_data,node_writing_data,node_social_data toneMint
class node_reveal,node_heading,node_ui_kit toneRose
class node_visitor toneIndigo
```

## Components

### Pages and Routes

- [Portfolio Home](https://github.com/rafi-hariman/cool-profile/blob/master/app/page.tsx): `app/page.tsx`
- [Mobile Page](https://github.com/rafi-hariman/cool-profile/blob/master/app/mobile/page.tsx): `app/mobile/page.tsx`
- [Dashboard Preview](https://github.com/rafi-hariman/cool-profile/blob/master/app/new-page/page.tsx): `app/new-page/page.tsx`
- [Dashboard Prototype](https://github.com/rafi-hariman/cool-profile/blob/master/new-page.tsx): `new-page.tsx`

### Site Presentation

- [Site Shell](https://github.com/rafi-hariman/cool-profile/blob/master/components/layout/site-shell.tsx): `components/layout/site-shell.tsx`
- [Sidebar](https://github.com/rafi-hariman/cool-profile/blob/master/components/layout/sidebar.tsx): `components/layout/sidebar.tsx`
- [Sidebar Navigation](https://github.com/rafi-hariman/cool-profile/blob/master/components/layout/sidebar-nav.tsx): `components/layout/sidebar-nav.tsx`
- [Mobile Header](https://github.com/rafi-hariman/cool-profile/blob/master/components/layout/mobile-header.tsx): `components/layout/mobile-header.tsx`
- [Shader Background](https://github.com/rafi-hariman/cool-profile/blob/master/components/ui/animated-shader-background.tsx): `components/ui/animated-shader-background.tsx`
- [3D Robot Card](https://github.com/rafi-hariman/cool-profile/blob/master/components/robot-card.tsx): `components/robot-card.tsx`

### Portfolio Content

- [About](https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/about.tsx): `components/sections/about.tsx`
- [Experience](https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/experience.tsx): `components/sections/experience.tsx`
- [Projects](https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/projects.tsx): `components/sections/projects.tsx`
- [Skills](https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/skills.tsx): `components/sections/skills.tsx`
- [Writing](https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/writing.tsx): `components/sections/writing.tsx`
- [Contact](https://github.com/rafi-hariman/cool-profile/blob/master/components/sections/contact.tsx): `components/sections/contact.tsx`
- [Profile Data](https://github.com/rafi-hariman/cool-profile/blob/master/data/person.ts): `data/person.ts`
- [Experience Data](https://github.com/rafi-hariman/cool-profile/blob/master/data/experience.ts): `data/experience.ts`
- [Project Data](https://github.com/rafi-hariman/cool-profile/blob/master/data/projects.ts): `data/projects.ts`
- [Skills Data](https://github.com/rafi-hariman/cool-profile/blob/master/data/skills.ts): `data/skills.ts`
- [Writing Data](https://github.com/rafi-hariman/cool-profile/blob/master/data/writing.ts): `data/writing.ts`
- [Social Links](https://github.com/rafi-hariman/cool-profile/blob/master/data/social.ts): `data/social.ts`

### Shared UI

- [Scroll Reveal](https://github.com/rafi-hariman/cool-profile/blob/master/components/reveal.tsx): `components/reveal.tsx`
- [Section Heading](https://github.com/rafi-hariman/cool-profile/blob/master/components/section-heading.tsx): `components/section-heading.tsx`
- [UI Primitives](https://github.com/rafi-hariman/cool-profile/tree/master/components/ui): `components/ui`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio Home: opens
- Visitor → Mobile Page: opens
- Visitor → Dashboard Preview: opens
- Portfolio Home → Site Shell: renders (evidence: `app/page.tsx`)
- Portfolio Home → About: renders (evidence: `app/page.tsx`)
- Portfolio Home → Experience: renders (evidence: `app/page.tsx`)
- Portfolio Home → Projects: renders (evidence: `app/page.tsx`)
- Portfolio Home → Skills: renders (evidence: `app/page.tsx`)
- Portfolio Home → Writing: renders (evidence: `app/page.tsx`)
- Portfolio Home → Contact: renders (evidence: `app/page.tsx`)
- Site Shell → Sidebar: renders (evidence: `components/layout/site-shell.tsx`)
- Site Shell → Mobile Header: renders (evidence: `components/layout/site-shell.tsx`)
- Site Shell → Shader Background: renders (evidence: `components/layout/site-shell.tsx`)
- Sidebar → Sidebar Navigation: renders (evidence: `components/layout/sidebar.tsx`)
- Sidebar → 3D Robot Card: renders (evidence: `components/layout/sidebar.tsx`)
- Sidebar → Profile Data: reads (evidence: `components/layout/sidebar.tsx`)
- Sidebar → Social Links: reads (evidence: `components/layout/sidebar.tsx`)
- Sidebar Navigation → Profile Data: reads (evidence: `components/layout/sidebar-nav.tsx`)
- Mobile Header → Profile Data: reads (evidence: `components/layout/mobile-header.tsx`)
- About → Section Heading: renders (evidence: `components/sections/about.tsx`)
- About → Scroll Reveal: renders (evidence: `components/sections/about.tsx`)
- Experience → Experience Data: reads (evidence: `components/sections/experience.tsx`)
- Experience → Section Heading: renders (evidence: `components/sections/experience.tsx`)
- Experience → Scroll Reveal: renders (evidence: `components/sections/experience.tsx`)
- Projects → Project Data: reads (evidence: `components/sections/projects.tsx`)
- Projects → Section Heading: renders (evidence: `components/sections/projects.tsx`)
- Projects → Scroll Reveal: renders (evidence: `components/sections/projects.tsx`)
- Skills → Skills Data: reads (evidence: `components/sections/skills.tsx`)
- Skills → Section Heading: renders (evidence: `components/sections/skills.tsx`)
- Skills → Scroll Reveal: renders (evidence: `components/sections/skills.tsx`)
- Writing → Writing Data: reads (evidence: `components/sections/writing.tsx`)
- Writing → Section Heading: renders (evidence: `components/sections/writing.tsx`)
- Writing → Scroll Reveal: renders (evidence: `components/sections/writing.tsx`)
- Contact → Profile Data: reads (evidence: `components/sections/contact.tsx`)
- Contact → Social Links: reads (evidence: `components/sections/contact.tsx`)
- Contact → Section Heading: renders (evidence: `components/sections/contact.tsx`)
- Contact → Scroll Reveal: renders (evidence: `components/sections/contact.tsx`)
- Dashboard Preview → UI Primitives: uses (evidence: `app/new-page/page.tsx`)
- Dashboard Prototype → UI Primitives: uses (evidence: `new-page.tsx`)
