# tejalgoyal2/portfolio architecture

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

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

## Overview

tgoyal.me is a React portfolio whose visitor workflow is to enter through a printed-paper boot experience, navigate a long-form portfolio, explore project and career content, and reach contact information. Persistent press and Life layers animate the page; a separate interactive Rubik’s cube provides a visual feature. The graph follows documented rendering and module references; several unsampled components are included as documented capabilities, but their internal wiring is not inferred.

Main entry points: [`src/App.jsx`](https://github.com/tejalgoyal2/portfolio/blob/main/src/App.jsx) (App shell), [`src/gl/stage.js`](https://github.com/tejalgoyal2/portfolio/blob/main/src/gl/stage.js) (WebGL stage), [`src/sections/Projects.jsx`](https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Projects.jsx) (Projects), [`src/sections/Experience.jsx`](https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Experience.jsx) (Experience)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio content"]
  node_app["App shell<br/>[App.jsx]"]
  node_contents["Contents navigation<br/>[Contents.jsx]"]
  node_hero["Hero<br/>[Hero.jsx]"]
  node_about["About<br/>[About.jsx]"]
  node_skills["Skills<br/>[Skills.jsx]"]
  node_projects["Projects<br/>[Projects.jsx]"]
  node_project_data["Project data<br/>[projects.js]"]
  node_experience["Experience<br/>[Experience.jsx]"]
  node_experience_data["Experience data<br/>[experience.js]"]
  node_blog["Blog<br/>[Blog.jsx]"]
  node_blog_data["Blog data<br/>[blog.js]"]
  node_contact["Contact<br/>[Contact.jsx]"]
end

subgraph group_press["Press presentation"]
  node_press_layers["Press layers"]
  node_headline["Kinetic headline"]
  node_redacted["Redacted text<br/>[Redacted.jsx]"]
end

subgraph group_life["Life interactions"]
  node_life["Life layer<br/>[Life.jsx]"]
  node_icon_drift["Icon drift<br/>[iconDrift.js]"]
  node_life_state["Page state<br/>[prefs.js]"]
  node_scroll_state["Scroll state<br/>[scroll.js]"]
end

subgraph group_cube["Cube experience"]
  node_cube_stage["Cube stage<br/>[CubeStage.jsx]"]
  node_gl_stage["WebGL stage<br/>[stage.js]"]
  node_presence["Cube presence<br/>[presence.js]"]
  node_cube_view["Cube renderer<br/>[cube-view.js]"]
  node_cube_logic["Cube model<br/>[model.js]"]
  node_director["Turn director<br/>[director.js]"]
  node_solver["Cube solver<br/>[solve.js]"]
  node_schedule["Turn schedule<br/>[schedule.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_contents
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_experience
node_app -->|"renders"| node_blog
node_app -->|"renders"| node_contact
node_app -->|"mounts"| node_press_layers
node_app -->|"mounts"| node_life
node_app -->|"mounts"| node_cube_stage
node_projects -->|"reads"| node_project_data
node_experience -->|"reads"| node_experience_data
node_blog -->|"reads"| node_blog_data
node_about -->|"renders"| node_headline
node_about -->|"renders"| node_redacted
node_projects -->|"renders"| node_headline
node_projects -->|"renders"| node_redacted
node_experience -->|"renders"| node_headline
node_experience -->|"renders"| node_redacted
node_blog -->|"renders"| node_headline
node_blog -->|"renders"| node_redacted
node_life -.->|"runs"| node_icon_drift
node_icon_drift -->|"reads"| node_life_state
node_icon_drift -->|"reads"| node_scroll_state
node_contents -->|"tracks"| node_scroll_state
node_cube_stage -.->|"loads"| node_gl_stage
node_gl_stage -->|"uses"| node_director
node_gl_stage -->|"uses"| node_solver
node_gl_stage -->|"uses"| node_schedule
node_gl_stage -->|"creates"| node_cube_view
node_gl_stage -->|"creates"| node_presence
node_director -->|"uses"| node_cube_logic
node_cube_view -->|"uses"| node_cube_logic
node_presence -->|"positions"| node_cube_view

click node_app "https://github.com/tejalgoyal2/portfolio/blob/main/src/App.jsx"
click node_contents "https://github.com/tejalgoyal2/portfolio/blob/main/src/press/Contents.jsx"
click node_hero "https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Hero.jsx"
click node_about "https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/About.jsx"
click node_skills "https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Skills.jsx"
click node_projects "https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Projects.jsx"
click node_project_data "https://github.com/tejalgoyal2/portfolio/blob/main/src/data/projects.js"
click node_experience "https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Experience.jsx"
click node_experience_data "https://github.com/tejalgoyal2/portfolio/blob/main/src/data/experience.js"
click node_blog "https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Blog.jsx"
click node_blog_data "https://github.com/tejalgoyal2/portfolio/blob/main/src/data/blog.js"
click node_contact "https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Contact.jsx"
click node_press_layers "https://github.com/tejalgoyal2/portfolio/tree/main/src/press"
click node_headline "https://github.com/tejalgoyal2/portfolio/blob/main/src/press/KineticHeadline.jsx"
click node_redacted "https://github.com/tejalgoyal2/portfolio/blob/main/src/press/Redacted.jsx"
click node_life "https://github.com/tejalgoyal2/portfolio/blob/main/src/life/Life.jsx"
click node_icon_drift "https://github.com/tejalgoyal2/portfolio/blob/main/src/life/iconDrift.js"
click node_life_state "https://github.com/tejalgoyal2/portfolio/blob/main/src/life/prefs.js"
click node_scroll_state "https://github.com/tejalgoyal2/portfolio/blob/main/src/life/scroll.js"
click node_cube_stage "https://github.com/tejalgoyal2/portfolio/blob/main/src/gl/CubeStage.jsx"
click node_gl_stage "https://github.com/tejalgoyal2/portfolio/blob/main/src/gl/stage.js"
click node_presence "https://github.com/tejalgoyal2/portfolio/blob/main/src/gl/presence.js"
click node_cube_view "https://github.com/tejalgoyal2/portfolio/blob/main/src/gl/cube-view.js"
click node_cube_logic "https://github.com/tejalgoyal2/portfolio/blob/main/src/cube/model.js"
click node_director "https://github.com/tejalgoyal2/portfolio/blob/main/src/cube/director.js"
click node_solver "https://github.com/tejalgoyal2/portfolio/blob/main/src/cube/solve.js"
click node_schedule "https://github.com/tejalgoyal2/portfolio/blob/main/src/cube/schedule.js"

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_app,node_contents,node_hero,node_about,node_skills,node_projects,node_project_data,node_experience,node_experience_data,node_blog,node_blog_data,node_contact toneBlue
class node_press_layers,node_headline,node_redacted toneAmber
class node_life,node_icon_drift,node_life_state,node_scroll_state toneMint
class node_cube_stage,node_gl_stage,node_presence,node_cube_view,node_cube_logic,node_director,node_solver,node_schedule toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio content

- [App shell](https://github.com/tejalgoyal2/portfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Contents navigation](https://github.com/tejalgoyal2/portfolio/blob/main/src/press/Contents.jsx): `src/press/Contents.jsx`
- [Hero](https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Hero.jsx): `src/sections/Hero.jsx`
- [About](https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/About.jsx): `src/sections/About.jsx`
- [Skills](https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Skills.jsx): `src/sections/Skills.jsx`
- [Projects](https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Projects.jsx): `src/sections/Projects.jsx`
- [Project data](https://github.com/tejalgoyal2/portfolio/blob/main/src/data/projects.js): `src/data/projects.js`
- [Experience](https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Experience.jsx): `src/sections/Experience.jsx`
- [Experience data](https://github.com/tejalgoyal2/portfolio/blob/main/src/data/experience.js): `src/data/experience.js`
- [Blog](https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Blog.jsx): `src/sections/Blog.jsx`
- [Blog data](https://github.com/tejalgoyal2/portfolio/blob/main/src/data/blog.js): `src/data/blog.js`
- [Contact](https://github.com/tejalgoyal2/portfolio/blob/main/src/sections/Contact.jsx): `src/sections/Contact.jsx`

### Press presentation

- [Press layers](https://github.com/tejalgoyal2/portfolio/tree/main/src/press): `src/press`
- [Kinetic headline](https://github.com/tejalgoyal2/portfolio/blob/main/src/press/KineticHeadline.jsx): `src/press/KineticHeadline.jsx`
- [Redacted text](https://github.com/tejalgoyal2/portfolio/blob/main/src/press/Redacted.jsx): `src/press/Redacted.jsx`

### Life interactions

- [Life layer](https://github.com/tejalgoyal2/portfolio/blob/main/src/life/Life.jsx): `src/life/Life.jsx`
- [Icon drift](https://github.com/tejalgoyal2/portfolio/blob/main/src/life/iconDrift.js): `src/life/iconDrift.js`
- [Page state](https://github.com/tejalgoyal2/portfolio/blob/main/src/life/prefs.js): `src/life/prefs.js`
- [Scroll state](https://github.com/tejalgoyal2/portfolio/blob/main/src/life/scroll.js): `src/life/scroll.js`

### Cube experience

- [Cube stage](https://github.com/tejalgoyal2/portfolio/blob/main/src/gl/CubeStage.jsx): `src/gl/CubeStage.jsx`
- [WebGL stage](https://github.com/tejalgoyal2/portfolio/blob/main/src/gl/stage.js): `src/gl/stage.js`
- [Cube presence](https://github.com/tejalgoyal2/portfolio/blob/main/src/gl/presence.js): `src/gl/presence.js`
- [Cube renderer](https://github.com/tejalgoyal2/portfolio/blob/main/src/gl/cube-view.js): `src/gl/cube-view.js`
- [Cube model](https://github.com/tejalgoyal2/portfolio/blob/main/src/cube/model.js): `src/cube/model.js`
- [Turn director](https://github.com/tejalgoyal2/portfolio/blob/main/src/cube/director.js): `src/cube/director.js`
- [Cube solver](https://github.com/tejalgoyal2/portfolio/blob/main/src/cube/solve.js): `src/cube/solve.js`
- [Turn schedule](https://github.com/tejalgoyal2/portfolio/blob/main/src/cube/schedule.js): `src/cube/schedule.js`

### Other components

- **Visitor**

## Connections

- Visitor → App shell: opens (evidence: `src/App.jsx`)
- App shell → Contents navigation: renders (evidence: `src/App.jsx`)
- App shell → Hero: renders (evidence: `src/App.jsx`)
- App shell → About: renders (evidence: `src/App.jsx`)
- App shell → Skills: renders (evidence: `src/App.jsx`)
- App shell → Projects: renders (evidence: `src/App.jsx`)
- App shell → Experience: renders (evidence: `src/App.jsx`)
- App shell → Blog: renders (evidence: `src/App.jsx`)
- App shell → Contact: renders (evidence: `src/App.jsx`)
- App shell → Press layers: mounts (evidence: `src/App.jsx`)
- App shell → Life layer: mounts (evidence: `src/App.jsx`)
- App shell → Cube stage: mounts (evidence: `src/App.jsx`)
- Projects → Project data: reads (evidence: `src/sections/Projects.jsx`)
- Experience → Experience data: reads (evidence: `src/sections/Experience.jsx`)
- Blog → Blog data: reads (evidence: `src/sections/Blog.jsx`)
- About → Kinetic headline: renders (evidence: `src/sections/About.jsx`)
- About → Redacted text: renders (evidence: `src/sections/About.jsx`)
- Projects → Kinetic headline: renders (evidence: `src/sections/Projects.jsx`)
- Projects → Redacted text: renders (evidence: `src/sections/Projects.jsx`)
- Experience → Kinetic headline: renders (evidence: `src/sections/Experience.jsx`)
- Experience → Redacted text: renders (evidence: `src/sections/Experience.jsx`)
- Blog → Kinetic headline: renders (evidence: `src/sections/Blog.jsx`)
- Blog → Redacted text: renders (evidence: `src/sections/Blog.jsx`)
- Life layer → Icon drift: runs
- Icon drift → Page state: reads (evidence: `src/life/iconDrift.js`)
- Icon drift → Scroll state: reads (evidence: `src/life/iconDrift.js`)
- Contents navigation → Scroll state: tracks (evidence: `src/press/Contents.jsx`)
- Cube stage → WebGL stage: loads
- WebGL stage → Turn director: uses (evidence: `src/gl/stage.js`)
- WebGL stage → Cube solver: uses (evidence: `src/gl/stage.js`)
- WebGL stage → Turn schedule: uses (evidence: `src/gl/stage.js`)
- WebGL stage → Cube renderer: creates (evidence: `src/gl/stage.js`)
- WebGL stage → Cube presence: creates (evidence: `src/gl/stage.js`)
- Turn director → Cube model: uses (evidence: `src/cube/director.js`)
- Cube renderer → Cube model: uses (evidence: `src/gl/cube-view.js`)
- Cube presence → Cube renderer: positions (evidence: `src/gl/presence.js`)
