# adityarajadn/2026-portfolio architecture

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

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

## Overview

This is a Next.js personal portfolio paired with an admin CMS. Visitors browse the portfolio’s home, projects, experience, and certificate content; administrators authenticate, then manage portfolio records and settings backed by Supabase. The map preserves the documented timeline, GitHub activity, and image-storage capabilities. Several dashboard and page implementations were not sampled, so their internal behavior is represented only where README or source-index evidence supports it.

Main entry points: [`app/components/layout/PortfolioApp.tsx`](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/layout/PortfolioApp.tsx) (Portfolio app), [`app/lib/supabase.ts`](https://github.com/adityarajadn/2026-portfolio/blob/master/app/lib/supabase.ts) (Supabase data client), [`app/components/sections/HomeSection.tsx`](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/sections/HomeSection.tsx) (Home section), [`app/components/ui/Modal.tsx`](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/ui/Modal.tsx) (Modal)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public portfolio"]
  node_public_routes["Public routes<br/>[page.tsx]"]
  node_portfolio_app["Portfolio app<br/>[PortfolioApp.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_home["Home section<br/>[HomeSection.tsx]"]
  node_projects["Projects showcase"]
  node_experiences["Experience timeline"]
  node_certificates["Certificate showcase"]
  node_github_activity["GitHub activity<br/>[HomeSection.tsx]"]
end

subgraph group_admin["Admin CMS"]
  node_admin_login["Admin login<br/>[page.tsx]"]
  node_dashboard["Dashboard settings<br/>[page.tsx]"]
  node_project_admin["Project management<br/>[page.tsx]"]
  node_experience_admin["Experience management<br/>[page.tsx]"]
  node_certificate_admin["Certificate management<br/>[page.tsx]"]
end

subgraph group_backend["Data and auth"]
  node_auth_helpers["Auth cookie helpers<br/>[auth.ts]"]
  node_auth_route["Auth API route<br/>[route.ts]"]
  node_supabase_helpers["Supabase data client<br/>[supabase.ts]"]
  node_database[("Supabase database")]
  node_image_storage[("Image bucket")]
end

subgraph group_ui["Shared UI"]
  node_modal["Modal<br/>[Modal.tsx]"]
  node_navbar["Navbar<br/>[Navbar.tsx]"]
  node_galaxy["Galaxy effect<br/>[Galaxy.tsx]"]
  node_scroll_reveal["Scroll reveal<br/>[ScrollReveal.tsx]"]
  node_animated_counter["Animated counter"]
  node_typing_effect["Typing effect<br/>[TypingEffect.tsx]"]
end

node_visitor(("Visitor"))
node_admin_user(("Admin"))

node_visitor -->|"opens"| node_public_routes
node_public_routes -->|"renders"| node_portfolio_app
node_portfolio_app -->|"renders"| node_home
node_portfolio_app -->|"renders"| node_projects
node_portfolio_app -->|"renders"| node_experiences
node_portfolio_app -->|"renders"| node_certificates
node_portfolio_app -->|"renders"| node_navbar
node_portfolio_app -->|"renders"| node_modal
node_portfolio_app -->|"renders"| node_galaxy
node_portfolio_app -->|"loads content"| node_supabase_helpers
node_home -->|"uses"| node_scroll_reveal
node_home -->|"uses"| node_animated_counter
node_home -->|"uses"| node_typing_effect
node_home -->|"shows"| node_github_activity
node_projects -->|"uses"| node_scroll_reveal
node_admin_user -->|"authenticates"| node_admin_login
node_admin_login -->|"sets cookie"| node_auth_helpers
node_admin_user -->|"manages settings"| node_dashboard
node_dashboard -->|"reads and upserts"| node_supabase_helpers
node_admin_user -->|"manages projects"| node_project_admin
node_project_admin -->|"CRUD and uploads"| node_supabase_helpers
node_project_admin -->|"uses"| node_modal
node_admin_user -->|"manages experiences"| node_experience_admin
node_experience_admin -->|"CRUD and uploads"| node_supabase_helpers
node_experience_admin -->|"uses"| node_modal
node_admin_user -->|"manages certificates"| node_certificate_admin
node_certificate_admin -->|"CRUD and uploads"| node_supabase_helpers
node_certificate_admin -->|"uses"| node_modal
node_supabase_helpers -->|"queries"| node_database
node_supabase_helpers -->|"uploads images"| node_image_storage
node_portfolio_app -->|"pings on mount"| node_database
node_github_activity -->|"visualizes contributions"| node_visitor
node_admin_login -.->|"auth flow"| node_auth_route

click node_public_routes "https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/page.tsx"
click node_portfolio_app "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/layout/PortfolioApp.tsx"
click node_home "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/sections/HomeSection.tsx"
click node_projects "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/sections/ProjectsSection.tsx"
click node_experiences "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/sections/ExperiencesSection.tsx"
click node_certificates "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/sections/CertificatesSection.tsx"
click node_github_activity "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/sections/HomeSection.tsx"
click node_admin_login "https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/dashboard/login/page.tsx"
click node_dashboard "https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/dashboard/page.tsx"
click node_project_admin "https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/dashboard/projects/page.tsx"
click node_experience_admin "https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/dashboard/gallery/page.tsx"
click node_certificate_admin "https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/dashboard/certificates/page.tsx"
click node_auth_helpers "https://github.com/adityarajadn/2026-portfolio/blob/master/app/lib/auth.ts"
click node_auth_route "https://github.com/adityarajadn/2026-portfolio/blob/master/app/api/auth/route.ts"
click node_supabase_helpers "https://github.com/adityarajadn/2026-portfolio/blob/master/app/lib/supabase.ts"
click node_modal "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/ui/Modal.tsx"
click node_navbar "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/layout/Navbar.tsx"
click node_galaxy "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/effects/Galaxy.tsx"
click node_scroll_reveal "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/ui/ScrollReveal.tsx"
click node_animated_counter "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/ui/AnimatedCounter.tsx"
click node_typing_effect "https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/ui/TypingEffect.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_public_routes,node_portfolio_app toneBlue
class node_home,node_projects,node_experiences,node_certificates,node_github_activity toneAmber
class node_admin_login,node_dashboard,node_project_admin,node_experience_admin,node_certificate_admin toneMint
class node_auth_helpers,node_auth_route,node_supabase_helpers,node_database,node_image_storage toneRose
class node_modal,node_navbar,node_galaxy,node_scroll_reveal,node_animated_counter,node_typing_effect,node_visitor,node_admin_user toneIndigo
```

## Components

### Public portfolio

- [Public routes](https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/page.tsx): `app/(main)/page.tsx`
- [Portfolio app](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/layout/PortfolioApp.tsx): `app/components/layout/PortfolioApp.tsx`

### Portfolio content

- [Home section](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/sections/HomeSection.tsx): `app/components/sections/HomeSection.tsx`
- [Projects showcase](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/sections/ProjectsSection.tsx): `app/components/sections/ProjectsSection.tsx`
- [Experience timeline](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/sections/ExperiencesSection.tsx): `app/components/sections/ExperiencesSection.tsx`
- [Certificate showcase](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/sections/CertificatesSection.tsx): `app/components/sections/CertificatesSection.tsx`
- [GitHub activity](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/sections/HomeSection.tsx): `app/components/sections/HomeSection.tsx`

### Admin CMS

- [Admin login](https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/dashboard/login/page.tsx): `app/(main)/dashboard/login/page.tsx`
- [Dashboard settings](https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/dashboard/page.tsx): `app/(main)/dashboard/page.tsx`
- [Project management](https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/dashboard/projects/page.tsx): `app/(main)/dashboard/projects/page.tsx`
- [Experience management](https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/dashboard/gallery/page.tsx): `app/(main)/dashboard/gallery/page.tsx`
- [Certificate management](https://github.com/adityarajadn/2026-portfolio/blob/master/app/(main)/dashboard/certificates/page.tsx): `app/(main)/dashboard/certificates/page.tsx`

### Data and auth

- [Auth cookie helpers](https://github.com/adityarajadn/2026-portfolio/blob/master/app/lib/auth.ts): `app/lib/auth.ts`
- [Auth API route](https://github.com/adityarajadn/2026-portfolio/blob/master/app/api/auth/route.ts): `app/api/auth/route.ts`
- [Supabase data client](https://github.com/adityarajadn/2026-portfolio/blob/master/app/lib/supabase.ts): `app/lib/supabase.ts`
- **Supabase database**
- **Image bucket**

### Shared UI

- [Modal](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/ui/Modal.tsx): `app/components/ui/Modal.tsx`
- [Navbar](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/layout/Navbar.tsx): `app/components/layout/Navbar.tsx`
- [Galaxy effect](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/effects/Galaxy.tsx): `app/components/effects/Galaxy.tsx`
- [Scroll reveal](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/ui/ScrollReveal.tsx): `app/components/ui/ScrollReveal.tsx`
- [Animated counter](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/ui/AnimatedCounter.tsx): `app/components/ui/AnimatedCounter.tsx`
- [Typing effect](https://github.com/adityarajadn/2026-portfolio/blob/master/app/components/ui/TypingEffect.tsx): `app/components/ui/TypingEffect.tsx`

### Other components

- **Visitor**
- **Admin**

## Connections

- Visitor → Public routes: opens (evidence: `README.md`)
- Public routes → Portfolio app: renders (evidence: `app/(main)/page.tsx`)
- Portfolio app → Home section: renders (evidence: `app/components/layout/PortfolioApp.tsx`)
- Portfolio app → Projects showcase: renders (evidence: `app/components/layout/PortfolioApp.tsx`)
- Portfolio app → Experience timeline: renders (evidence: `app/components/layout/PortfolioApp.tsx`)
- Portfolio app → Certificate showcase: renders (evidence: `app/components/layout/PortfolioApp.tsx`)
- Portfolio app → Navbar: renders (evidence: `app/components/layout/PortfolioApp.tsx`)
- Portfolio app → Modal: renders (evidence: `app/components/layout/PortfolioApp.tsx`)
- Portfolio app → Galaxy effect: renders (evidence: `app/components/layout/PortfolioApp.tsx`)
- Portfolio app → Supabase data client: loads content (evidence: `app/components/layout/PortfolioApp.tsx`)
- Home section → Scroll reveal: uses (evidence: `app/components/sections/HomeSection.tsx`)
- Home section → Animated counter: uses (evidence: `app/components/sections/HomeSection.tsx`)
- Home section → Typing effect: uses (evidence: `app/components/sections/HomeSection.tsx`)
- Home section → GitHub activity: shows (evidence: `README.md`)
- Projects showcase → Scroll reveal: uses (evidence: `app/components/sections/ProjectsSection.tsx`)
- Admin → Admin login: authenticates (evidence: `README.md`)
- Admin login → Auth cookie helpers: sets cookie (evidence: `app/(main)/dashboard/login/page.tsx`)
- Admin → Dashboard settings: manages settings (evidence: `README.md`)
- Dashboard settings → Supabase data client: reads and upserts (evidence: `app/(main)/dashboard/page.tsx`)
- Admin → Project management: manages projects (evidence: `README.md`)
- Project management → Supabase data client: CRUD and uploads (evidence: `app/(main)/dashboard/projects/page.tsx`)
- Project management → Modal: uses (evidence: `app/(main)/dashboard/projects/page.tsx`)
- Admin → Experience management: manages experiences (evidence: `README.md`)
- Experience management → Supabase data client: CRUD and uploads (evidence: `app/(main)/dashboard/gallery/page.tsx`)
- Experience management → Modal: uses (evidence: `app/(main)/dashboard/gallery/page.tsx`)
- Admin → Certificate management: manages certificates (evidence: `README.md`)
- Certificate management → Supabase data client: CRUD and uploads (evidence: `app/(main)/dashboard/certificates/page.tsx`)
- Certificate management → Modal: uses (evidence: `app/(main)/dashboard/certificates/page.tsx`)
- Supabase data client → Supabase database: queries (evidence: `app/lib/supabase.ts`)
- Supabase data client → Image bucket: uploads images (evidence: `app/lib/supabase.ts`)
- Portfolio app → Supabase database: pings on mount (evidence: `README.md`)
- GitHub activity → Visitor: visualizes contributions (evidence: `README.md`)
- Admin login → Auth API route: auth flow
