# lw-108/harikrishnanportfolio architecture

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

- Interactive diagram: https://gitdiagram.com/lw-108/harikrishnanportfolio
- Repository: https://github.com/lw-108/harikrishnanportfolio

## Overview

This is an interactive macOS-style portfolio: visitors open desktop icons, menu-bar links, or Dock apps, then explore work, skills, articles, photos, contact details, and a resume in app-like windows. App.jsx assembles the desktop and its window views; the shared window store manages window actions, while WindowFrame provides the documented draggable, resizable window shell. The graph preserves the README’s major portfolio capabilities. Some window implementations and Dock behavior were not excerpted, so only directly evidenced or documented connections are shown.

Main entry points: [`src/App.jsx`](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/App.jsx) (Desktop App), [`src/components/WindowFrame.jsx`](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/WindowFrame.jsx) (Window Frame), [`src/windows/FinderWindow.jsx`](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/FinderWindow.jsx) (Finder), [`src/windows/PhotosWindow.jsx`](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/PhotosWindow.jsx) (Photos Gallery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop Shell"]
  node_app["Desktop App<br/>[App.jsx]"]
  node_navbar["Menu Bar<br/>[Navbar.jsx]"]
  node_welcome["Hero Text<br/>[Welcome.jsx]"]
  node_desktop_icons["Desktop Icons"]
  node_dock["App Dock<br/>[Dock.jsx]"]
end

subgraph group_window_core["Window System"]
  node_window_store["Window State<br/>[useWindowStore.js]"]
  node_window_frame["Window Frame<br/>[WindowFrame.jsx]"]
  node_gallery_toolbar["Gallery Toolbar"]
end

subgraph group_portfolio_apps["Portfolio Apps"]
  node_finder["Finder<br/>[FinderWindow.jsx]"]
  node_safari["Safari Articles<br/>[SafariWindow.jsx]"]
  node_photos["Photos Gallery<br/>[PhotosWindow.jsx]"]
  node_terminal["Terminal Skills<br/>[TerminalWindow.jsx]"]
  node_contact["Contact<br/>[ContactWindow.jsx]"]
  node_resume["Resume Viewer<br/>[ResumeWindow.jsx]"]
  node_text_file["Text Reader<br/>[TxtFileWindow.jsx]"]
  node_image_file["Image Preview<br/>[ImgFileWindow.jsx]"]
end

subgraph group_portfolio_content["Portfolio Content"]
  node_content_data["Portfolio Content<br/>[index.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"uses"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_welcome
node_app -->|"renders"| node_desktop_icons
node_app -->|"renders"| node_dock
node_app -->|"renders"| node_finder
node_app -->|"renders"| node_safari
node_app -->|"renders"| node_photos
node_app -->|"renders"| node_terminal
node_app -->|"renders"| node_contact
node_app -->|"renders"| node_resume
node_app -->|"renders"| node_text_file
node_app -->|"renders"| node_image_file
node_navbar -->|"opens windows"| node_window_store
node_navbar -->|"reads links"| node_content_data
node_desktop_icons -->|"opens windows"| node_window_store
node_finder -->|"opens windows"| node_window_store
node_finder -->|"reads locations"| node_content_data
node_finder -->|"uses frame"| node_window_frame
node_safari -->|"reads posts"| node_content_data
node_safari -->|"uses frame"| node_window_frame
node_photos -->|"reads gallery"| node_content_data
node_photos -->|"uses frame"| node_window_frame
node_terminal -.->|"uses frame"| node_window_frame
node_contact -.->|"uses frame"| node_window_frame
node_resume -->|"uses frame"| node_window_frame
node_text_file -.->|"uses frame"| node_window_frame
node_image_file -.->|"uses frame"| node_window_frame
node_photos -.->|"uses controls"| node_gallery_toolbar

click node_app "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/App.jsx"
click node_navbar "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/Navbar.jsx"
click node_welcome "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/Welcome.jsx"
click node_desktop_icons "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/DesktopFolderIcons.jsx"
click node_dock "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/Dock.jsx"
click node_window_store "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/store/useWindowStore.js"
click node_window_frame "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/WindowFrame.jsx"
click node_gallery_toolbar "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/AdvancedGalleryToolbar.jsx"
click node_finder "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/FinderWindow.jsx"
click node_safari "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/SafariWindow.jsx"
click node_photos "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/PhotosWindow.jsx"
click node_terminal "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/TerminalWindow.jsx"
click node_contact "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/ContactWindow.jsx"
click node_resume "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/ResumeWindow.jsx"
click node_text_file "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/TxtFileWindow.jsx"
click node_image_file "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/ImgFileWindow.jsx"
click node_content_data "https://github.com/lw-108/harikrishnanportfolio/blob/main/src/constants/index.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_navbar,node_welcome,node_desktop_icons,node_dock toneBlue
class node_window_store,node_window_frame,node_gallery_toolbar toneAmber
class node_finder,node_safari,node_photos,node_terminal,node_contact,node_resume,node_text_file,node_image_file toneMint
class node_content_data toneRose
class node_visitor toneIndigo
```

## Components

### Desktop Shell

- [Desktop App](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Menu Bar](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Hero Text](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/Welcome.jsx): `src/components/Welcome.jsx`
- [Desktop Icons](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/DesktopFolderIcons.jsx): `src/components/DesktopFolderIcons.jsx`
- [App Dock](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/Dock.jsx): `src/components/Dock.jsx`

### Window System

- [Window State](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/store/useWindowStore.js): `src/store/useWindowStore.js`
- [Window Frame](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/WindowFrame.jsx): `src/components/WindowFrame.jsx`
- [Gallery Toolbar](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/components/AdvancedGalleryToolbar.jsx): `src/components/AdvancedGalleryToolbar.jsx`

### Portfolio Apps

- [Finder](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/FinderWindow.jsx): `src/windows/FinderWindow.jsx`
- [Safari Articles](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/SafariWindow.jsx): `src/windows/SafariWindow.jsx`
- [Photos Gallery](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/PhotosWindow.jsx): `src/windows/PhotosWindow.jsx`
- [Terminal Skills](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/TerminalWindow.jsx): `src/windows/TerminalWindow.jsx`
- [Contact](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/ContactWindow.jsx): `src/windows/ContactWindow.jsx`
- [Resume Viewer](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/ResumeWindow.jsx): `src/windows/ResumeWindow.jsx`
- [Text Reader](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/TxtFileWindow.jsx): `src/windows/TxtFileWindow.jsx`
- [Image Preview](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/windows/ImgFileWindow.jsx): `src/windows/ImgFileWindow.jsx`

### Portfolio Content

- [Portfolio Content](https://github.com/lw-108/harikrishnanportfolio/blob/main/src/constants/index.js): `src/constants/index.js`

### Other components

- **Visitor**

## Connections

- Visitor → Desktop App: uses (evidence: `README.md`)
- Desktop App → Menu Bar: renders (evidence: `src/App.jsx`)
- Desktop App → Hero Text: renders (evidence: `src/App.jsx`)
- Desktop App → Desktop Icons: renders (evidence: `src/App.jsx`)
- Desktop App → App Dock: renders (evidence: `src/App.jsx`)
- Desktop App → Finder: renders (evidence: `src/App.jsx`)
- Desktop App → Safari Articles: renders (evidence: `src/App.jsx`)
- Desktop App → Photos Gallery: renders (evidence: `src/App.jsx`)
- Desktop App → Terminal Skills: renders (evidence: `src/App.jsx`)
- Desktop App → Contact: renders (evidence: `src/App.jsx`)
- Desktop App → Resume Viewer: renders (evidence: `src/App.jsx`)
- Desktop App → Text Reader: renders (evidence: `src/App.jsx`)
- Desktop App → Image Preview: renders (evidence: `src/App.jsx`)
- Menu Bar → Window State: opens windows (evidence: `src/components/Navbar.jsx`)
- Menu Bar → Portfolio Content: reads links (evidence: `src/components/Navbar.jsx`)
- Desktop Icons → Window State: opens windows (evidence: `src/components/DesktopFolderIcons.jsx`)
- Finder → Window State: opens windows (evidence: `src/windows/FinderWindow.jsx`)
- Finder → Portfolio Content: reads locations (evidence: `src/windows/FinderWindow.jsx`)
- Finder → Window Frame: uses frame (evidence: `src/windows/FinderWindow.jsx`)
- Safari Articles → Portfolio Content: reads posts (evidence: `src/windows/SafariWindow.jsx`)
- Safari Articles → Window Frame: uses frame (evidence: `src/windows/SafariWindow.jsx`)
- Photos Gallery → Portfolio Content: reads gallery (evidence: `src/windows/PhotosWindow.jsx`)
- Photos Gallery → Window Frame: uses frame (evidence: `src/windows/PhotosWindow.jsx`)
- Terminal Skills → Window Frame: uses frame (evidence: `README.md`)
- Contact → Window Frame: uses frame (evidence: `README.md`)
- Resume Viewer → Window Frame: uses frame (evidence: `src/windows/ResumeWindow.jsx`)
- Text Reader → Window Frame: uses frame (evidence: `README.md`)
- Image Preview → Window Frame: uses frame (evidence: `README.md`)
- Photos Gallery → Gallery Toolbar: uses controls
