# gulbin-dev/gulbindev-portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/gulbin-dev/gulbindev-portfolio
- Repository: https://github.com/gulbin-dev/gulbindev-portfolio

## Overview

#### Purpose and Runtime
This repository is a personal portfolio site built with Next.js App Router and TypeScript, deployed through Vercel configuration. It presents landing-page skills/workflow content, biography/legal pages, contact/navigation chrome, and a project portfolio whose demos are sourced server-side.

Key runtime entry points:
- `app/(pages)/layout.tsx`
- `app/(pages)/page.tsx`
- `next.config.ts`
- `vercel.json`

#### Route Structure and Document Shell
The route group under `app/(pages)` provides the shared page layout and loading UI. Its nested `(pages)` group contains static content routes for about, projects, privacy notice, and terms. Route groups organize URLs without becoming URL segments.

- `app/(pages)/layout.tsx`
- `app/(pages)/loading.tsx`
- `app/(pages)/(pages)/about/page.tsx`
- `app/(pages)/(pages)/projects/page.tsx`

#### Landing-Page Composition
The home route is assembled from focused content sections: hero text, stack proficiency, frontend/core technologies, and workflow cards. This is the primary content presentation layer rather than a data-driven CMS.

- `app/(pages)/page.tsx`
- `app/(pages)/_components/HeroScrambleText.tsx`
- `app/(pages)/_components/WorkflowCards.tsx`
- `app/(pages)/_components/ProficientStacks.tsx`

#### Shared Site Chrome and Page Boundaries
Shared components define persistent navigation, footer/contact surfaces, and page/canvas wrappers. `PagesWrapper` and canvas-related components establish reusable visual/layout boundaries around route content, while `Header`, `NavLinks`, and `Footer` connect users across routes.

- `app/components/PagesWrapper.tsx`
- `app/components/Header.tsx`
- `app/components/FooterWrapper.tsx`
- `app/components/CanvasWrapper.tsx`

#### Projects Data Flow
The projects route delegates loading and rendering to a project-specific component set. `ProjectLoader` is the loading/orchestration boundary, `Projects` renders successful project data, and `ErrorContainer` handles fetch or display failure. Project demo retrieval is isolated in a server module, indicating server-side access to external project metadata rather than browser-side credential use.

- `app/(pages)/(pages)/projects/_components/ProjectLoader.tsx`
- `app/(pages)/(pages)/projects/_components/Projects.tsx`
- `app/(pages)/(pages)/projects/_components/ErrorContainer.tsx`
- `app/server/project-demo.ts`

#### External Integration and Server Boundary
GitHub access is encapsulated behind authentication and server-fetch utilities. This separates credentials/token construction from project-page UI. Tests explicitly cover GitHub fetching, making this integration a material system boundary.

- `app/utils/github-auth.ts`
- `app/server/project-demo.ts`
- `__tests__/test-github-fetch.test.ts`

#### Visual System and Client Interaction
The UI layer supplies reusable cards, sections, tags, backgrounds, quotes, and scroll-progress primitives. GSAP utilities and custom hooks support animation and viewport-responsive behavior; image-sequence support likely powers richer visual assets. Global and component CSS provide the styling foundation.

- `app/components/UI/Canvas.tsx`
- `app/components/UI/CardScrollProgress.tsx`
- `app/hooks/useAnimateStacks.ts`
- `app/utils/gsap.ts`
- `app/styles/globals.css`

#### Discovery and Static Assets
Next metadata routes expose crawler directives and a sitemap. Public assets include images, Open Graph material, a downloadable resume, and frame imagery; the checked-in `html/` directory appears to be a generated/static artifact rather than the primary application source.

- `app/robots.ts`
- `app/sitemap.ts`
- `public/og`
- `public/joshua-glenn-gulbin-resume-2026-05-16.pdf`

Main entry points: [`app/(pages)/layout.tsx`](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/layout.tsx) (Shared Page Layout), [`app/(pages)/page.tsx`](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/page.tsx) (Home Page), [`app/(pages)/(pages)/projects/_components/ProjectLoader.tsx`](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/(pages)/projects/_components/ProjectLoader.tsx) (Project Loader), [`app/server/project-demo.ts`](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/server/project-demo.ts) (Project Demo Service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["App Routes"]
  node_route_shell["Shared Page Layout<br/>route layout<br/>[layout.tsx]"]
  node_loading["Route Loading UI<br/>loading boundary<br/>[loading.tsx]"]
  node_home["Home Page<br/>route page<br/>[page.tsx]"]
  node_static_pages["Static Content Pages<br/>route pages<br/>[page.tsx]"]
  node_landing_sections["Landing Sections<br/>page components"]
end

subgraph group_projects["Projects Pipeline"]
  node_projects_route["Projects Page<br/>route page<br/>[page.tsx]"]
  node_project_loader["Project Loader<br/>server orchestration<br/>[ProjectLoader.tsx]"]
  node_projects_view["Projects View<br/>data renderer<br/>[Projects.tsx]"]
  node_project_error["Project Error UI<br/>error renderer<br/>[ErrorContainer.tsx]"]
  node_project_demo["Project Demo Service<br/>server module<br/>[project-demo.ts]"]
  node_github_auth["GitHub Authentication<br/>server utility<br/>[github-auth.ts]"]
  node_github{{"GitHub<br/>external API"}}
end

subgraph group_ui["Shared UI"]
  node_site_chrome["Site Chrome<br/>shared layout<br/>[PagesWrapper.tsx]"]
  node_visual_system["Visual &amp; Motion System<br/>UI primitives<br/>[Canvas.tsx]"]
end

subgraph group_platform["Platform &amp; Discovery"]
  node_discovery["Crawler Metadata<br/>metadata routes<br/>[robots.ts]"]
  node_assets[("Public Assets<br/>static assets")]
  node_vercel{{"Vercel Deployment<br/>hosting configuration<br/>[vercel.json]"}}
end

node_next{{"Next.js Runtime<br/>framework runtime<br/>[next.config.ts]"}}

node_vercel -->|"deploys"| node_next
node_next -->|"serves"| node_route_shell
node_route_shell -.->|"shows during navigation"| node_loading
node_route_shell -->|"wraps"| node_home
node_route_shell -->|"wraps"| node_static_pages
node_route_shell -->|"uses"| node_site_chrome
node_home -->|"composes"| node_landing_sections
node_home -->|"uses"| node_visual_system
node_static_pages -->|"includes"| node_projects_route
node_projects_route -->|"delegates to"| node_project_loader
node_project_loader -->|"renders on success"| node_projects_view
node_project_loader -.->|"renders on failure"| node_project_error
node_project_loader -->|"loads demos"| node_project_demo
node_project_demo -->|"authenticates with"| node_github_auth
node_project_demo -->|"fetches metadata"| node_github
node_next -->|"exposes"| node_discovery
node_home -.->|"uses"| node_assets

click node_next "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/next.config.ts"
click node_route_shell "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/layout.tsx"
click node_loading "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/loading.tsx"
click node_home "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/page.tsx"
click node_static_pages "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/(pages)/about/page.tsx"
click node_landing_sections "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/_components/HeroScrambleText.tsx"
click node_projects_route "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/(pages)/projects/page.tsx"
click node_project_loader "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/(pages)/projects/_components/ProjectLoader.tsx"
click node_projects_view "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/(pages)/projects/_components/Projects.tsx"
click node_project_error "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/(pages)/projects/_components/ErrorContainer.tsx"
click node_project_demo "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/server/project-demo.ts"
click node_github_auth "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/utils/github-auth.ts"
click node_site_chrome "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/components/PagesWrapper.tsx"
click node_visual_system "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/components/UI/Canvas.tsx"
click node_discovery "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/robots.ts"
click node_assets "https://github.com/gulbin-dev/gulbindev-portfolio/tree/master/public/og"
click node_vercel "https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/vercel.json"

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_route_shell,node_loading,node_home,node_static_pages,node_landing_sections toneBlue
class node_projects_route,node_project_loader,node_projects_view,node_project_error,node_project_demo,node_github_auth,node_github toneAmber
class node_site_chrome,node_visual_system toneMint
class node_discovery,node_assets,node_vercel toneRose
class node_next toneNeutral
```

## Components

### App Routes

Next.js App Router pages and shared route shell.

- [Shared Page Layout](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/layout.tsx): route layout · Provides the common document shell for page routes. · `app/(pages)/layout.tsx`
- [Route Loading UI](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/loading.tsx): loading boundary · `app/(pages)/loading.tsx`
- [Home Page](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/page.tsx): route page · `app/(pages)/page.tsx`
- [Static Content Pages](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/(pages)/about/page.tsx): route pages · About, projects, privacy, and terms are organized beneath a nested route group. · `app/(pages)/(pages)/about/page.tsx`
- [Landing Sections](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/_components/HeroScrambleText.tsx): page components · Hero, skills, technology, and workflow content. · `app/(pages)/_components/HeroScrambleText.tsx`

### Projects Pipeline

Server-backed portfolio demo retrieval and rendering.

- [Projects Page](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/(pages)/projects/page.tsx): route page · `app/(pages)/(pages)/projects/page.tsx`
- [Project Loader](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/(pages)/projects/_components/ProjectLoader.tsx): server orchestration · Loading boundary for project demos and failures. · `app/(pages)/(pages)/projects/_components/ProjectLoader.tsx`
- [Projects View](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/(pages)/projects/_components/Projects.tsx): data renderer · `app/(pages)/(pages)/projects/_components/Projects.tsx`
- [Project Error UI](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/(pages)/(pages)/projects/_components/ErrorContainer.tsx): error renderer · `app/(pages)/(pages)/projects/_components/ErrorContainer.tsx`
- [Project Demo Service](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/server/project-demo.ts): server module · Retrieves external project metadata on the server. · `app/server/project-demo.ts`
- [GitHub Authentication](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/utils/github-auth.ts): server utility · Encapsulates token and credential construction. · `app/utils/github-auth.ts`
- **GitHub**: external API · Source of project demo metadata.

### Shared UI

Reusable layout, visual, and interaction primitives.

- [Site Chrome](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/components/PagesWrapper.tsx): shared layout · Persistent navigation, footer/contact, and page/canvas wrappers. · `app/components/PagesWrapper.tsx`
- [Visual & Motion System](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/components/UI/Canvas.tsx): UI primitives · Canvas, scroll progress, GSAP animation, hooks, and global styling. · `app/components/UI/Canvas.tsx`

### Platform & Discovery

Deployment, crawler metadata, and public assets.

- [Crawler Metadata](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/app/robots.ts): metadata routes · Robots directives and sitemap generation. · `app/robots.ts`
- [Public Assets](https://github.com/gulbin-dev/gulbindev-portfolio/tree/master/public/og): static assets · Open Graph assets, resume, imagery, and generated static material. · `public/og`
- [Vercel Deployment](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/vercel.json): hosting configuration · `vercel.json`

### Other components

- [Next.js Runtime](https://github.com/gulbin-dev/gulbindev-portfolio/blob/master/next.config.ts): framework runtime · `next.config.ts`

## Connections

- Vercel Deployment → Next.js Runtime: deploys
- Next.js Runtime → Shared Page Layout: serves
- Shared Page Layout → Route Loading UI: shows during navigation
- Shared Page Layout → Home Page: wraps
- Shared Page Layout → Static Content Pages: wraps
- Shared Page Layout → Site Chrome: uses
- Home Page → Landing Sections: composes
- Home Page → Visual & Motion System: uses
- Static Content Pages → Projects Page: includes
- Projects Page → Project Loader: delegates to
- Project Loader → Projects View: renders on success
- Project Loader → Project Error UI: renders on failure
- Project Loader → Project Demo Service: loads demos
- Project Demo Service → GitHub Authentication: authenticates with
- Project Demo Service → GitHub: fetches metadata
- Next.js Runtime → Crawler Metadata: exposes
- Home Page → Public Assets: uses
