# lenoxlkz/ss-es architecture

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

- Interactive diagram: https://gitdiagram.com/lenoxlkz/ss-es
- Repository: https://github.com/lenoxlkz/ss-es

## Overview

SS·ES is a Spanish-language Shadow Slave fan site with a community-contribution system; it directs readers to official reading platforms rather than hosting chapters. The main workflow is visitor submission through the site and Worker, validation and anti-spam checks, then a versioned GitHub commit that republishes the contribution for readers. The README also documents the site’s work/author information, official reading links, themes, and contribution library. Source excerpts focus on the Worker, so other site relationships below rely on README statements.

Main entry points: [`worker/worker.js`](https://github.com/lenoxlkz/ss-es/blob/main/worker/worker.js) (Contribution API), [`data/aportes/index.json`](https://github.com/lenoxlkz/ss-es/blob/main/data/aportes/index.json) (Versioned contribution store), [`leer.html`](https://github.com/lenoxlkz/ss-es/blob/main/leer.html) (Official reading), [`aportes.html`](https://github.com/lenoxlkz/ss-es/blob/main/aportes.html) (Contribution form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Community site"]
  node_home["Home dashboard<br/>[index.html]"]
  node_work["Work and glossary<br/>[obra.html]"]
  node_reading["Official reading<br/>[leer.html]"]
  node_themes["Themes and UI<br/>[app.js]"]
end

subgraph group_contributions["Contribution workflow"]
  node_submit["Contribution form<br/>[aportes.html]"]
  node_submission["Submit client<br/>[aportes.js]"]
  node_library["Library reader<br/>[datos.js]"]
  node_worker["Contribution API<br/>[worker.js]"]
  node_validation["Session and validation<br/>[worker.js]"]
end

subgraph group_storage["Versioned library"]
  node_repo[("Versioned contribution store<br/>[index.json]")]
end

subgraph group_integrations["External services"]
  node_turnstile["Bot verification"]
  node_github_api["GitHub API"]
  node_pages["GitHub Pages"]
  node_official["Official reading platforms"]
end

node_visitor(("Visitor"))

node_visitor -->|"visits"| node_home
node_visitor -->|"explores"| node_work
node_visitor -->|"opens links"| node_reading
node_reading -->|"links to"| node_official
node_visitor -->|"writes contribution"| node_submit
node_submit -->|"uses"| node_submission
node_submission -->|"sends submission"| node_worker
node_worker -->|"validates"| node_validation
node_validation -->|"verifies challenge"| node_turnstile
node_worker -->|"commits via"| node_github_api
node_github_api -->|"updates"| node_repo
node_repo -->|"triggers publish"| node_pages
node_pages -->|"serves library"| node_library
node_library -->|"reads manifest"| node_repo
node_visitor -->|"customizes interface"| node_themes

click node_home "https://github.com/lenoxlkz/ss-es/blob/main/index.html"
click node_work "https://github.com/lenoxlkz/ss-es/blob/main/obra.html"
click node_reading "https://github.com/lenoxlkz/ss-es/blob/main/leer.html"
click node_themes "https://github.com/lenoxlkz/ss-es/blob/main/assets/js/app.js"
click node_submit "https://github.com/lenoxlkz/ss-es/blob/main/aportes.html"
click node_submission "https://github.com/lenoxlkz/ss-es/blob/main/assets/js/aportes.js"
click node_library "https://github.com/lenoxlkz/ss-es/blob/main/assets/js/datos.js"
click node_worker "https://github.com/lenoxlkz/ss-es/blob/main/worker/worker.js"
click node_validation "https://github.com/lenoxlkz/ss-es/blob/main/worker/worker.js"
click node_repo "https://github.com/lenoxlkz/ss-es/blob/main/data/aportes/index.json"

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_work,node_reading,node_themes toneBlue
class node_submit,node_submission,node_library,node_worker,node_validation toneAmber
class node_repo toneMint
class node_turnstile,node_github_api,node_pages,node_official toneRose
class node_visitor toneIndigo
```

## Components

### Community site

- [Home dashboard](https://github.com/lenoxlkz/ss-es/blob/main/index.html): `index.html`
- [Work and glossary](https://github.com/lenoxlkz/ss-es/blob/main/obra.html): `obra.html`
- [Official reading](https://github.com/lenoxlkz/ss-es/blob/main/leer.html): `leer.html`
- [Themes and UI](https://github.com/lenoxlkz/ss-es/blob/main/assets/js/app.js): `assets/js/app.js`

### Contribution workflow

- [Contribution form](https://github.com/lenoxlkz/ss-es/blob/main/aportes.html): `aportes.html`
- [Submit client](https://github.com/lenoxlkz/ss-es/blob/main/assets/js/aportes.js): `assets/js/aportes.js`
- [Library reader](https://github.com/lenoxlkz/ss-es/blob/main/assets/js/datos.js): `assets/js/datos.js`
- [Contribution API](https://github.com/lenoxlkz/ss-es/blob/main/worker/worker.js): `worker/worker.js`
- [Session and validation](https://github.com/lenoxlkz/ss-es/blob/main/worker/worker.js): `worker/worker.js`

### Versioned library

- [Versioned contribution store](https://github.com/lenoxlkz/ss-es/blob/main/data/aportes/index.json): `data/aportes/index.json`

### External services

- **Bot verification**
- **GitHub API**
- **GitHub Pages**
- **Official reading platforms**

### Other components

- **Visitor**

## Connections

- Visitor → Home dashboard: visits (evidence: `README.md`)
- Visitor → Work and glossary: explores (evidence: `README.md`)
- Visitor → Official reading: opens links (evidence: `README.md`)
- Official reading → Official reading platforms: links to (evidence: `README.md`)
- Visitor → Contribution form: writes contribution (evidence: `README.md`)
- Contribution form → Submit client: uses (evidence: `README.md`)
- Submit client → Contribution API: sends submission (evidence: `README.md`)
- Contribution API → Session and validation: validates (evidence: `worker/worker.js`)
- Session and validation → Bot verification: verifies challenge (evidence: `worker/worker.js`)
- Contribution API → GitHub API: commits via (evidence: `worker/worker.js`)
- GitHub API → Versioned contribution store: updates (evidence: `README.md`)
- Versioned contribution store → GitHub Pages: triggers publish (evidence: `README.md`)
- GitHub Pages → Library reader: serves library (evidence: `README.md`)
- Library reader → Versioned contribution store: reads manifest (evidence: `README.md`)
- Visitor → Themes and UI: customizes interface (evidence: `README.md`)
