# j-jmn/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/j-jmn/portfolio
- Repository: https://github.com/j-jmn/portfolio

## Overview

INTAVOR is a public-facing website for a Nairobi web and application development studio. Visitors browse its services, work, studio information, and client experience, then can make an enquiry through the contact form. The site also presents testimonials and ongoing support relationships, and provides search metadata and crawl files. The contact implementation is evidenced by the route’s imports and README description; detailed request handling and mail delivery are summarized at the subsystem level because not all implementation excerpts are shown.

Main entry points: [`lib/data.ts`](https://github.com/j-jmn/portfolio/blob/main/lib/data.ts) (Brand and site data), [`app/api/contact/route.ts`](https://github.com/j-jmn/portfolio/blob/main/app/api/contact/route.ts) (Contact endpoint), [`app/page.tsx`](https://github.com/j-jmn/portfolio/blob/main/app/page.tsx) (Home page), [`lib/contact-handler.ts`](https://github.com/j-jmn/portfolio/blob/main/lib/contact-handler.ts) (Request handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website experience"]
  node_home["Home page<br/>[page.tsx]"]
  node_navigation["Site navigation<br/>[Navbar.tsx]"]
end

subgraph group_content["Studio and work content"]
  node_shared_data["Brand and site data<br/>[data.ts]"]
  node_about["About page<br/>[page.tsx]"]
  node_experience["Experience page<br/>[page.tsx]"]
  node_service_pages["Service pages<br/>[ServicePage.tsx]"]
  node_website_service["Website development<br/>[page.tsx]"]
  node_application_service["Web applications<br/>[page.tsx]"]
  node_projects["Project portfolio<br/>[page.tsx]"]
  node_project_detail["Project details<br/>[page.tsx]"]
  node_testimonials["Client testimonials"]
end

subgraph group_contact["Contact and email"]
  node_contact_page["Contact page<br/>[page.tsx]"]
  node_contact_form["Contact form<br/>[ContactForm.tsx]"]
  node_contact_api["Contact endpoint<br/>[route.ts]"]
  node_contact_handler["Request handling<br/>[contact-handler.ts]"]
  node_rate_limit["Rate limiting"]
  node_email_delivery["Email delivery<br/>[contact-email.ts]"]
end

subgraph group_discovery["Search discovery"]
  node_structured_data["Structured data<br/>[StructuredData.tsx]"]
  node_structured_data_lib["Structured data builder<br/>[structured-data.ts]"]
  node_site_metadata["Site metadata<br/>[site.ts]"]
  node_crawl_files["Robots and sitemap<br/>[sitemap.ts]"]
end

node_visitor(("Site visitor"))
node_zoho["Zoho SMTP"]

node_visitor -->|"browses"| node_home
node_visitor -->|"uses navigation"| node_navigation
node_visitor -->|"opens contact"| node_contact_page
node_home -->|"renders content"| node_shared_data
node_home -->|"renders section"| node_testimonials
node_visitor -->|"browses"| node_about
node_about -->|"reads content"| node_shared_data
node_visitor -->|"browses"| node_experience
node_experience -->|"reads content"| node_shared_data
node_visitor -->|"browses"| node_website_service
node_visitor -->|"browses"| node_application_service
node_website_service -->|"uses template"| node_service_pages
node_application_service -->|"uses template"| node_service_pages
node_service_pages -->|"renders content"| node_shared_data
node_visitor -->|"browses"| node_projects
node_visitor -->|"opens project"| node_project_detail
node_testimonials -->|"reads testimonials"| node_shared_data
node_contact_page -->|"renders form"| node_contact_form
node_contact_form -.->|"submits enquiry"| node_contact_api
node_contact_api -->|"delegates handling"| node_contact_handler
node_contact_api -->|"uses mail delivery"| node_email_delivery
node_contact_api -->|"uses rate limit"| node_rate_limit
node_contact_handler -->|"checks requests"| node_rate_limit
node_contact_handler -.->|"requests email"| node_email_delivery
node_email_delivery -->|"sends via SMTP"| node_zoho
node_visitor -.->|"crawler discovery"| node_crawl_files
node_structured_data -->|"uses builder"| node_structured_data_lib
node_structured_data_lib -->|"reads site origin"| node_site_metadata

click node_home "https://github.com/j-jmn/portfolio/blob/main/app/page.tsx"
click node_navigation "https://github.com/j-jmn/portfolio/blob/main/components/layout/Navbar.tsx"
click node_shared_data "https://github.com/j-jmn/portfolio/blob/main/lib/data.ts"
click node_about "https://github.com/j-jmn/portfolio/blob/main/app/about/page.tsx"
click node_experience "https://github.com/j-jmn/portfolio/blob/main/app/experience/page.tsx"
click node_service_pages "https://github.com/j-jmn/portfolio/blob/main/components/services/ServicePage.tsx"
click node_website_service "https://github.com/j-jmn/portfolio/blob/main/app/services/website-development/page.tsx"
click node_application_service "https://github.com/j-jmn/portfolio/blob/main/app/services/web-application-development/page.tsx"
click node_projects "https://github.com/j-jmn/portfolio/blob/main/app/projects/page.tsx"
click node_project_detail "https://github.com/j-jmn/portfolio/blob/main/app/projects/%5Bslug%5D/page.tsx"
click node_testimonials "https://github.com/j-jmn/portfolio/blob/main/components/home/ClientTestimonials.tsx"
click node_contact_page "https://github.com/j-jmn/portfolio/blob/main/app/contact/page.tsx"
click node_contact_form "https://github.com/j-jmn/portfolio/blob/main/components/contact/ContactForm.tsx"
click node_contact_api "https://github.com/j-jmn/portfolio/blob/main/app/api/contact/route.ts"
click node_contact_handler "https://github.com/j-jmn/portfolio/blob/main/lib/contact-handler.ts"
click node_rate_limit "https://github.com/j-jmn/portfolio/blob/main/lib/contact-rate-limit.ts"
click node_email_delivery "https://github.com/j-jmn/portfolio/blob/main/lib/contact-email.ts"
click node_structured_data "https://github.com/j-jmn/portfolio/blob/main/components/seo/StructuredData.tsx"
click node_structured_data_lib "https://github.com/j-jmn/portfolio/blob/main/lib/structured-data.ts"
click node_site_metadata "https://github.com/j-jmn/portfolio/blob/main/lib/site.ts"
click node_crawl_files "https://github.com/j-jmn/portfolio/blob/main/app/sitemap.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_home,node_navigation toneBlue
class node_shared_data,node_about,node_experience,node_service_pages,node_website_service,node_application_service,node_projects,node_project_detail,node_testimonials toneAmber
class node_contact_page,node_contact_form,node_contact_api,node_contact_handler,node_rate_limit,node_email_delivery toneMint
class node_structured_data,node_structured_data_lib,node_site_metadata,node_crawl_files toneRose
class node_visitor,node_zoho toneIndigo
```

## Components

### Website experience

- [Home page](https://github.com/j-jmn/portfolio/blob/main/app/page.tsx): `app/page.tsx`
- [Site navigation](https://github.com/j-jmn/portfolio/blob/main/components/layout/Navbar.tsx): `components/layout/Navbar.tsx`

### Studio and work content

- [Brand and site data](https://github.com/j-jmn/portfolio/blob/main/lib/data.ts): `lib/data.ts`
- [About page](https://github.com/j-jmn/portfolio/blob/main/app/about/page.tsx): `app/about/page.tsx`
- [Experience page](https://github.com/j-jmn/portfolio/blob/main/app/experience/page.tsx): `app/experience/page.tsx`
- [Service pages](https://github.com/j-jmn/portfolio/blob/main/components/services/ServicePage.tsx): `components/services/ServicePage.tsx`
- [Website development](https://github.com/j-jmn/portfolio/blob/main/app/services/website-development/page.tsx): `app/services/website-development/page.tsx`
- [Web applications](https://github.com/j-jmn/portfolio/blob/main/app/services/web-application-development/page.tsx): `app/services/web-application-development/page.tsx`
- [Project portfolio](https://github.com/j-jmn/portfolio/blob/main/app/projects/page.tsx): `app/projects/page.tsx`
- [Project details](https://github.com/j-jmn/portfolio/blob/main/app/projects/%5Bslug%5D/page.tsx): `app/projects/[slug]/page.tsx`
- [Client testimonials](https://github.com/j-jmn/portfolio/blob/main/components/home/ClientTestimonials.tsx): `components/home/ClientTestimonials.tsx`

### Contact and email

- [Contact page](https://github.com/j-jmn/portfolio/blob/main/app/contact/page.tsx): `app/contact/page.tsx`
- [Contact form](https://github.com/j-jmn/portfolio/blob/main/components/contact/ContactForm.tsx): `components/contact/ContactForm.tsx`
- [Contact endpoint](https://github.com/j-jmn/portfolio/blob/main/app/api/contact/route.ts): `app/api/contact/route.ts`
- [Request handling](https://github.com/j-jmn/portfolio/blob/main/lib/contact-handler.ts): `lib/contact-handler.ts`
- [Rate limiting](https://github.com/j-jmn/portfolio/blob/main/lib/contact-rate-limit.ts): `lib/contact-rate-limit.ts`
- [Email delivery](https://github.com/j-jmn/portfolio/blob/main/lib/contact-email.ts): `lib/contact-email.ts`

### Search discovery

- [Structured data](https://github.com/j-jmn/portfolio/blob/main/components/seo/StructuredData.tsx): `components/seo/StructuredData.tsx`
- [Structured data builder](https://github.com/j-jmn/portfolio/blob/main/lib/structured-data.ts): `lib/structured-data.ts`
- [Site metadata](https://github.com/j-jmn/portfolio/blob/main/lib/site.ts): `lib/site.ts`
- [Robots and sitemap](https://github.com/j-jmn/portfolio/blob/main/app/sitemap.ts): `app/sitemap.ts`

### Other components

- **Site visitor**
- **Zoho SMTP**

## Connections

- Site visitor → Home page: browses (evidence: `app/page.tsx`)
- Site visitor → Site navigation: uses navigation (evidence: `components/layout/Navbar.tsx`)
- Site visitor → Contact page: opens contact
- Home page → Brand and site data: renders content (evidence: `app/page.tsx`)
- Home page → Client testimonials: renders section (evidence: `app/page.tsx`)
- Site visitor → About page: browses (evidence: `app/about/page.tsx`)
- About page → Brand and site data: reads content (evidence: `app/about/page.tsx`)
- Site visitor → Experience page: browses (evidence: `app/experience/page.tsx`)
- Experience page → Brand and site data: reads content
- Site visitor → Website development: browses (evidence: `app/services/website-development/page.tsx`)
- Site visitor → Web applications: browses (evidence: `app/services/web-application-development/page.tsx`)
- Website development → Service pages: uses template (evidence: `app/services/website-development/page.tsx`)
- Web applications → Service pages: uses template (evidence: `app/services/web-application-development/page.tsx`)
- Service pages → Brand and site data: renders content (evidence: `components/services/ServicePage.tsx`)
- Site visitor → Project portfolio: browses (evidence: `app/projects/page.tsx`)
- Site visitor → Project details: opens project (evidence: `app/projects/[slug]/page.tsx`)
- Client testimonials → Brand and site data: reads testimonials (evidence: `components/home/ClientTestimonials.tsx`)
- Contact page → Contact form: renders form (evidence: `app/contact/page.tsx`)
- Contact form → Contact endpoint: submits enquiry (evidence: `README.md`)
- Contact endpoint → Request handling: delegates handling (evidence: `app/api/contact/route.ts`)
- Contact endpoint → Email delivery: uses mail delivery (evidence: `app/api/contact/route.ts`)
- Contact endpoint → Rate limiting: uses rate limit (evidence: `app/api/contact/route.ts`)
- Request handling → Rate limiting: checks requests (evidence: `lib/contact-handler.ts`)
- Request handling → Email delivery: requests email
- Email delivery → Zoho SMTP: sends via SMTP (evidence: `README.md`)
- Site visitor → Robots and sitemap: crawler discovery (evidence: `README.md`)
- Structured data → Structured data builder: uses builder (evidence: `app/projects/[slug]/page.tsx`)
- Structured data builder → Site metadata: reads site origin (evidence: `lib/structured-data.ts`)
