# sobaskee/portfolio-v2 architecture

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

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

## Overview

##### Project Type and Purpose
- This is a **static, single-page, component-based portfolio website** (no custom backend code).
- Purpose: showcase resume, projects, skills, contact info, hosted at stanleyke.us.

##### File Structure
- Top-level:
- package.json/Vite config → build & dev server toolchain
- index.html → SPA entry point
- public/ → static assets (favicons, manifest)
- src/ → React source:
– App.jsx + main.jsx → root application
– components/ → reusable UI pieces (Navbar, Footer, Projects, About, Contact, animations)
– pages/ → high-level routes (Home.jsx)
– assets/ → images, resume PDF
- No “backend” or API folders → purely frontend.

##### Extract Key Insights from README
- Built to spotlight developer’s skills, projects, resume, contact links.
- No mention of server-side logic or databases.
- External integration points: email link, LinkedIn, hosting.

##### Main Components & Interactions
a. Components:
- Browser (User)
- Static Hosting/CDN (e.g., Netlify, Vercel, GitHub Pages)
- index.html & JS bundle (built by Vite)
- React App:
– main.jsx → mounts App
– App.jsx → orchestrates Navbar, Pages, Footer
– Pages (Home.jsx) & Components (About, Projects, Contact, animations)
- Static Assets (resume PDF, images, CSS)
- External Services:
– Email client (mailto:)
– LinkedIn
b. Flow:
1. User’s browser requests `stanleyke.us` → CDN serves index.html + bundle
2. Browser executes JS bundle → React app hydrates DOM
3. User navigates within SPA → React Router logic (if used)
4. Components fetch or reference static assets locally
5. Contact component triggers external links (email/LinkedIn)
c. Architectural Pattern:
- Single-Page Application (SPA)
- Component-based UI (React)
- Build pipeline via Vite (ESM, fast HMR)
d. Key Technologies:
- React (JSX)
- Vite (dev server + bundler)
- JavaScript/ESM, CSS modules (index.css, App.css)
- Static hosting (implied)

- Clouds for external services (Email, LinkedIn, hosting)
- HTTP GET → index.html, assets
- JS execution → React runtime
- User events → React components
- Click → external services
- Frontend code vs. static assets vs. external services
- Build artifacts (e.g., blue) vs. runtime (e.g., green)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Developer Pipeline
    subgraph "Development & Build Pipeline"
        direction TB
        PKG["package.json / vite.config.js"]:::build
        SRC["src/ (React Source)"]:::frontend
        PUBLIC["public/ (Static Files)"]:::assets
        PKG -->|configures| VITE["Vite Build"]:::build
        SRC -->|compiles| VITE
        PUBLIC -->|copies| VITE
        VITE -->|outputs| ARTIFACTS["Production Artifacts"]:::build
    end

    %% Hosting Layer
    HostingCloud(("Static Hosting/CDN")):::hosting
    ARTIFACTS -->|deploy| HostingCloud

    %% Browser and Serving
    Browser(("Browser (User)")):::external
    Browser -->|HTTP GET stanleyke.us| HostingCloud
    HostingCloud -->|serves index.html| Index["index.html"]:::frontend
    HostingCloud -->|serves bundle.js & assets| Bundle["JS Bundle"]:::frontend
    click Index "https://github.com/sobaskee/portfolio-v2/blob/main/index.html"
    click Bundle "https://github.com/sobaskee/portfolio-v2/blob/main/src/main.jsx"

    %% React App Runtime
    Browser -->|executes Bundle| ReactRuntime["React Runtime (hydrate)"]:::frontend
    ReactRuntime -->|mounts| Main["main.jsx"]:::frontend
    click Main "https://github.com/sobaskee/portfolio-v2/blob/main/src/main.jsx"
    Main -->|renders| AppComp["App.jsx"]:::frontend
    click AppComp "https://github.com/sobaskee/portfolio-v2/blob/main/src/App.jsx"
    AppComp -->|imports styles| AppCSS["App.css"]:::frontend
    click AppCSS "https://github.com/sobaskee/portfolio-v2/blob/main/src/App.css"
    AppComp -->|uses global styles| GlobalCSS["index.css"]:::frontend
    click GlobalCSS "https://github.com/sobaskee/portfolio-v2/blob/main/src/index.css"

    %% Page Routing
    subgraph "Pages"
        direction TB
        Home["Home.jsx"]:::frontend
        click Home "https://github.com/sobaskee/portfolio-v2/blob/main/src/pages/Home.jsx"
    end
    AppComp --> Home

    %% Components
    subgraph "Components"
        direction TB
        Nav["Navbar.jsx"]:::frontend
        click Nav "https://github.com/sobaskee/portfolio-v2/blob/main/src/components/Navbar.jsx"
        Footer["Footer.jsx"]:::frontend
        click Footer "https://github.com/sobaskee/portfolio-v2/blob/main/src/components/Footer.jsx"
        About["About.jsx"]:::frontend
        click About "https://github.com/sobaskee/portfolio-v2/blob/main/src/components/About.jsx"
        Projects["Projects.jsx"]:::frontend
        click Projects "https://github.com/sobaskee/portfolio-v2/blob/main/src/components/Projects.jsx"
        Contact["Contact.jsx"]:::frontend
        click Contact "https://github.com/sobaskee/portfolio-v2/blob/main/src/components/Contact.jsx"
        Kirby["KirbyAnimation.jsx"]:::frontend
        click Kirby "https://github.com/sobaskee/portfolio-v2/blob/main/src/components/KirbyAnimation.jsx"
        Parallax["ParallaxScene.jsx"]:::frontend
        click Parallax "https://github.com/sobaskee/portfolio-v2/blob/main/src/components/ParallaxScene.jsx"
        ParallaxCSS["ParallaxScene.css"]:::frontend
        click ParallaxCSS "https://github.com/sobaskee/portfolio-v2/blob/main/src/components/ParallaxScene.css"
        Divider["Divider.jsx"]:::frontend
        click Divider "https://github.com/sobaskee/portfolio-v2/blob/main/src/components/Divider.jsx"
        PicFrame["Pictureframe.jsx"]:::frontend
        click PicFrame "https://github.com/sobaskee/portfolio-v2/blob/main/src/components/Pictureframe.jsx"
        PicWide["PictureframeWide.jsx"]:::frontend
        click PicWide "https://github.com/sobaskee/portfolio-v2/blob/main/src/components/PictureframeWide.jsx"
    end
    Home --> Nav
    Home --> About
    Home --> Projects
    Home --> Contact
    Home --> Footer
    Home --> Kirby
    Home --> Parallax
    Home --> Divider
    Home --> PicFrame
    Home --> PicWide

    %% Static Assets Access
    Assets[(Static Assets Cylinder)]:::assets
    Bundle --> Assets
    About --> Assets
    Projects --> Assets
    Contact --> Assets

    click Assets "https://github.com/sobaskee/portfolio-v2/tree/main/src/assets/"

    %% External Integrations
    subgraph "External Services"
        direction TB
        Email((Email Client)):::external
        LinkedIn((LinkedIn)):::external
    end
    Contact -->|mailto click| Email
    Contact -->|LinkedIn click| LinkedIn

    %% Documentation
    README["README.md"]:::docs
    PKG --> README
    click README "https://github.com/sobaskee/portfolio-v2/blob/main/README.md"

    %% Styles
    classDef frontend fill:#9f6,stroke:#333,stroke-width:1px
    classDef build fill:#6cf,stroke:#333,stroke-width:1px
    classDef assets fill:#fc9,stroke:#333,stroke-width:1px
    classDef external fill:#c9f,stroke:#333,stroke-width:1px
    classDef hosting fill:#ccc,stroke:#333,stroke-width:1px
    classDef docs fill:#eef,stroke:#333,stroke-width:1px
```
