# tousifm784/web_building_vibe_coded architecture

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

- Interactive diagram: https://gitdiagram.com/tousifm784/web_building_vibe_coded
- Repository: https://github.com/tousifm784/web_building_vibe_coded

## Overview

Al Faroque Tours and Travels is a Next.js travel inquiry website for guided Umrah, Hajj, Ziyarat, visa support, and custom vehicle travel. Visitors explore trip information or package details, submit an inquiry, and receive email/WhatsApp follow-up; custom vehicle requests open WhatsApp directly. The graph preserves the documented content areas and shared components. Some route implementations and the inquiry API are not excerpted, so their relationships are shown only where the README or source index supports them.

Main entry points: [`components/lead-form.tsx`](https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/lead-form.tsx) (Lead form), [`app/layout.tsx`](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/layout.tsx) (Site layout), [`app/page.tsx`](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/page.tsx) (Home), [`components/custom-travel-page.tsx`](https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/custom-travel-page.tsx) (Custom travel)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pilgrimage["Pilgrimage content"]
  node_home["Home<br/>[page.tsx]"]
  node_umrah_list["Umrah packages<br/>[page.tsx]"]
  node_umrah_detail["Package detail<br/>[page.tsx]"]
  node_hajj["Hajj inquiries<br/>[page.tsx]"]
  node_ziyarat["Ziyarat tours<br/>[page.tsx]"]
  node_visa["Umrah visa<br/>[page.tsx]"]
  node_guide["Umrah guide<br/>[page.tsx]"]
  node_past["Past tours<br/>[page.tsx]"]
  node_contact["Contact<br/>[page.tsx]"]
end

subgraph group_travel["Custom travel"]
  node_custom_page["Custom travel"]
  node_car_fleet["Vehicle selector<br/>[car-fleet.tsx]"]
end

subgraph group_inquiries["Inquiry handling"]
  node_lead_form["Lead form<br/>[lead-form.tsx]"]
  node_inquiry_api["Inquiry endpoint<br/>[route.ts]"]
  node_inquiry_validation["Inquiry validation<br/>[inquiry.ts]"]
end

subgraph group_shared["Shared presentation"]
  node_package_card["Package card<br/>[package-card.tsx]"]
  node_package_filter["Package filter<br/>[package-filter.tsx]"]
  node_page_parts["Page sections<br/>[page-parts.tsx]"]
  node_header["Site navigation<br/>[site-header.tsx]"]
  node_mobile_cta["Mobile CTA<br/>[mobile-cta.tsx]"]
  node_jsonld["Structured data<br/>[json-ld.tsx]"]
  node_schema["Schema generators<br/>[schema.ts]"]
  node_layout["Site layout<br/>[layout.tsx]"]
end

subgraph group_domain["Travel data"]
  node_package_data["Package catalog<br/>[packages.ts]"]
  node_travel_data["Travel catalog<br/>[custom-travel.ts]"]
  node_package_types["Travel contracts<br/>[package.ts]"]
end

node_visitor(("Visitor"))
node_email["SMTP email"]
node_whatsapp["WhatsApp"]

node_visitor -->|"visits"| node_home
node_visitor -->|"browses"| node_umrah_list
node_visitor -->|"explores"| node_hajj
node_visitor -->|"explores"| node_ziyarat
node_visitor -->|"reads"| node_visa
node_visitor -->|"reads"| node_guide
node_visitor -->|"views"| node_past
node_visitor -->|"contacts"| node_contact
node_visitor -->|"plans travel"| node_custom_page
node_home -->|"loads"| node_package_data
node_home -->|"renders"| node_package_card
node_home -->|"renders"| node_lead_form
node_umrah_list -->|"loads"| node_package_data
node_umrah_list -->|"renders"| node_package_filter
node_umrah_detail -->|"loads"| node_package_data
node_umrah_detail -->|"renders"| node_lead_form
node_umrah_detail -->|"builds trip schema"| node_schema
node_guide -->|"builds FAQ schema"| node_schema
node_guide -->|"renders"| node_jsonld
node_contact -->|"renders"| node_lead_form
node_hajj -->|"renders"| node_lead_form
node_custom_page -->|"loads"| node_travel_data
node_custom_page -->|"renders"| node_car_fleet
node_custom_page -->|"opens request"| node_whatsapp
node_lead_form -->|"posts inquiry"| node_inquiry_api
node_inquiry_api -->|"uses validation"| node_inquiry_validation
node_inquiry_api -.->|"sends alert"| node_email
node_inquiry_api -.->|"returns fallback link"| node_whatsapp
node_package_data -->|"uses types"| node_package_types
node_package_card -->|"uses types"| node_package_types
node_package_filter -->|"renders"| node_package_card
node_schema -->|"uses types"| node_package_types
node_layout -->|"renders"| node_header
node_layout -->|"renders"| node_mobile_cta
node_layout -->|"renders"| node_jsonld
node_layout -->|"builds agency schema"| node_schema

click node_home "https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/page.tsx"
click node_umrah_list "https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/packages/umrah/page.tsx"
click node_umrah_detail "https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/packages/umrah/%5Bslug%5D/page.tsx"
click node_hajj "https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/packages/hajj/page.tsx"
click node_ziyarat "https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/packages/ziyarat-tours/page.tsx"
click node_visa "https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/services/umrah-visa/page.tsx"
click node_guide "https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/guides/umrah-step-by-step/page.tsx"
click node_past "https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/past-tours/page.tsx"
click node_contact "https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/contact/page.tsx"
click node_custom_page "https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/custom-travel-page.tsx"
click node_car_fleet "https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/car-fleet.tsx"
click node_lead_form "https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/lead-form.tsx"
click node_inquiry_api "https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/api/inquiries/route.ts"
click node_inquiry_validation "https://github.com/tousifm784/web_building_vibe_coded/blob/main/lib/inquiry.ts"
click node_package_data "https://github.com/tousifm784/web_building_vibe_coded/blob/main/lib/data/packages.ts"
click node_travel_data "https://github.com/tousifm784/web_building_vibe_coded/blob/main/lib/data/custom-travel.ts"
click node_package_types "https://github.com/tousifm784/web_building_vibe_coded/blob/main/types/package.ts"
click node_package_card "https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/package-card.tsx"
click node_package_filter "https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/package-filter.tsx"
click node_page_parts "https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/page-parts.tsx"
click node_header "https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/site-header.tsx"
click node_mobile_cta "https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/mobile-cta.tsx"
click node_jsonld "https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/json-ld.tsx"
click node_schema "https://github.com/tousifm784/web_building_vibe_coded/blob/main/lib/schema.ts"
click node_layout "https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/layout.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_umrah_list,node_umrah_detail,node_hajj,node_ziyarat,node_visa,node_guide,node_past,node_contact toneBlue
class node_custom_page,node_car_fleet toneAmber
class node_lead_form,node_inquiry_api,node_inquiry_validation toneMint
class node_package_card,node_package_filter,node_page_parts,node_header,node_mobile_cta,node_jsonld,node_schema,node_layout toneRose
class node_package_data,node_travel_data,node_package_types,node_visitor,node_email,node_whatsapp toneIndigo
```

## Components

### Pilgrimage content

- [Home](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/page.tsx): `app/page.tsx`
- [Umrah packages](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/packages/umrah/page.tsx): `app/packages/umrah/page.tsx`
- [Package detail](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/packages/umrah/%5Bslug%5D/page.tsx): `app/packages/umrah/[slug]/page.tsx`
- [Hajj inquiries](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/packages/hajj/page.tsx): `app/packages/hajj/page.tsx`
- [Ziyarat tours](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/packages/ziyarat-tours/page.tsx): `app/packages/ziyarat-tours/page.tsx`
- [Umrah visa](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/services/umrah-visa/page.tsx): `app/services/umrah-visa/page.tsx`
- [Umrah guide](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/guides/umrah-step-by-step/page.tsx): `app/guides/umrah-step-by-step/page.tsx`
- [Past tours](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/past-tours/page.tsx): `app/past-tours/page.tsx`
- [Contact](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/contact/page.tsx): `app/contact/page.tsx`

### Custom travel

- [Custom travel](https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/custom-travel-page.tsx): `components/custom-travel-page.tsx`
- [Vehicle selector](https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/car-fleet.tsx): `components/car-fleet.tsx`

### Inquiry handling

- [Lead form](https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/lead-form.tsx): `components/lead-form.tsx`
- [Inquiry endpoint](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/api/inquiries/route.ts): `app/api/inquiries/route.ts`
- [Inquiry validation](https://github.com/tousifm784/web_building_vibe_coded/blob/main/lib/inquiry.ts): `lib/inquiry.ts`

### Shared presentation

- [Package card](https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/package-card.tsx): `components/package-card.tsx`
- [Package filter](https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/package-filter.tsx): `components/package-filter.tsx`
- [Page sections](https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/page-parts.tsx): `components/page-parts.tsx`
- [Site navigation](https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/site-header.tsx): `components/site-header.tsx`
- [Mobile CTA](https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/mobile-cta.tsx): `components/mobile-cta.tsx`
- [Structured data](https://github.com/tousifm784/web_building_vibe_coded/blob/main/components/json-ld.tsx): `components/json-ld.tsx`
- [Schema generators](https://github.com/tousifm784/web_building_vibe_coded/blob/main/lib/schema.ts): `lib/schema.ts`
- [Site layout](https://github.com/tousifm784/web_building_vibe_coded/blob/main/app/layout.tsx): `app/layout.tsx`

### Travel data

- [Package catalog](https://github.com/tousifm784/web_building_vibe_coded/blob/main/lib/data/packages.ts): `lib/data/packages.ts`
- [Travel catalog](https://github.com/tousifm784/web_building_vibe_coded/blob/main/lib/data/custom-travel.ts): `lib/data/custom-travel.ts`
- [Travel contracts](https://github.com/tousifm784/web_building_vibe_coded/blob/main/types/package.ts): `types/package.ts`

### Other components

- **Visitor**
- **SMTP email**
- **WhatsApp**

## Connections

- Visitor → Home: visits (evidence: `app/page.tsx`)
- Visitor → Umrah packages: browses (evidence: `README.md`)
- Visitor → Hajj inquiries: explores (evidence: `README.md`)
- Visitor → Ziyarat tours: explores (evidence: `README.md`)
- Visitor → Umrah visa: reads (evidence: `README.md`)
- Visitor → Umrah guide: reads (evidence: `README.md`)
- Visitor → Past tours: views (evidence: `README.md`)
- Visitor → Contact: contacts (evidence: `README.md`)
- Visitor → Custom travel: plans travel (evidence: `README.md`)
- Home → Package catalog: loads (evidence: `app/page.tsx`)
- Home → Package card: renders (evidence: `app/page.tsx`)
- Home → Lead form: renders (evidence: `app/page.tsx`)
- Umrah packages → Package catalog: loads (evidence: `app/packages/umrah/page.tsx`)
- Umrah packages → Package filter: renders (evidence: `app/packages/umrah/page.tsx`)
- Package detail → Package catalog: loads (evidence: `app/packages/umrah/[slug]/page.tsx`)
- Package detail → Lead form: renders (evidence: `app/packages/umrah/[slug]/page.tsx`)
- Package detail → Schema generators: builds trip schema (evidence: `app/packages/umrah/[slug]/page.tsx`)
- Umrah guide → Schema generators: builds FAQ schema (evidence: `app/guides/umrah-step-by-step/page.tsx`)
- Umrah guide → Structured data: renders (evidence: `app/guides/umrah-step-by-step/page.tsx`)
- Contact → Lead form: renders (evidence: `app/contact/page.tsx`)
- Hajj inquiries → Lead form: renders (evidence: `app/packages/hajj/page.tsx`)
- Custom travel → Travel catalog: loads (evidence: `components/custom-travel-page.tsx`)
- Custom travel → Vehicle selector: renders (evidence: `components/custom-travel-page.tsx`)
- Custom travel → WhatsApp: opens request (evidence: `components/custom-travel-page.tsx`)
- Lead form → Inquiry endpoint: posts inquiry (evidence: `components/lead-form.tsx`)
- Inquiry endpoint → Inquiry validation: uses validation (evidence: `app/api/inquiries/route.ts`)
- Inquiry endpoint → SMTP email: sends alert (evidence: `README.md`)
- Inquiry endpoint → WhatsApp: returns fallback link (evidence: `README.md`)
- Package catalog → Travel contracts: uses types (evidence: `lib/data/packages.ts`)
- Package card → Travel contracts: uses types (evidence: `components/package-card.tsx`)
- Package filter → Package card: renders (evidence: `components/package-filter.tsx`)
- Schema generators → Travel contracts: uses types (evidence: `lib/schema.ts`)
- Site layout → Site navigation: renders (evidence: `app/layout.tsx`)
- Site layout → Mobile CTA: renders (evidence: `app/layout.tsx`)
- Site layout → Structured data: renders (evidence: `app/layout.tsx`)
- Site layout → Schema generators: builds agency schema (evidence: `app/layout.tsx`)
