# rajkumarbalu08/secretlinen-india architecture

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

- Interactive diagram: https://gitdiagram.com/rajkumarbalu08/secretlinen-india
- Repository: https://github.com/rajkumarbalu08/secretlinen-india

## Overview

Secret Linen is a textile and linen business website, with sector-specific offerings for hospitals, hotels, salons, and spas. The visible server-side workflow accepts a contact inquiry, validates and sanitizes its fields, formats an email, and sends it to the business via Gmail. The tree also shows product and informational pages, but their source was not provided, so their internal behavior and any connection from the site to the contact function cannot be verified.

Main entry points: [`functions/index.js`](https://github.com/rajkumarbalu08/secretlinen-india/blob/main/functions/index.js) (Contact Endpoint), [`Homepage`](https://github.com/rajkumarbalu08/secretlinen-india/tree/main/Homepage) (Homepage), [`About.html`](https://github.com/rajkumarbalu08/secretlinen-india/blob/main/About.html) (About), [`Services.html`](https://github.com/rajkumarbalu08/secretlinen-india/blob/main/Services.html) (Services)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Business Website"]
  node_homepage["Homepage"]
  node_about["About<br/>[About.html]"]
  node_services["Services<br/>[Services.html]"]
  node_collections["Collections<br/>[Collections.html]"]
  node_uniforms["Uniforms<br/>[Uniforms.html]"]
  node_hospital["Hospital Textiles"]
  node_hotel["Hotel Linen"]
  node_salons["Salon Textiles"]
  node_spas["Spa Textiles"]
  node_linen_guide["Linen Guide"]
end

subgraph group_inquiry["Inquiry Handling"]
  node_contact_function["Contact Endpoint<br/>[index.js]"]
  node_validation["Inquiry Validation<br/>[index.js]"]
end

subgraph group_email["Email Delivery"]
  node_email_format["Email Formatting<br/>[index.js]"]
  node_gmail(("Gmail SMTP"))
  node_business_inbox(("Business Inbox"))
end

node_visitor(("Prospective Client"))

node_visitor -.->|"views"| node_homepage
node_visitor -.->|"views"| node_about
node_visitor -.->|"views"| node_services
node_visitor -.->|"views"| node_collections
node_visitor -.->|"views"| node_uniforms
node_visitor -.->|"views"| node_hospital
node_visitor -.->|"views"| node_hotel
node_visitor -.->|"views"| node_salons
node_visitor -.->|"views"| node_spas
node_visitor -.->|"views"| node_linen_guide
node_visitor -.->|"submits inquiry"| node_contact_function
node_contact_function -->|"validates"| node_validation
node_contact_function -->|"formats email"| node_email_format
node_contact_function -->|"sends via"| node_gmail
node_gmail -->|"delivers to"| node_business_inbox

click node_homepage "https://github.com/rajkumarbalu08/secretlinen-india/tree/main/Homepage"
click node_about "https://github.com/rajkumarbalu08/secretlinen-india/blob/main/About.html"
click node_services "https://github.com/rajkumarbalu08/secretlinen-india/blob/main/Services.html"
click node_collections "https://github.com/rajkumarbalu08/secretlinen-india/blob/main/Collections.html"
click node_uniforms "https://github.com/rajkumarbalu08/secretlinen-india/blob/main/Uniforms.html"
click node_hospital "https://github.com/rajkumarbalu08/secretlinen-india/tree/main/Hospitals"
click node_hotel "https://github.com/rajkumarbalu08/secretlinen-india/tree/main/Hotels"
click node_salons "https://github.com/rajkumarbalu08/secretlinen-india/tree/main/Salons"
click node_spas "https://github.com/rajkumarbalu08/secretlinen-india/tree/main/Spas"
click node_linen_guide "https://github.com/rajkumarbalu08/secretlinen-india/blob/main/Secret-Linen-Line-by-Line.html"
click node_contact_function "https://github.com/rajkumarbalu08/secretlinen-india/blob/main/functions/index.js"
click node_validation "https://github.com/rajkumarbalu08/secretlinen-india/blob/main/functions/index.js"
click node_email_format "https://github.com/rajkumarbalu08/secretlinen-india/blob/main/functions/index.js"

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_homepage,node_about,node_services,node_collections,node_uniforms,node_hospital,node_hotel,node_salons,node_spas,node_linen_guide,node_visitor toneBlue
class node_contact_function,node_validation toneAmber
class node_email_format,node_gmail,node_business_inbox toneMint
```

## Components

### Business Website

- [Homepage](https://github.com/rajkumarbalu08/secretlinen-india/tree/main/Homepage): `Homepage`
- [About](https://github.com/rajkumarbalu08/secretlinen-india/blob/main/About.html): `About.html`
- [Services](https://github.com/rajkumarbalu08/secretlinen-india/blob/main/Services.html): `Services.html`
- [Collections](https://github.com/rajkumarbalu08/secretlinen-india/blob/main/Collections.html): `Collections.html`
- [Uniforms](https://github.com/rajkumarbalu08/secretlinen-india/blob/main/Uniforms.html): `Uniforms.html`
- [Hospital Textiles](https://github.com/rajkumarbalu08/secretlinen-india/tree/main/Hospitals): `Hospitals`
- [Hotel Linen](https://github.com/rajkumarbalu08/secretlinen-india/tree/main/Hotels): `Hotels`
- [Salon Textiles](https://github.com/rajkumarbalu08/secretlinen-india/tree/main/Salons): `Salons`
- [Spa Textiles](https://github.com/rajkumarbalu08/secretlinen-india/tree/main/Spas): `Spas`
- [Linen Guide](https://github.com/rajkumarbalu08/secretlinen-india/blob/main/Secret-Linen-Line-by-Line.html): `Secret-Linen-Line-by-Line.html`

### Inquiry Handling

- [Contact Endpoint](https://github.com/rajkumarbalu08/secretlinen-india/blob/main/functions/index.js): `functions/index.js`
- [Inquiry Validation](https://github.com/rajkumarbalu08/secretlinen-india/blob/main/functions/index.js): `functions/index.js`

### Email Delivery

- [Email Formatting](https://github.com/rajkumarbalu08/secretlinen-india/blob/main/functions/index.js): `functions/index.js`
- **Gmail SMTP**
- **Business Inbox**

### Other components

- **Prospective Client**

## Connections

- Prospective Client → Homepage: views
- Prospective Client → About: views
- Prospective Client → Services: views
- Prospective Client → Collections: views
- Prospective Client → Uniforms: views
- Prospective Client → Hospital Textiles: views
- Prospective Client → Hotel Linen: views
- Prospective Client → Salon Textiles: views
- Prospective Client → Spa Textiles: views
- Prospective Client → Linen Guide: views
- Prospective Client → Contact Endpoint: submits inquiry
- Contact Endpoint → Inquiry Validation: validates (evidence: `functions/index.js`)
- Contact Endpoint → Email Formatting: formats email (evidence: `functions/index.js`)
- Contact Endpoint → Gmail SMTP: sends via (evidence: `functions/index.js`)
- Gmail SMTP → Business Inbox: delivers to
