# aniprogramer/engineering-archive architecture

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

- Interactive diagram: https://gitdiagram.com/aniprogramer/engineering-archive
- Repository: https://github.com/aniprogramer/engineering-archive

## Overview

1. **Overall shape**
   This repository is a **single-page portfolio/archive site** built with **Next.js App Router**, React, and TypeScript. The architecture is presentation-heavy and content-driven: one route renders a composed landing page made from reusable section components.

2. **Routing and application shell**
   `src/app/layout.tsx` and `src/app/globals.css` define the global shell, fonts/styles, and base document structure. `src/app/page.tsx` is the main entry point that assembles the full homepage from the section components.

3. **Content vs. presentation boundary**
   `src/data/portfolio.ts` centralizes portfolio content. This is the key architectural boundary: project/experience/skills/contact data is separated from the UI, making the page largely a renderer of structured content rather than hardcoded markup.

4. **Page composition**
   The page is built from discrete archive sections in `src/components/sections/`: `Hero`, `About`, `Experience`, `Projects`, `Skills`, and `Contact`. These are likely arranged sequentially to create the narrative flow of the portfolio.

5. **Layout primitives**
   `src/components/layout/` contains the reusable framing elements: `Navbar`, `Footer`, and `Section`. These define page-wide navigation, consistent section spacing/structure, and the persistent top/bottom chrome around the content.

6. **Shared UI building blocks**
   `src/components/ui/` holds the cross-cutting interaction and presentation primitives: `Button`, `SectionHeading`, `SocialIcons`, `CustomCursor`, and `Magnetic`. These are used across multiple sections to keep styling and interaction patterns consistent.

7. **Interaction layer**
   `src/hooks/useMagnetic.ts` and the `Magnetic` component indicate a small custom interaction system for pointer-responsive elements. `CustomCursor` suggests a global cursor replacement or enhancement, which is part of the site’s signature UX rather than a content concern.

8. **Hero subsystem**
   The hero area is split into `Hero.tsx` and `HeroPortrait.tsx`, which implies a layered intro composed of text plus a specialized portrait treatment. This is the most visually distinct part of the site and likely depends on assets in `public/images`.

9. **Section-specific subsystems**
   `Projects`, `Experience`, and `Skills` are separate feature sections rather than generic lists. That suggests each one has its own internal layout logic and presentation rules, even though they likely consume the same centralized portfolio data.

10. **Static assets**
   The `public/` directory contains image assets and `resume.pdf`. These are served directly by Next.js and function as static deliverables: visual media for the archive and a downloadable resume artifact.

11. **Utilities and support code**
   `src/lib/utils.ts` provides shared helper logic, likely for class composition or small presentation utilities. This is the only shared non-UI code area visible in the tree, so the repo remains intentionally lightweight.

12. **Styling and build boundary**
   The repo uses a standard Next.js frontend toolchain with Tailwind/PostCSS and TypeScript config files at the root. There is no application backend, database, or API layer in the tree; despite the broader tech-stack wording in the README, the checked-in architecture is a **frontend portfolio site** with static content and client-side interactions.

13. **Architecture diagram takeaway**
   The right mental model is: **App shell → page assembly → section components → shared UI primitives**, with **portfolio content in `src/data`** and **assets in `public/`**. Most complexity is in the interaction and visual layer, not in data processing or server-side systems.

Main entry points: [`src/app/page.tsx`](https://github.com/aniprogramer/engineering-archive/blob/main/src/app/page.tsx) (Home Page), [`src/components/sections/Hero.tsx`](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Hero.tsx) (Hero), [`src/components/sections/Contact.tsx`](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Contact.tsx) (Contact), [`src/data/portfolio.ts`](https://github.com/aniprogramer/engineering-archive/blob/main/src/data/portfolio.ts) (Portfolio Data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_g_app["App Shell"]
  node_n_layout["Root Layout<br/>Next.js shell<br/>[layout.tsx]"]
  node_n_globals["Global Styles<br/>CSS base<br/>[globals.css]"]
  node_n_page["Home Page<br/>route assembly<br/>[page.tsx]"]
end

subgraph group_g_content["Content Model"]
  node_n_portfolio[("Portfolio Data<br/>content source<br/>[portfolio.ts]")]
  node_n_images(("Images<br/>static media"))
  node_n_resume["Resume PDF<br/>static asset<br/>[resume.pdf]"]
end

subgraph group_g_sections["Page Sections"]
  node_n_navbar["Navbar<br/>layout chrome<br/>[Navbar.tsx]"]
  node_n_footer["Footer<br/>layout chrome<br/>[Footer.tsx]"]
  node_n_section["Section<br/>layout wrapper<br/>[Section.tsx]"]
  node_n_hero["Hero<br/>intro section<br/>[Hero.tsx]"]
  node_n_hero_portrait["Portrait<br/>hero visual<br/>[HeroPortrait.tsx]"]
  node_n_about["About<br/>content section<br/>[About.tsx]"]
  node_n_experience["Experience<br/>content section<br/>[Experience.tsx]"]
  node_n_projects["Projects<br/>content section<br/>[Projects.tsx]"]
  node_n_skills["Skills<br/>content section<br/>[Skills.tsx]"]
  node_n_contact["Contact<br/>[Contact.tsx]"]
end

subgraph group_g_ui["Shared UI"]
  node_n_button["Button<br/>ui control<br/>[Button.tsx]"]
  node_n_heading["Section Heading<br/>ui pattern<br/>[SectionHeading.tsx]"]
  node_n_social["Social Icons<br/>ui links<br/>[SocialIcons.tsx]"]
  node_n_cursor(("Custom Cursor<br/>interaction ui<br/>[CustomCursor.tsx]"))
  node_n_magnetic{{"Magnetic<br/>interaction ui<br/>[Magnetic.tsx]"}}
end

subgraph group_g_support["Support"]
  node_n_use_magnetic["useMagnetic<br/>hook<br/>[useMagnetic.ts]"]
  node_n_utils["Utils<br/>helper lib<br/>[utils.ts]"]
end

node_n_layout -->|"loads"| node_n_globals
node_n_layout -->|"wraps"| node_n_page
node_n_page -->|"assembles"| node_n_navbar
node_n_page -->|"assembles"| node_n_hero
node_n_page -->|"assembles"| node_n_about
node_n_page -->|"assembles"| node_n_experience
node_n_page -->|"assembles"| node_n_projects
node_n_page -->|"assembles"| node_n_skills
node_n_page -->|"assembles"| node_n_contact
node_n_page -->|"assembles"| node_n_footer
node_n_hero -->|"contains"| node_n_hero_portrait
node_n_hero -->|"reads"| node_n_portfolio
node_n_about -->|"uses"| node_n_section
node_n_experience -->|"uses"| node_n_section
node_n_projects -->|"uses"| node_n_section
node_n_skills -->|"uses"| node_n_section
node_n_contact -->|"uses"| node_n_section
node_n_about -->|"uses"| node_n_heading
node_n_experience -->|"uses"| node_n_heading
node_n_projects -->|"uses"| node_n_heading
node_n_skills -->|"uses"| node_n_heading
node_n_contact -->|"uses"| node_n_heading
node_n_contact -->|"uses"| node_n_social
node_n_hero -->|"uses"| node_n_button
node_n_button -->|"enhanced by"| node_n_magnetic
node_n_magnetic -->|"backs"| node_n_use_magnetic
node_n_cursor -.->|"shares interaction model"| node_n_use_magnetic
node_n_hero -->|"uses"| node_n_images
node_n_projects -->|"reads"| node_n_portfolio
node_n_experience -->|"reads"| node_n_portfolio
node_n_skills -->|"reads"| node_n_portfolio
node_n_contact -->|"reads"| node_n_portfolio
node_n_page -->|"enables"| node_n_cursor
node_n_utils -.->|"supports"| node_n_button

click node_n_layout "https://github.com/aniprogramer/engineering-archive/blob/main/src/app/layout.tsx"
click node_n_globals "https://github.com/aniprogramer/engineering-archive/blob/main/src/app/globals.css"
click node_n_page "https://github.com/aniprogramer/engineering-archive/blob/main/src/app/page.tsx"
click node_n_portfolio "https://github.com/aniprogramer/engineering-archive/blob/main/src/data/portfolio.ts"
click node_n_images "https://github.com/aniprogramer/engineering-archive/tree/main/public/images"
click node_n_resume "https://github.com/aniprogramer/engineering-archive/blob/main/public/resume.pdf"
click node_n_navbar "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/layout/Navbar.tsx"
click node_n_footer "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/layout/Footer.tsx"
click node_n_section "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/layout/Section.tsx"
click node_n_hero "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Hero.tsx"
click node_n_hero_portrait "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/HeroPortrait.tsx"
click node_n_about "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/About.tsx"
click node_n_experience "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Experience.tsx"
click node_n_projects "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Projects.tsx"
click node_n_skills "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Skills.tsx"
click node_n_contact "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Contact.tsx"
click node_n_button "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/ui/Button.tsx"
click node_n_heading "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/ui/SectionHeading.tsx"
click node_n_social "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/ui/SocialIcons.tsx"
click node_n_cursor "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/ui/CustomCursor.tsx"
click node_n_magnetic "https://github.com/aniprogramer/engineering-archive/blob/main/src/components/ui/Magnetic.tsx"
click node_n_use_magnetic "https://github.com/aniprogramer/engineering-archive/blob/main/src/hooks/useMagnetic.ts"
click node_n_utils "https://github.com/aniprogramer/engineering-archive/blob/main/src/lib/utils.ts"

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_n_layout,node_n_globals,node_n_page toneBlue
class node_n_portfolio,node_n_images,node_n_resume toneAmber
class node_n_navbar,node_n_footer,node_n_section,node_n_hero,node_n_hero_portrait,node_n_about,node_n_experience,node_n_projects,node_n_skills,node_n_contact toneMint
class node_n_button,node_n_heading,node_n_social,node_n_cursor,node_n_magnetic toneRose
class node_n_use_magnetic,node_n_utils toneIndigo
```

## Components

### App Shell

Next.js route shell and global styling

- [Root Layout](https://github.com/aniprogramer/engineering-archive/blob/main/src/app/layout.tsx): Next.js shell · Defines the global document shell and wraps the app · `src/app/layout.tsx`
- [Global Styles](https://github.com/aniprogramer/engineering-archive/blob/main/src/app/globals.css): CSS base · Global styling and theme foundation · `src/app/globals.css`
- [Home Page](https://github.com/aniprogramer/engineering-archive/blob/main/src/app/page.tsx): route assembly · Main route that composes the landing page · `src/app/page.tsx`

### Content Model

Structured portfolio data and static deliverables

- [Portfolio Data](https://github.com/aniprogramer/engineering-archive/blob/main/src/data/portfolio.ts): content source · Central structured content for projects, experience, skills, and contact · `src/data/portfolio.ts`
- [Images](https://github.com/aniprogramer/engineering-archive/tree/main/public/images): static media · Portfolio imagery served as static assets · `public/images`
- [Resume PDF](https://github.com/aniprogramer/engineering-archive/blob/main/public/resume.pdf): static asset · Downloadable resume artifact · `public/resume.pdf`

### Page Sections

Composed narrative sections on the homepage

- [Navbar](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/layout/Navbar.tsx): layout chrome · Top-level navigation and page framing · `src/components/layout/Navbar.tsx`
- [Footer](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/layout/Footer.tsx): layout chrome · Bottom page chrome and closing links · `src/components/layout/Footer.tsx`
- [Section](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/layout/Section.tsx): layout wrapper · Consistent section spacing and anchors · `src/components/layout/Section.tsx`
- [Hero](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Hero.tsx): intro section · Primary landing introduction with text and visual emphasis · `src/components/sections/Hero.tsx`
- [Portrait](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/HeroPortrait.tsx): hero visual · Specialized portrait treatment for the hero area · `src/components/sections/HeroPortrait.tsx`
- [About](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/About.tsx): content section · Narrative background section · `src/components/sections/About.tsx`
- [Experience](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Experience.tsx): content section · Career and history section · `src/components/sections/Experience.tsx`
- [Projects](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Projects.tsx): content section · Project archive and showcase section · `src/components/sections/Projects.tsx`
- [Skills](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Skills.tsx): content section · Capabilities and tools section · `src/components/sections/Skills.tsx`
- [Contact](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/sections/Contact.tsx): contact section · Reach-out and social contact section · `src/components/sections/Contact.tsx`

### Shared UI

Reusable presentation and interaction primitives

- [Button](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/ui/Button.tsx): ui control · Reusable call-to-action control · `src/components/ui/Button.tsx`
- [Section Heading](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/ui/SectionHeading.tsx): ui pattern · Shared section title treatment · `src/components/ui/SectionHeading.tsx`
- [Social Icons](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/ui/SocialIcons.tsx): ui links · Reusable social/contact icon set · `src/components/ui/SocialIcons.tsx`
- [Custom Cursor](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/ui/CustomCursor.tsx): interaction ui · Global cursor enhancement for the site experience · `src/components/ui/CustomCursor.tsx`
- [Magnetic](https://github.com/aniprogramer/engineering-archive/blob/main/src/components/ui/Magnetic.tsx): interaction ui · Pointer-responsive wrapper for interactive elements · `src/components/ui/Magnetic.tsx`

### Support

Utility and hook layer

- [useMagnetic](https://github.com/aniprogramer/engineering-archive/blob/main/src/hooks/useMagnetic.ts): hook · Hook supporting magnetic pointer interaction · `src/hooks/useMagnetic.ts`
- [Utils](https://github.com/aniprogramer/engineering-archive/blob/main/src/lib/utils.ts): helper lib · Shared lightweight utility helpers · `src/lib/utils.ts`

## Connections

- Root Layout → Global Styles: loads · Global shell includes base styling
- Root Layout → Home Page: wraps · App layout contains the home route content
- Home Page → Navbar: assembles · Page composes top navigation
- Home Page → Hero: assembles · Page starts with the hero section
- Home Page → About: assembles · Page includes the about section
- Home Page → Experience: assembles · Page includes the experience section
- Home Page → Projects: assembles · Page includes the projects section
- Home Page → Skills: assembles · Page includes the skills section
- Home Page → Contact: assembles · Page ends with the contact section
- Home Page → Footer: assembles · Page closes with footer chrome
- Hero → Portrait: contains · Hero uses a dedicated portrait component
- Hero → Portfolio Data: reads · Hero text can be driven by shared portfolio content
- About → Section: uses · About is framed by the shared section wrapper
- Experience → Section: uses · Experience uses the shared section wrapper
- Projects → Section: uses · Projects uses the shared section wrapper
- Skills → Section: uses · Skills uses the shared section wrapper
- Contact → Section: uses · Contact uses the shared section wrapper
- About → Section Heading: uses · Section heading pattern keeps titles consistent
- Experience → Section Heading: uses · Section heading pattern keeps titles consistent
- Projects → Section Heading: uses · Section heading pattern keeps titles consistent
- Skills → Section Heading: uses · Section heading pattern keeps titles consistent
- Contact → Section Heading: uses · Section heading pattern keeps titles consistent
- Contact → Social Icons: uses · Contact section presents social links
- Hero → Button: uses · Hero likely features primary calls to action
- Button → Magnetic: enhanced by · Buttons can use the magnetic interaction wrapper
- Magnetic → useMagnetic: backs · Component is supported by the custom hook
- Custom Cursor → useMagnetic: shares interaction model · Cursor and magnetic effects belong to the same interaction layer
- Hero → Images: uses · Hero visual relies on static imagery
- Projects → Portfolio Data: reads · Projects are rendered from centralized portfolio data
- Experience → Portfolio Data: reads · Experience content comes from structured data
- Skills → Portfolio Data: reads · Skills content comes from structured data
- Contact → Portfolio Data: reads · Contact details are centralized in data
- Home Page → Custom Cursor: enables · Page can mount the custom cursor globally
- Utils → Button: supports · Shared helpers likely support UI class composition
