# paulpm1031/digitalroot9 architecture

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

- Interactive diagram: https://gitdiagram.com/paulpm1031/digitalroot9
- Repository: https://github.com/paulpm1031/digitalroot9

## Overview

This is a small Cloudflare Worker backing the DigitalRoot9 website. Visitors either receive static site assets or submit the enquiry form; the Worker parses and checks the submission, prepares an internal notification, and redirects successful or honeypot submissions to a thank-you page. The only sampled runtime file is `src/index.js`; the static asset contents and other site capabilities are not present in the supplied tree, so those details are not expanded.

Main entry points: [`src/index.js`](https://github.com/paulpm1031/digitalroot9/blob/main/src/index.js) (Request router)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Website visitor"))
node_worker["Request router<br/>[index.js]"]
node_enquiry["Enquiry handler<br/>[index.js]"]
node_assets["Static assets"]
node_mailchannels["MailChannels"]
node_recipients["Enquiry inboxes"]
node_thanks["Thank-you page"]

node_visitor -->|"sends request"| node_worker
node_worker -->|"routes POST"| node_enquiry
node_worker -->|"fetches assets"| node_assets
node_enquiry -->|"sends notification"| node_mailchannels
node_mailchannels -->|"delivers email"| node_recipients
node_enquiry -->|"redirects browser"| node_thanks

click node_worker "https://github.com/paulpm1031/digitalroot9/blob/main/src/index.js"
click node_enquiry "https://github.com/paulpm1031/digitalroot9/blob/main/src/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_visitor,node_assets,node_mailchannels,node_recipients,node_thanks toneIndigo
class node_worker,node_enquiry toneMint
```

## Components

### Other components

- **Website visitor**
- [Request router](https://github.com/paulpm1031/digitalroot9/blob/main/src/index.js): `src/index.js`
- [Enquiry handler](https://github.com/paulpm1031/digitalroot9/blob/main/src/index.js): `src/index.js`
- **Static assets**
- **MailChannels**
- **Enquiry inboxes**
- **Thank-you page**

## Connections

- Website visitor → Request router: sends request
- Request router → Enquiry handler: routes POST
- Request router → Static assets: fetches assets
- Enquiry handler → MailChannels: sends notification
- MailChannels → Enquiry inboxes: delivers email
- Enquiry handler → Thank-you page: redirects browser
