# amatussalaam/travelbharat-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/amatussalaam/travelbharat-frontend
- Repository: https://github.com/amatussalaam/travelbharat-frontend

## Overview

TravelBharat is a travel-discovery and booking website with destination pages, account-related pages, and contact and feedback features. The visible client script routes users to authentication or booking, checks login state before booking, and sends account-deletion, contact, and feedback requests to a remote backend. Destination and other page roles are inferred from filenames; their markup and wiring were not provided, so their connections are not asserted.

Main entry points: [`script.js`](https://github.com/amatussalaam/travelbharat-frontend/blob/main/script.js) (Client interactions), [`auth.html`](https://github.com/amatussalaam/travelbharat-frontend/blob/main/auth.html) (Authentication), [`booking.html`](https://github.com/amatussalaam/travelbharat-frontend/blob/main/booking.html) (Booking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Travel discovery"]
  node_home["Home<br/>[index.html]"]
  node_assam["Assam<br/>[assam.html]"]
  node_delhi["Delhi<br/>[delhi.html]"]
  node_goa["Goa<br/>[goa.html]"]
  node_hyderabad["Hyderabad<br/>[hyderabad.html]"]
  node_kashmir["Kashmir<br/>[kashmir.html]"]
  node_kerala["Kerala<br/>[kerala.html]"]
  node_mumbai["Mumbai<br/>[mumbai.html]"]
  node_punjab["Punjab<br/>[punjab.html]"]
  node_rajasthan["Rajasthan<br/>[rajasthan.html]"]
  node_sikkim["Sikkim<br/>[sikkim.html]"]
  node_tamilnadu["Tamil Nadu<br/>[tamilnadu.html]"]
  node_uttarakhand["Uttarakhand<br/>[uttarakhand.html]"]
  node_about["About<br/>[about.html]"]
  node_privacy["Privacy<br/>[privacy.html]"]
end

subgraph group_account["Account and booking"]
  node_auth["Authentication<br/>[auth.html]"]
  node_booking["Booking<br/>[booking.html]"]
end

subgraph group_engagement["Site interactions"]
  node_client["Client interactions<br/>[script.js]"]
  node_contact["Contact page<br/>[contact.html]"]
end

node_backend{{"TravelBharat backend"}}
node_visitor(("Visitor"))

node_client -->|"redirects to"| node_auth
node_client -->|"redirects to"| node_booking
node_client -->|"deletes account"| node_backend
node_client -->|"posts contact"| node_backend
node_client -->|"posts feedback"| node_backend

click node_home "https://github.com/amatussalaam/travelbharat-frontend/blob/main/index.html"
click node_assam "https://github.com/amatussalaam/travelbharat-frontend/blob/main/assam.html"
click node_delhi "https://github.com/amatussalaam/travelbharat-frontend/blob/main/delhi.html"
click node_goa "https://github.com/amatussalaam/travelbharat-frontend/blob/main/goa.html"
click node_hyderabad "https://github.com/amatussalaam/travelbharat-frontend/blob/main/hyderabad.html"
click node_kashmir "https://github.com/amatussalaam/travelbharat-frontend/blob/main/kashmir.html"
click node_kerala "https://github.com/amatussalaam/travelbharat-frontend/blob/main/kerala.html"
click node_mumbai "https://github.com/amatussalaam/travelbharat-frontend/blob/main/mumbai.html"
click node_punjab "https://github.com/amatussalaam/travelbharat-frontend/blob/main/punjab.html"
click node_rajasthan "https://github.com/amatussalaam/travelbharat-frontend/blob/main/rajasthan.html"
click node_sikkim "https://github.com/amatussalaam/travelbharat-frontend/blob/main/sikkim.html"
click node_tamilnadu "https://github.com/amatussalaam/travelbharat-frontend/blob/main/tamilnadu.html"
click node_uttarakhand "https://github.com/amatussalaam/travelbharat-frontend/blob/main/uttarakhand.html"
click node_about "https://github.com/amatussalaam/travelbharat-frontend/blob/main/about.html"
click node_privacy "https://github.com/amatussalaam/travelbharat-frontend/blob/main/privacy.html"
click node_auth "https://github.com/amatussalaam/travelbharat-frontend/blob/main/auth.html"
click node_booking "https://github.com/amatussalaam/travelbharat-frontend/blob/main/booking.html"
click node_client "https://github.com/amatussalaam/travelbharat-frontend/blob/main/script.js"
click node_contact "https://github.com/amatussalaam/travelbharat-frontend/blob/main/contact.html"

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_assam,node_delhi,node_goa,node_hyderabad,node_kashmir,node_kerala,node_mumbai,node_punjab,node_rajasthan,node_sikkim,node_tamilnadu,node_uttarakhand,node_about,node_privacy toneBlue
class node_auth,node_booking toneAmber
class node_client,node_contact toneMint
class node_backend,node_visitor toneIndigo
```

## Components

### Travel discovery

- [Home](https://github.com/amatussalaam/travelbharat-frontend/blob/main/index.html): `index.html`
- [Assam](https://github.com/amatussalaam/travelbharat-frontend/blob/main/assam.html): `assam.html`
- [Delhi](https://github.com/amatussalaam/travelbharat-frontend/blob/main/delhi.html): `delhi.html`
- [Goa](https://github.com/amatussalaam/travelbharat-frontend/blob/main/goa.html): `goa.html`
- [Hyderabad](https://github.com/amatussalaam/travelbharat-frontend/blob/main/hyderabad.html): `hyderabad.html`
- [Kashmir](https://github.com/amatussalaam/travelbharat-frontend/blob/main/kashmir.html): `kashmir.html`
- [Kerala](https://github.com/amatussalaam/travelbharat-frontend/blob/main/kerala.html): `kerala.html`
- [Mumbai](https://github.com/amatussalaam/travelbharat-frontend/blob/main/mumbai.html): `mumbai.html`
- [Punjab](https://github.com/amatussalaam/travelbharat-frontend/blob/main/punjab.html): `punjab.html`
- [Rajasthan](https://github.com/amatussalaam/travelbharat-frontend/blob/main/rajasthan.html): `rajasthan.html`
- [Sikkim](https://github.com/amatussalaam/travelbharat-frontend/blob/main/sikkim.html): `sikkim.html`
- [Tamil Nadu](https://github.com/amatussalaam/travelbharat-frontend/blob/main/tamilnadu.html): `tamilnadu.html`
- [Uttarakhand](https://github.com/amatussalaam/travelbharat-frontend/blob/main/uttarakhand.html): `uttarakhand.html`
- [About](https://github.com/amatussalaam/travelbharat-frontend/blob/main/about.html): `about.html`
- [Privacy](https://github.com/amatussalaam/travelbharat-frontend/blob/main/privacy.html): `privacy.html`

### Account and booking

- [Authentication](https://github.com/amatussalaam/travelbharat-frontend/blob/main/auth.html): `auth.html`
- [Booking](https://github.com/amatussalaam/travelbharat-frontend/blob/main/booking.html): `booking.html`

### Site interactions

- [Client interactions](https://github.com/amatussalaam/travelbharat-frontend/blob/main/script.js): `script.js`
- [Contact page](https://github.com/amatussalaam/travelbharat-frontend/blob/main/contact.html): `contact.html`

### Other components

- **TravelBharat backend**
- **Visitor**

## Connections

- Client interactions → Authentication: redirects to (evidence: `script.js`)
- Client interactions → Booking: redirects to (evidence: `script.js`)
- Client interactions → TravelBharat backend: deletes account (evidence: `script.js`)
- Client interactions → TravelBharat backend: posts contact (evidence: `script.js`)
- Client interactions → TravelBharat backend: posts feedback (evidence: `script.js`)
