# sebasbazauri/50-a-os-erika architecture

> Architecture diagram of the GitHub repository sebasbazauri/50-a-os-erika, 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/sebasbazauri/50-a-os-erika
- Repository: https://github.com/sebasbazauri/50-a-os-erika

## Overview

Invitación estática con confirmaciones RSVP: los invitados reciben el sitio y usan la API del Worker para consultar o guardar su respuesta en D1. El Worker también ofrece inicio de sesión administrativo y limita intentos de acceso. El README documenta el despliegue como sitio estático de Cloudflare Workers con API y D1; los detalles de algunas rutas administrativas y de la interfaz no se muestrean, por lo que no se infieren conexiones adicionales.

Main entry points: [`worker.js`](https://github.com/sebasbazauri/50-a-os-erika/blob/main/worker.js) (Enrutamiento Worker), [`migrations/0001_create_tables.sql`](https://github.com/sebasbazauri/50-a-os-erika/blob/main/migrations/0001_create_tables.sql) (D1 RSVP y accesos), [`public/index.html`](https://github.com/sebasbazauri/50-a-os-erika/blob/main/public/index.html) (Sitio estático)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Invitación"]
  node_site["Sitio estático<br/>[index.html]"]
end

subgraph group_runtime["Worker y API"]
  node_worker["Enrutamiento Worker<br/>[worker.js]"]
  node_rsvp["API RSVP<br/>[worker.js]"]
  node_admin["Acceso admin<br/>[worker.js]"]
  node_sessions["Sesiones y límites<br/>[worker.js]"]
end

subgraph group_persistence["Datos"]
  node_db[("D1 RSVP y accesos")]
end

node_guest(("Invitado"))

node_guest -->|"solicita sitio o API"| node_worker
node_worker -->|"sirve estáticos"| node_site
node_worker -->|"despacha API"| node_rsvp
node_rsvp -->|"lee y guarda RSVP"| node_db
node_admin -->|"valida acceso"| node_sessions
node_admin -->|"consulta intentos"| node_db

click node_site "https://github.com/sebasbazauri/50-a-os-erika/blob/main/public/index.html"
click node_worker "https://github.com/sebasbazauri/50-a-os-erika/blob/main/worker.js"
click node_rsvp "https://github.com/sebasbazauri/50-a-os-erika/blob/main/worker.js"
click node_admin "https://github.com/sebasbazauri/50-a-os-erika/blob/main/worker.js"
click node_sessions "https://github.com/sebasbazauri/50-a-os-erika/blob/main/worker.js"
click node_db "https://github.com/sebasbazauri/50-a-os-erika/blob/main/migrations/0001_create_tables.sql"

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_site toneBlue
class node_worker,node_rsvp,node_admin,node_sessions toneAmber
class node_db toneMint
class node_guest toneIndigo
```

## Components

### Invitación

- [Sitio estático](https://github.com/sebasbazauri/50-a-os-erika/blob/main/public/index.html): `public/index.html`

### Worker y API

- [Enrutamiento Worker](https://github.com/sebasbazauri/50-a-os-erika/blob/main/worker.js): `worker.js`
- [API RSVP](https://github.com/sebasbazauri/50-a-os-erika/blob/main/worker.js): `worker.js`
- [Acceso admin](https://github.com/sebasbazauri/50-a-os-erika/blob/main/worker.js): `worker.js`
- [Sesiones y límites](https://github.com/sebasbazauri/50-a-os-erika/blob/main/worker.js): `worker.js`

### Datos

- [D1 RSVP y accesos](https://github.com/sebasbazauri/50-a-os-erika/blob/main/migrations/0001_create_tables.sql): `migrations/0001_create_tables.sql`

### Other components

- **Invitado**

## Connections

- Invitado → Enrutamiento Worker: solicita sitio o API (evidence: `worker.js`)
- Enrutamiento Worker → Sitio estático: sirve estáticos (evidence: `worker.js`)
- Enrutamiento Worker → API RSVP: despacha API (evidence: `worker.js`)
- API RSVP → D1 RSVP y accesos: lee y guarda RSVP (evidence: `worker.js`)
- Acceso admin → Sesiones y límites: valida acceso (evidence: `worker.js`)
- Acceso admin → D1 RSVP y accesos: consulta intentos (evidence: `worker.js`)
