# dancan1995/brightbytesol architecture

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

- Interactive diagram: https://gitdiagram.com/dancan1995/brightbytesol
- Repository: https://github.com/dancan1995/brightbytesol

## Overview

Bright Byte Solution is a services website with a paid appointment-booking workflow. Customers visit the site, submit booking details, pay through Stripe, then receive a confirmation and calendar invitation; the server handles payment setup and post-payment integrations. The README describes several capabilities and filenames that do not match the supplied tree, so page-level connections are limited to documented workflow relationships. The source excerpts show server-side Stripe and Microsoft Graph handling; other page behavior is not inspected.

Main entry points: [`server.js`](https://github.com/dancan1995/brightbytesol/blob/main/server.js) (Booking server), [`index.html`](https://github.com/dancan1995/brightbytesol/blob/main/index.html) (Main website), [`book.html`](https://github.com/dancan1995/brightbytesol/blob/main/book.html) (Booking form), [`success.html`](https://github.com/dancan1995/brightbytesol/blob/main/success.html) (Payment success)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Website"]
  node_home["Main website<br/>[index.html]"]
  node_services["Services<br/>[services.html]"]
  node_products["Products<br/>[products.html]"]
  node_tools["Tools<br/>[tools.html]"]
  node_pricing["Pricing<br/>[pricing.html]"]
  node_contact["Contact<br/>[contact.html]"]
  node_privacy["Privacy policy"]
  node_terms["Terms of service"]
  node_cookies["Cookie policy<br/>[cookie-policy.html]"]
end

subgraph group_booking["Booking"]
  node_booking_form["Booking form<br/>[book.html]"]
  node_success["Payment success<br/>[success.html]"]
  node_cancel["Payment cancelled<br/>[cancel.html]"]
  node_server["Booking server<br/>[server.js]"]
end

subgraph group_integrations["Payment and scheduling"]
  node_stripe["Stripe"]
  node_calendar["Outlook calendar"]
  node_email["Confirmation email"]
end

subgraph group_shared["Shared interface"]
  node_site_behavior["Shared page behavior<br/>[site.js]"]
end

node_customer(("Customer"))

node_customer -->|"visits"| node_home
node_home -->|"starts booking"| node_booking_form
node_booking_form -->|"submits details"| node_server
node_server -->|"creates checkout"| node_stripe
node_stripe -->|"sends webhook"| node_server
node_server -->|"creates event"| node_calendar
node_server -->|"sends confirmation"| node_email
node_stripe -.->|"returns after payment"| node_success
node_stripe -.->|"returns after cancellation"| node_cancel

click node_home "https://github.com/dancan1995/brightbytesol/blob/main/index.html"
click node_services "https://github.com/dancan1995/brightbytesol/blob/main/services.html"
click node_products "https://github.com/dancan1995/brightbytesol/blob/main/products.html"
click node_tools "https://github.com/dancan1995/brightbytesol/blob/main/tools.html"
click node_pricing "https://github.com/dancan1995/brightbytesol/blob/main/pricing.html"
click node_contact "https://github.com/dancan1995/brightbytesol/blob/main/contact.html"
click node_booking_form "https://github.com/dancan1995/brightbytesol/blob/main/book.html"
click node_success "https://github.com/dancan1995/brightbytesol/blob/main/success.html"
click node_cancel "https://github.com/dancan1995/brightbytesol/blob/main/cancel.html"
click node_server "https://github.com/dancan1995/brightbytesol/blob/main/server.js"
click node_site_behavior "https://github.com/dancan1995/brightbytesol/blob/main/site.js"
click node_privacy "https://github.com/dancan1995/brightbytesol/blob/main/privacy-policy.html"
click node_terms "https://github.com/dancan1995/brightbytesol/blob/main/terms-of-service.html"
click node_cookies "https://github.com/dancan1995/brightbytesol/blob/main/cookie-policy.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_services,node_products,node_tools,node_pricing,node_contact,node_privacy,node_terms,node_cookies toneBlue
class node_booking_form,node_success,node_cancel,node_server toneAmber
class node_stripe,node_calendar,node_email toneMint
class node_site_behavior toneRose
class node_customer toneIndigo
```

## Components

### Website

- [Main website](https://github.com/dancan1995/brightbytesol/blob/main/index.html): `index.html`
- [Services](https://github.com/dancan1995/brightbytesol/blob/main/services.html): `services.html`
- [Products](https://github.com/dancan1995/brightbytesol/blob/main/products.html): `products.html`
- [Tools](https://github.com/dancan1995/brightbytesol/blob/main/tools.html): `tools.html`
- [Pricing](https://github.com/dancan1995/brightbytesol/blob/main/pricing.html): `pricing.html`
- [Contact](https://github.com/dancan1995/brightbytesol/blob/main/contact.html): `contact.html`
- [Privacy policy](https://github.com/dancan1995/brightbytesol/blob/main/privacy-policy.html): `privacy-policy.html`
- [Terms of service](https://github.com/dancan1995/brightbytesol/blob/main/terms-of-service.html): `terms-of-service.html`
- [Cookie policy](https://github.com/dancan1995/brightbytesol/blob/main/cookie-policy.html): `cookie-policy.html`

### Booking

- [Booking form](https://github.com/dancan1995/brightbytesol/blob/main/book.html): `book.html`
- [Payment success](https://github.com/dancan1995/brightbytesol/blob/main/success.html): `success.html`
- [Payment cancelled](https://github.com/dancan1995/brightbytesol/blob/main/cancel.html): `cancel.html`
- [Booking server](https://github.com/dancan1995/brightbytesol/blob/main/server.js): `server.js`

### Payment and scheduling

- **Stripe**
- **Outlook calendar**
- **Confirmation email**

### Shared interface

- [Shared page behavior](https://github.com/dancan1995/brightbytesol/blob/main/site.js): `site.js`

### Other components

- **Customer**

## Connections

- Customer → Main website: visits (evidence: `README.md`)
- Main website → Booking form: starts booking (evidence: `README.md`)
- Booking form → Booking server: submits details (evidence: `README.md`)
- Booking server → Stripe: creates checkout (evidence: `server.js`)
- Stripe → Booking server: sends webhook (evidence: `server.js`)
- Booking server → Outlook calendar: creates event (evidence: `server.js`)
- Booking server → Confirmation email: sends confirmation (evidence: `server.js`)
- Stripe → Payment success: returns after payment (evidence: `README.md`)
- Stripe → Payment cancelled: returns after cancellation (evidence: `README.md`)
