# omran-alrbedan1/waf architecture

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

- Interactive diagram: https://gitdiagram.com/omran-alrbedan1/waf
- Repository: https://github.com/omran-alrbedan1/waf

## Overview

WAF is a public-facing, Arabic/English business-services website presenting company information, services, execution capabilities, and project work. Visitors browse localized pages and can reach contact or service-request forms; submitted service requests are validated and passed to lead delivery. The graph includes the documented webhook integration and the site’s SEO/localization layer. Some feature implementations and the form’s client-to-API wiring were not excerpted, so those links are omitted rather than inferred.

Main entry points: [`src/lib/page-metadata.ts`](https://github.com/omran-alrbedan1/waf/blob/main/src/lib/page-metadata.ts) (Page Metadata), [`src/app/[locale]/page.tsx`](https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/page.tsx) (Home Page), [`src/app/[locale]/contact/page.tsx`](https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/contact/page.tsx) (Contact Page), [`src/app/[locale]/about/page.tsx`](https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/about/page.tsx) (About Page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Public Site"]
  node_home["Home Page<br/>[page.tsx]"]
  node_about["About Page<br/>[page.tsx]"]
  node_contact["Contact Page<br/>[page.tsx]"]
  node_homecontent["Home Sections"]
  node_aboutcontent["About Sections"]
  node_contactcontent["Contact Sections"]
end

subgraph group_offerings["Services &amp; Work"]
  node_serviceindex["Services Page<br/>[page.tsx]"]
  node_servicedetail["Service Detail<br/>[page.tsx]"]
  node_serviceviews["Service Views"]
  node_works["Works Page<br/>[page.tsx]"]
  node_workviews["Works Gallery"]
  node_execution["Execution Page<br/>[page.tsx]"]
end

subgraph group_leads["Lead Capture"]
  node_contactform["Contact Form<br/>[contact-form.tsx]"]
  node_requestapi["Service Request API<br/>[route.ts]"]
  node_validation["Form Validation<br/>[validation.ts]"]
  node_lead_delivery["Lead Delivery<br/>[lead-delivery.ts]"]
end

subgraph group_platform["Localization &amp; SEO"]
  node_middleware["Locale Middleware<br/>[middleware.ts]"]
  node_i18n["Locale Helpers<br/>[i18n.ts]"]
  node_metadata["Page Metadata<br/>[page-metadata.ts]"]
  node_seo["SEO Utilities<br/>[seo.ts]"]
  node_jsonld["Structured Data<br/>[json-ld.tsx]"]
end

node_visitor(("Site Visitor"))
node_webhook["Lead Webhook"]

node_visitor -->|"opens"| node_home
node_visitor -->|"browses"| node_about
node_visitor -->|"browses"| node_contact
node_visitor -->|"browses"| node_serviceindex
node_visitor -->|"browses"| node_works
node_home -->|"renders"| node_homecontent
node_about -->|"renders"| node_aboutcontent
node_contact -->|"renders"| node_contactcontent
node_serviceindex -->|"renders"| node_serviceviews
node_servicedetail -->|"renders"| node_serviceviews
node_works -->|"renders"| node_workviews
node_execution -->|"renders"| node_serviceviews
node_contact -.->|"presents"| node_contactform
node_requestapi -->|"validates with"| node_validation
node_requestapi -->|"delivers through"| node_lead_delivery
node_lead_delivery -->|"posts lead"| node_webhook
node_middleware -->|"uses"| node_i18n
node_home -->|"checks locale"| node_i18n
node_home -->|"builds metadata"| node_metadata
node_about -->|"builds metadata"| node_metadata
node_contact -->|"builds metadata"| node_metadata
node_serviceindex -->|"builds metadata"| node_metadata
node_works -->|"builds metadata"| node_metadata
node_metadata -->|"uses"| node_seo
node_home -->|"renders schema"| node_jsonld
node_about -->|"renders schema"| node_jsonld
node_contact -->|"renders schema"| node_jsonld
node_works -->|"renders schema"| node_jsonld

click node_home "https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/page.tsx"
click node_about "https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/about/page.tsx"
click node_contact "https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/contact/page.tsx"
click node_homecontent "https://github.com/omran-alrbedan1/waf/tree/main/src/features/home/components"
click node_aboutcontent "https://github.com/omran-alrbedan1/waf/tree/main/src/features/about/components"
click node_contactcontent "https://github.com/omran-alrbedan1/waf/tree/main/src/features/contact/components"
click node_serviceindex "https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/services/page.tsx"
click node_servicedetail "https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/services/%5Bslug%5D/page.tsx"
click node_serviceviews "https://github.com/omran-alrbedan1/waf/tree/main/src/features/services/components"
click node_works "https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/works/page.tsx"
click node_workviews "https://github.com/omran-alrbedan1/waf/tree/main/src/features/works/components"
click node_execution "https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/execution/page.tsx"
click node_contactform "https://github.com/omran-alrbedan1/waf/blob/main/src/components/forms/contact-form.tsx"
click node_requestapi "https://github.com/omran-alrbedan1/waf/blob/main/src/app/api/service-request/route.ts"
click node_validation "https://github.com/omran-alrbedan1/waf/blob/main/src/lib/forms/validation.ts"
click node_lead_delivery "https://github.com/omran-alrbedan1/waf/blob/main/src/lib/server/lead-delivery.ts"
click node_middleware "https://github.com/omran-alrbedan1/waf/blob/main/middleware.ts"
click node_i18n "https://github.com/omran-alrbedan1/waf/blob/main/src/lib/i18n.ts"
click node_metadata "https://github.com/omran-alrbedan1/waf/blob/main/src/lib/page-metadata.ts"
click node_seo "https://github.com/omran-alrbedan1/waf/blob/main/src/lib/seo.ts"
click node_jsonld "https://github.com/omran-alrbedan1/waf/blob/main/src/components/seo/json-ld.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_home,node_about,node_contact,node_homecontent,node_aboutcontent,node_contactcontent toneBlue
class node_serviceindex,node_servicedetail,node_serviceviews,node_works,node_workviews,node_execution toneAmber
class node_contactform,node_requestapi,node_validation,node_lead_delivery,node_webhook toneMint
class node_middleware,node_i18n,node_metadata,node_seo,node_jsonld toneRose
class node_visitor toneIndigo
```

## Components

### Public Site

- [Home Page](https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/page.tsx): `src/app/[locale]/page.tsx`
- [About Page](https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/about/page.tsx): `src/app/[locale]/about/page.tsx`
- [Contact Page](https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/contact/page.tsx): `src/app/[locale]/contact/page.tsx`
- [Home Sections](https://github.com/omran-alrbedan1/waf/tree/main/src/features/home/components): `src/features/home/components`
- [About Sections](https://github.com/omran-alrbedan1/waf/tree/main/src/features/about/components): `src/features/about/components`
- [Contact Sections](https://github.com/omran-alrbedan1/waf/tree/main/src/features/contact/components): `src/features/contact/components`

### Services & Work

- [Services Page](https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/services/page.tsx): `src/app/[locale]/services/page.tsx`
- [Service Detail](https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/services/%5Bslug%5D/page.tsx): `src/app/[locale]/services/[slug]/page.tsx`
- [Service Views](https://github.com/omran-alrbedan1/waf/tree/main/src/features/services/components): `src/features/services/components`
- [Works Page](https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/works/page.tsx): `src/app/[locale]/works/page.tsx`
- [Works Gallery](https://github.com/omran-alrbedan1/waf/tree/main/src/features/works/components): `src/features/works/components`
- [Execution Page](https://github.com/omran-alrbedan1/waf/blob/main/src/app/%5Blocale%5D/execution/page.tsx): `src/app/[locale]/execution/page.tsx`

### Lead Capture

- [Contact Form](https://github.com/omran-alrbedan1/waf/blob/main/src/components/forms/contact-form.tsx): `src/components/forms/contact-form.tsx`
- [Service Request API](https://github.com/omran-alrbedan1/waf/blob/main/src/app/api/service-request/route.ts): `src/app/api/service-request/route.ts`
- [Form Validation](https://github.com/omran-alrbedan1/waf/blob/main/src/lib/forms/validation.ts): `src/lib/forms/validation.ts`
- [Lead Delivery](https://github.com/omran-alrbedan1/waf/blob/main/src/lib/server/lead-delivery.ts): `src/lib/server/lead-delivery.ts`

### Localization & SEO

- [Locale Middleware](https://github.com/omran-alrbedan1/waf/blob/main/middleware.ts): `middleware.ts`
- [Locale Helpers](https://github.com/omran-alrbedan1/waf/blob/main/src/lib/i18n.ts): `src/lib/i18n.ts`
- [Page Metadata](https://github.com/omran-alrbedan1/waf/blob/main/src/lib/page-metadata.ts): `src/lib/page-metadata.ts`
- [SEO Utilities](https://github.com/omran-alrbedan1/waf/blob/main/src/lib/seo.ts): `src/lib/seo.ts`
- [Structured Data](https://github.com/omran-alrbedan1/waf/blob/main/src/components/seo/json-ld.tsx): `src/components/seo/json-ld.tsx`

### Other components

- **Site Visitor**
- **Lead Webhook**

## Connections

- Site Visitor → Home Page: opens (evidence: `README.md`)
- Site Visitor → About Page: browses (evidence: `README.md`)
- Site Visitor → Contact Page: browses (evidence: `README.md`)
- Site Visitor → Services Page: browses (evidence: `README.md`)
- Site Visitor → Works Page: browses (evidence: `README.md`)
- Home Page → Home Sections: renders (evidence: `src/app/[locale]/page.tsx`)
- About Page → About Sections: renders (evidence: `src/app/[locale]/about/page.tsx`)
- Contact Page → Contact Sections: renders (evidence: `src/app/[locale]/contact/page.tsx`)
- Services Page → Service Views: renders (evidence: `src/app/[locale]/services/page.tsx`)
- Service Detail → Service Views: renders
- Works Page → Works Gallery: renders (evidence: `src/app/[locale]/works/page.tsx`)
- Execution Page → Service Views: renders (evidence: `src/app/[locale]/execution/page.tsx`)
- Contact Page → Contact Form: presents
- Service Request API → Form Validation: validates with (evidence: `src/app/api/service-request/route.ts`)
- Service Request API → Lead Delivery: delivers through (evidence: `src/app/api/service-request/route.ts`)
- Lead Delivery → Lead Webhook: posts lead (evidence: `README.md`)
- Locale Middleware → Locale Helpers: uses (evidence: `middleware.ts`)
- Home Page → Locale Helpers: checks locale (evidence: `src/app/[locale]/page.tsx`)
- Home Page → Page Metadata: builds metadata (evidence: `src/app/[locale]/page.tsx`)
- About Page → Page Metadata: builds metadata (evidence: `src/app/[locale]/about/page.tsx`)
- Contact Page → Page Metadata: builds metadata (evidence: `src/app/[locale]/contact/page.tsx`)
- Services Page → Page Metadata: builds metadata (evidence: `src/app/[locale]/services/page.tsx`)
- Works Page → Page Metadata: builds metadata (evidence: `src/app/[locale]/works/page.tsx`)
- Page Metadata → SEO Utilities: uses (evidence: `src/lib/page-metadata.ts`)
- Home Page → Structured Data: renders schema (evidence: `src/app/[locale]/page.tsx`)
- About Page → Structured Data: renders schema (evidence: `src/app/[locale]/about/page.tsx`)
- Contact Page → Structured Data: renders schema (evidence: `src/app/[locale]/contact/page.tsx`)
- Works Page → Structured Data: renders schema (evidence: `src/app/[locale]/works/page.tsx`)
