# intersidibe2-cell/r-holding architecture

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

- Interactive diagram: https://gitdiagram.com/intersidibe2-cell/r-holding
- Repository: https://github.com/intersidibe2-cell/r-holding

## Overview

This repository exposes a small email-submission endpoint: a sender posts form data to the Worker, which formats an email, submits it to Resend, and returns a success or error response. The tree also lists index.html, but no contents or connection to the endpoint were provided, so it is not mapped.

Main entry points: [`worker.js`](https://github.com/intersidibe2-cell/r-holding/blob/main/worker.js) (Email handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_sender(("Form sender"))
node_worker["Email handler<br/>[worker.js]"]
node_resend["Resend API"]

node_sender -->|"POSTs form"| node_worker
node_worker -->|"submits email"| node_resend
node_resend -->|"returns result"| node_worker
node_worker -->|"returns status"| node_sender

click node_worker "https://github.com/intersidibe2-cell/r-holding/blob/main/worker.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_sender toneIndigo
class node_worker,node_resend toneMint
```

## Components

### Other components

- **Form sender**
- [Email handler](https://github.com/intersidibe2-cell/r-holding/blob/main/worker.js): `worker.js`
- **Resend API**

## Connections

- Form sender → Email handler: POSTs form (evidence: `worker.js`)
- Email handler → Resend API: submits email (evidence: `worker.js`)
- Resend API → Email handler: returns result (evidence: `worker.js`)
- Email handler → Form sender: returns status (evidence: `worker.js`)
