# fawazdigitech/fabu-website architecture

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

- Interactive diagram: https://gitdiagram.com/fawazdigitech/fabu-website
- Repository: https://github.com/fawazdigitech/fabu-website

## Overview

FawazBHSEO is a public PHP website for an independent SEO, AEO and GEO consultant. Visitors discover services and regional offerings through the homepage, service pages, location pages and educational articles, then can make contact; a separate chat endpoint provides an AI assistant. The site also supports multilingual presentation and public directory/sitemap navigation. The graph follows documented and excerpted relationships; some page families and integrations are represented from the tree or README, so their unverified runtime links are omitted.

Main entry points: [`index.php`](https://github.com/fawazdigitech/fabu-website/blob/main/index.php) (Homepage), [`includes/location-page.php`](https://github.com/fawazdigitech/fabu-website/blob/main/includes/location-page.php) (Regional service pages), [`includes/footer.php`](https://github.com/fawazdigitech/fabu-website/blob/main/includes/footer.php) (Shared footer), [`includes/head.php`](https://github.com/fawazdigitech/fabu-website/blob/main/includes/head.php) (Page head and metadata)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Public Website"]
  node_home["Homepage<br/>[index.php]"]
end

subgraph group_content["Services and Content"]
  node_service_offering["Services and pricing<br/>[seo-services.php]"]
  node_location_pages["Regional service pages<br/>[location-page.php]"]
  node_seo_specialisms["SEO specialisms"]
  node_ai_specialisms["AEO and GEO<br/>[aeo-consultant.php]"]
  node_articles["SEO articles"]
  node_blog_index["Blog index<br/>[blog.php]"]
end

subgraph group_shared["Shared Presentation"]
  node_site_navigation["Navigation and directory"]
  node_header["Shared header<br/>[header.php]"]
  node_footer["Shared footer<br/>[footer.php]"]
  node_head["Page head and metadata<br/>[head.php]"]
  node_i18n["Language handling<br/>[i18n.php]"]
  node_locale_registry[("Locale registry")]
  node_jsonld["Structured data<br/>[jsonld.php]"]
end

subgraph group_operations["Visitor Tools"]
  node_contact_form["Contact form<br/>[contact-form.php]"]
  node_floating_button["WhatsApp action"]
  node_ai_assistant["AI assistant UI<br/>[ai-assistant.php]"]
  node_chat_endpoint["Chat endpoint<br/>[chat.php]"]
  node_indexnow["IndexNow trigger"]
  node_sitemap["Public sitemap<br/>[sitemap.php]"]
end

node_visitor(("Website visitor"))
node_gemini{{"Gemini service"}}
node_whatsapp{{"WhatsApp"}}

node_visitor -->|"visits"| node_home
node_home -->|"renders via"| node_head
node_home -->|"renders via"| node_header
node_home -->|"includes"| node_contact_form
node_home -->|"includes"| node_floating_button
node_home -->|"includes"| node_footer
node_service_offering -->|"uses renderer"| node_location_pages
node_location_pages -->|"includes"| node_head
node_location_pages -->|"includes"| node_header
node_location_pages -->|"includes"| node_contact_form
node_location_pages -->|"includes"| node_floating_button
node_location_pages -->|"includes"| node_footer
node_articles -->|"includes"| node_head
node_articles -->|"includes"| node_header
node_articles -->|"includes"| node_floating_button
node_articles -->|"includes"| node_footer
node_head -->|"loads"| node_i18n
node_head -->|"uses"| node_jsonld
node_header -->|"loads"| node_i18n
node_i18n -->|"reads"| node_locale_registry
node_footer -->|"loads"| node_header
node_footer -->|"loads"| node_ai_assistant
node_footer -->|"loads"| node_site_navigation
node_contact_form -->|"opens with message"| node_whatsapp
node_floating_button -->|"links to"| node_whatsapp
node_ai_assistant -.->|"sends chat"| node_chat_endpoint
node_chat_endpoint -.->|"queries"| node_gemini
node_visitor -.->|"may trigger"| node_indexnow
node_visitor -.->|"requests"| node_sitemap

click node_home "https://github.com/fawazdigitech/fabu-website/blob/main/index.php"
click node_service_offering "https://github.com/fawazdigitech/fabu-website/blob/main/seo-services.php"
click node_location_pages "https://github.com/fawazdigitech/fabu-website/blob/main/includes/location-page.php"
click node_seo_specialisms "https://github.com/fawazdigitech/fabu-website/blob/main/technical-seo-audit.php"
click node_ai_specialisms "https://github.com/fawazdigitech/fabu-website/blob/main/aeo-consultant.php"
click node_articles "https://github.com/fawazdigitech/fabu-website/blob/main/blogs/local-seo-checklist-karnataka.php"
click node_blog_index "https://github.com/fawazdigitech/fabu-website/blob/main/blog.php"
click node_site_navigation "https://github.com/fawazdigitech/fabu-website/blob/main/includes/site-directory-links.php"
click node_header "https://github.com/fawazdigitech/fabu-website/blob/main/includes/header.php"
click node_footer "https://github.com/fawazdigitech/fabu-website/blob/main/includes/footer.php"
click node_head "https://github.com/fawazdigitech/fabu-website/blob/main/includes/head.php"
click node_i18n "https://github.com/fawazdigitech/fabu-website/blob/main/includes/i18n.php"
click node_locale_registry "https://github.com/fawazdigitech/fabu-website/blob/main/includes/locale-registry.php"
click node_jsonld "https://github.com/fawazdigitech/fabu-website/blob/main/includes/jsonld.php"
click node_contact_form "https://github.com/fawazdigitech/fabu-website/blob/main/includes/contact-form.php"
click node_floating_button "https://github.com/fawazdigitech/fabu-website/blob/main/includes/floating-button.php"
click node_ai_assistant "https://github.com/fawazdigitech/fabu-website/blob/main/includes/ai-assistant.php"
click node_chat_endpoint "https://github.com/fawazdigitech/fabu-website/blob/main/api/chat.php"
click node_indexnow "https://github.com/fawazdigitech/fabu-website/blob/main/indexnow-submit.php"
click node_sitemap "https://github.com/fawazdigitech/fabu-website/blob/main/sitemap.php"

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 toneBlue
class node_service_offering,node_location_pages,node_seo_specialisms,node_ai_specialisms,node_articles,node_blog_index toneAmber
class node_site_navigation,node_header,node_footer,node_head,node_i18n,node_locale_registry,node_jsonld toneMint
class node_contact_form,node_floating_button,node_ai_assistant,node_chat_endpoint,node_indexnow,node_sitemap toneRose
class node_visitor,node_gemini,node_whatsapp toneIndigo
```

## Components

### Public Website

- [Homepage](https://github.com/fawazdigitech/fabu-website/blob/main/index.php): `index.php`

### Services and Content

- [Services and pricing](https://github.com/fawazdigitech/fabu-website/blob/main/seo-services.php): `seo-services.php`
- [Regional service pages](https://github.com/fawazdigitech/fabu-website/blob/main/includes/location-page.php): `includes/location-page.php`
- [SEO specialisms](https://github.com/fawazdigitech/fabu-website/blob/main/technical-seo-audit.php): `technical-seo-audit.php`
- [AEO and GEO](https://github.com/fawazdigitech/fabu-website/blob/main/aeo-consultant.php): `aeo-consultant.php`
- [SEO articles](https://github.com/fawazdigitech/fabu-website/blob/main/blogs/local-seo-checklist-karnataka.php): `blogs/local-seo-checklist-karnataka.php`
- [Blog index](https://github.com/fawazdigitech/fabu-website/blob/main/blog.php): `blog.php`

### Shared Presentation

- [Navigation and directory](https://github.com/fawazdigitech/fabu-website/blob/main/includes/site-directory-links.php): `includes/site-directory-links.php`
- [Shared header](https://github.com/fawazdigitech/fabu-website/blob/main/includes/header.php): `includes/header.php`
- [Shared footer](https://github.com/fawazdigitech/fabu-website/blob/main/includes/footer.php): `includes/footer.php`
- [Page head and metadata](https://github.com/fawazdigitech/fabu-website/blob/main/includes/head.php): `includes/head.php`
- [Language handling](https://github.com/fawazdigitech/fabu-website/blob/main/includes/i18n.php): `includes/i18n.php`
- [Locale registry](https://github.com/fawazdigitech/fabu-website/blob/main/includes/locale-registry.php): `includes/locale-registry.php`
- [Structured data](https://github.com/fawazdigitech/fabu-website/blob/main/includes/jsonld.php): `includes/jsonld.php`

### Visitor Tools

- [Contact form](https://github.com/fawazdigitech/fabu-website/blob/main/includes/contact-form.php): `includes/contact-form.php`
- [WhatsApp action](https://github.com/fawazdigitech/fabu-website/blob/main/includes/floating-button.php): `includes/floating-button.php`
- [AI assistant UI](https://github.com/fawazdigitech/fabu-website/blob/main/includes/ai-assistant.php): `includes/ai-assistant.php`
- [Chat endpoint](https://github.com/fawazdigitech/fabu-website/blob/main/api/chat.php): `api/chat.php`
- [IndexNow trigger](https://github.com/fawazdigitech/fabu-website/blob/main/indexnow-submit.php): `indexnow-submit.php`
- [Public sitemap](https://github.com/fawazdigitech/fabu-website/blob/main/sitemap.php): `sitemap.php`

### Other components

- **Website visitor**
- **Gemini service**
- **WhatsApp**

## Connections

- Website visitor → Homepage: visits (evidence: `README.md`)
- Homepage → Page head and metadata: renders via (evidence: `index.php`)
- Homepage → Shared header: renders via (evidence: `index.php`)
- Homepage → Contact form: includes (evidence: `index.php`)
- Homepage → WhatsApp action: includes (evidence: `index.php`)
- Homepage → Shared footer: includes (evidence: `index.php`)
- Services and pricing → Regional service pages: uses renderer
- Regional service pages → Page head and metadata: includes (evidence: `includes/location-page.php`)
- Regional service pages → Shared header: includes (evidence: `includes/location-page.php`)
- Regional service pages → Contact form: includes (evidence: `includes/location-page.php`)
- Regional service pages → WhatsApp action: includes (evidence: `includes/location-page.php`)
- Regional service pages → Shared footer: includes (evidence: `includes/location-page.php`)
- SEO articles → Page head and metadata: includes (evidence: `blogs/local-seo-checklist-karnataka.php`)
- SEO articles → Shared header: includes (evidence: `blogs/local-seo-checklist-karnataka.php`)
- SEO articles → WhatsApp action: includes (evidence: `blogs/local-seo-checklist-karnataka.php`)
- SEO articles → Shared footer: includes (evidence: `blogs/local-seo-checklist-karnataka.php`)
- Page head and metadata → Language handling: loads (evidence: `includes/head.php`)
- Page head and metadata → Structured data: uses (evidence: `includes/head.php`)
- Shared header → Language handling: loads (evidence: `includes/header.php`)
- Language handling → Locale registry: reads (evidence: `includes/i18n.php`)
- Shared footer → Shared header: loads (evidence: `includes/footer.php`)
- Shared footer → AI assistant UI: loads (evidence: `includes/footer.php`)
- Shared footer → Navigation and directory: loads (evidence: `includes/footer.php`)
- Contact form → WhatsApp: opens with message (evidence: `includes/contact-form.php`)
- WhatsApp action → WhatsApp: links to (evidence: `includes/floating-button.php`)
- AI assistant UI → Chat endpoint: sends chat
- Chat endpoint → Gemini service: queries (evidence: `README.md`)
- Website visitor → IndexNow trigger: may trigger (evidence: `README.md`)
- Website visitor → Public sitemap: requests (evidence: `README.md`)
