# rehan0018/portfolio architecture

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

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

## Overview

This is a personal portfolio presented as an interactive digital cosmos. Visitors enter a single-page experience, explore featured projects and engineering themes through sections and an interactive 3D backdrop, and can open project details or the terminal. The README also describes career trajectory, philosophy, and technology constellations. Edges reflect imports and callbacks visible in the index or excerpts; unsampled section internals are represented without speculative connections.

Main entry points: [`src/App.tsx`](https://github.com/rehan0018/portfolio/blob/main/src/App.tsx) (Page orchestrator), [`src/components/canvas/UniverseCanvas.tsx`](https://github.com/rehan0018/portfolio/blob/main/src/components/canvas/UniverseCanvas.tsx) (Universe canvas), [`src/components/ProjectsSection.tsx`](https://github.com/rehan0018/portfolio/blob/main/src/components/ProjectsSection.tsx) (Project showcase), [`src/main.tsx`](https://github.com/rehan0018/portfolio/blob/main/src/main.tsx) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Portfolio experience"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["Page orchestrator<br/>[App.tsx]"]
  node_navigation["Navigation<br/>[Navigation.tsx]"]
  node_hero["Introduction<br/>[Hero.tsx]"]
  node_about["About<br/>[AboutSection.tsx]"]
  node_contact["Contact<br/>[ContactSection.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
end

subgraph group_visual["Cosmos visualization"]
  node_canvas["Universe canvas<br/>[UniverseCanvas.tsx]"]
  node_stars["Starfield<br/>[Starfield.tsx]"]
  node_celestial["Hero celestial object"]
  node_orbits["Project orbits"]
end

subgraph group_content["Portfolio content"]
  node_projects["Project showcase"]
  node_project_data["Project catalog<br/>[projects.ts]"]
  node_engineering["Engineering constellations"]
  node_technology_data["Technology catalog<br/>[technologies.ts]"]
  node_journey["Career journey<br/>[JourneySection.tsx]"]
  node_journey_data["Journey milestones<br/>[journey.ts]"]
  node_problem_solving["Problem solving"]
  node_philosophy["Philosophy"]
  node_philosophy_data["Philosophy questions<br/>[philosophy.ts]"]
  node_cosmos["Cosmos themes<br/>[CosmosSection.tsx]"]
  node_cosmos_data["Cosmos content<br/>[cosmos.ts]"]
end

subgraph group_interaction["Interactive details"]
  node_project_modal["Project details<br/>[ProjectModal.tsx]"]
  node_terminal["Portfolio terminal<br/>[TerminalModal.tsx]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_navigation
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_engineering
node_app -->|"renders"| node_journey
node_app -->|"renders"| node_problem_solving
node_app -->|"renders"| node_philosophy
node_app -->|"renders"| node_cosmos
node_app -->|"renders"| node_about
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_canvas
node_app -->|"renders"| node_project_modal
node_app -->|"renders"| node_terminal
node_canvas -->|"renders"| node_stars
node_canvas -->|"renders"| node_celestial
node_canvas -->|"renders"| node_orbits
node_projects -->|"reads"| node_project_data
node_engineering -->|"reads"| node_technology_data
node_journey -->|"reads"| node_journey_data
node_philosophy -->|"reads"| node_philosophy_data
node_cosmos -->|"reads"| node_cosmos_data
node_projects -->|"selects project"| node_app
node_canvas -->|"selects project"| node_app
node_app -->|"passes selection"| node_project_modal
node_navigation -->|"opens terminal"| node_app
node_terminal -->|"reads projects"| node_project_data

click node_entry "https://github.com/rehan0018/portfolio/blob/main/src/main.tsx"
click node_app "https://github.com/rehan0018/portfolio/blob/main/src/App.tsx"
click node_navigation "https://github.com/rehan0018/portfolio/blob/main/src/components/Navigation.tsx"
click node_hero "https://github.com/rehan0018/portfolio/blob/main/src/components/Hero.tsx"
click node_about "https://github.com/rehan0018/portfolio/blob/main/src/components/AboutSection.tsx"
click node_contact "https://github.com/rehan0018/portfolio/blob/main/src/components/ContactSection.tsx"
click node_footer "https://github.com/rehan0018/portfolio/blob/main/src/components/Footer.tsx"
click node_canvas "https://github.com/rehan0018/portfolio/blob/main/src/components/canvas/UniverseCanvas.tsx"
click node_stars "https://github.com/rehan0018/portfolio/blob/main/src/components/canvas/Starfield.tsx"
click node_celestial "https://github.com/rehan0018/portfolio/blob/main/src/components/canvas/CelestialHeroObject.tsx"
click node_orbits "https://github.com/rehan0018/portfolio/blob/main/src/components/canvas/ConstellationOrbits.tsx"
click node_projects "https://github.com/rehan0018/portfolio/blob/main/src/components/ProjectsSection.tsx"
click node_project_data "https://github.com/rehan0018/portfolio/blob/main/src/data/projects.ts"
click node_engineering "https://github.com/rehan0018/portfolio/blob/main/src/components/EngineeringSection.tsx"
click node_technology_data "https://github.com/rehan0018/portfolio/blob/main/src/data/technologies.ts"
click node_journey "https://github.com/rehan0018/portfolio/blob/main/src/components/JourneySection.tsx"
click node_journey_data "https://github.com/rehan0018/portfolio/blob/main/src/data/journey.ts"
click node_problem_solving "https://github.com/rehan0018/portfolio/blob/main/src/components/ProblemSolvingSection.tsx"
click node_philosophy "https://github.com/rehan0018/portfolio/blob/main/src/components/PhilosophySection.tsx"
click node_philosophy_data "https://github.com/rehan0018/portfolio/blob/main/src/data/philosophy.ts"
click node_cosmos "https://github.com/rehan0018/portfolio/blob/main/src/components/CosmosSection.tsx"
click node_cosmos_data "https://github.com/rehan0018/portfolio/blob/main/src/data/cosmos.ts"
click node_project_modal "https://github.com/rehan0018/portfolio/blob/main/src/components/ProjectModal.tsx"
click node_terminal "https://github.com/rehan0018/portfolio/blob/main/src/components/TerminalModal.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_navigation,node_hero,node_about,node_contact,node_footer toneBlue
class node_canvas,node_stars,node_celestial,node_orbits toneAmber
class node_projects,node_project_data,node_engineering,node_technology_data,node_journey,node_journey_data,node_problem_solving,node_philosophy,node_philosophy_data,node_cosmos,node_cosmos_data toneMint
class node_project_modal,node_terminal toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio experience

- [React entry](https://github.com/rehan0018/portfolio/blob/main/src/main.tsx): `src/main.tsx`
- [Page orchestrator](https://github.com/rehan0018/portfolio/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation](https://github.com/rehan0018/portfolio/blob/main/src/components/Navigation.tsx): `src/components/Navigation.tsx`
- [Introduction](https://github.com/rehan0018/portfolio/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [About](https://github.com/rehan0018/portfolio/blob/main/src/components/AboutSection.tsx): `src/components/AboutSection.tsx`
- [Contact](https://github.com/rehan0018/portfolio/blob/main/src/components/ContactSection.tsx): `src/components/ContactSection.tsx`
- [Footer](https://github.com/rehan0018/portfolio/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Cosmos visualization

- [Universe canvas](https://github.com/rehan0018/portfolio/blob/main/src/components/canvas/UniverseCanvas.tsx): `src/components/canvas/UniverseCanvas.tsx`
- [Starfield](https://github.com/rehan0018/portfolio/blob/main/src/components/canvas/Starfield.tsx): `src/components/canvas/Starfield.tsx`
- [Hero celestial object](https://github.com/rehan0018/portfolio/blob/main/src/components/canvas/CelestialHeroObject.tsx): `src/components/canvas/CelestialHeroObject.tsx`
- [Project orbits](https://github.com/rehan0018/portfolio/blob/main/src/components/canvas/ConstellationOrbits.tsx): `src/components/canvas/ConstellationOrbits.tsx`

### Portfolio content

- [Project showcase](https://github.com/rehan0018/portfolio/blob/main/src/components/ProjectsSection.tsx): `src/components/ProjectsSection.tsx`
- [Project catalog](https://github.com/rehan0018/portfolio/blob/main/src/data/projects.ts): `src/data/projects.ts`
- [Engineering constellations](https://github.com/rehan0018/portfolio/blob/main/src/components/EngineeringSection.tsx): `src/components/EngineeringSection.tsx`
- [Technology catalog](https://github.com/rehan0018/portfolio/blob/main/src/data/technologies.ts): `src/data/technologies.ts`
- [Career journey](https://github.com/rehan0018/portfolio/blob/main/src/components/JourneySection.tsx): `src/components/JourneySection.tsx`
- [Journey milestones](https://github.com/rehan0018/portfolio/blob/main/src/data/journey.ts): `src/data/journey.ts`
- [Problem solving](https://github.com/rehan0018/portfolio/blob/main/src/components/ProblemSolvingSection.tsx): `src/components/ProblemSolvingSection.tsx`
- [Philosophy](https://github.com/rehan0018/portfolio/blob/main/src/components/PhilosophySection.tsx): `src/components/PhilosophySection.tsx`
- [Philosophy questions](https://github.com/rehan0018/portfolio/blob/main/src/data/philosophy.ts): `src/data/philosophy.ts`
- [Cosmos themes](https://github.com/rehan0018/portfolio/blob/main/src/components/CosmosSection.tsx): `src/components/CosmosSection.tsx`
- [Cosmos content](https://github.com/rehan0018/portfolio/blob/main/src/data/cosmos.ts): `src/data/cosmos.ts`

### Interactive details

- [Project details](https://github.com/rehan0018/portfolio/blob/main/src/components/ProjectModal.tsx): `src/components/ProjectModal.tsx`
- [Portfolio terminal](https://github.com/rehan0018/portfolio/blob/main/src/components/TerminalModal.tsx): `src/components/TerminalModal.tsx`

### Other components

- **Visitor**

## Connections

- Visitor → React entry: opens site (evidence: `src/main.tsx`)
- React entry → Page orchestrator: renders (evidence: `src/main.tsx`)
- Page orchestrator → Navigation: renders (evidence: `src/App.tsx`)
- Page orchestrator → Introduction: renders (evidence: `src/App.tsx`)
- Page orchestrator → Project showcase: renders (evidence: `src/App.tsx`)
- Page orchestrator → Engineering constellations: renders (evidence: `src/App.tsx`)
- Page orchestrator → Career journey: renders (evidence: `src/App.tsx`)
- Page orchestrator → Problem solving: renders (evidence: `src/App.tsx`)
- Page orchestrator → Philosophy: renders (evidence: `src/App.tsx`)
- Page orchestrator → Cosmos themes: renders (evidence: `src/App.tsx`)
- Page orchestrator → About: renders (evidence: `src/App.tsx`)
- Page orchestrator → Contact: renders (evidence: `src/App.tsx`)
- Page orchestrator → Footer: renders (evidence: `src/App.tsx`)
- Page orchestrator → Universe canvas: renders (evidence: `src/App.tsx`)
- Page orchestrator → Project details: renders (evidence: `src/App.tsx`)
- Page orchestrator → Portfolio terminal: renders (evidence: `src/App.tsx`)
- Universe canvas → Starfield: renders (evidence: `src/components/canvas/UniverseCanvas.tsx`)
- Universe canvas → Hero celestial object: renders (evidence: `src/components/canvas/UniverseCanvas.tsx`)
- Universe canvas → Project orbits: renders (evidence: `src/components/canvas/UniverseCanvas.tsx`)
- Project showcase → Project catalog: reads (evidence: `src/components/ProjectsSection.tsx`)
- Engineering constellations → Technology catalog: reads (evidence: `src/components/EngineeringSection.tsx`)
- Career journey → Journey milestones: reads (evidence: `src/components/JourneySection.tsx`)
- Philosophy → Philosophy questions: reads (evidence: `src/components/PhilosophySection.tsx`)
- Cosmos themes → Cosmos content: reads (evidence: `src/components/CosmosSection.tsx`)
- Project showcase → Page orchestrator: selects project (evidence: `src/App.tsx`)
- Universe canvas → Page orchestrator: selects project (evidence: `src/App.tsx`)
- Page orchestrator → Project details: passes selection (evidence: `src/App.tsx`)
- Navigation → Page orchestrator: opens terminal (evidence: `src/App.tsx`)
- Portfolio terminal → Project catalog: reads projects (evidence: `src/components/TerminalModal.tsx`)
