# xcyberspy/xword architecture

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

- Interactive diagram: https://gitdiagram.com/xcyberspy/xword
- Repository: https://github.com/xcyberspy/xword

## Overview

XWord is a browser-based text case converter. The documented user workflow is to provide text, choose among eight case modes, and view converted text alongside live samples and text statistics; users can also paste, copy, or download text. Theme preference is persisted in localStorage, and Alt+1–8 switches modes. The repository tree contains only index.html, with no source excerpts, so the graph uses that file for the app components and relies on README statements for documented relationships; internal call structure is not established.

Main entry points: [`index.html`](https://github.com/xcyberspy/xword/blob/main/index.html) (XWord UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_app["XWord UI<br/>[index.html]"]
node_conversion["Case Conversion<br/>[index.html]"]
node_preview["Live Preview<br/>[index.html]"]
node_statistics["Text Statistics<br/>[index.html]"]
node_theme["Theme Control<br/>[index.html]"]
node_shortcuts["Keyboard Shortcuts<br/>[index.html]"]
node_storage[("localStorage")]
node_clipboard["Clipboard"]
node_download["Text Download<br/>[index.html]"]

node_user -->|"uses"| node_app
node_app -->|"selects mode"| node_conversion
node_conversion -->|"shows samples"| node_preview
node_app -->|"shows counts"| node_statistics
node_app -->|"switches theme"| node_theme
node_theme -->|"persists preference"| node_storage
node_app -->|"supports Alt+1–8"| node_shortcuts
node_app -->|"pastes and copies"| node_clipboard
node_app -->|"downloads text"| node_download

click node_app "https://github.com/xcyberspy/xword/blob/main/index.html"
click node_conversion "https://github.com/xcyberspy/xword/blob/main/index.html"
click node_preview "https://github.com/xcyberspy/xword/blob/main/index.html"
click node_statistics "https://github.com/xcyberspy/xword/blob/main/index.html"
click node_theme "https://github.com/xcyberspy/xword/blob/main/index.html"
click node_shortcuts "https://github.com/xcyberspy/xword/blob/main/index.html"
click node_download "https://github.com/xcyberspy/xword/blob/main/index.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_user,node_app,node_preview toneBlue
class node_conversion,node_statistics,node_theme,node_shortcuts,node_download toneTeal
class node_storage toneAmber
class node_clipboard toneIndigo
```

## Components

### Other components

- **User**
- [XWord UI](https://github.com/xcyberspy/xword/blob/main/index.html): `index.html`
- [Case Conversion](https://github.com/xcyberspy/xword/blob/main/index.html): `index.html`
- [Live Preview](https://github.com/xcyberspy/xword/blob/main/index.html): `index.html`
- [Text Statistics](https://github.com/xcyberspy/xword/blob/main/index.html): `index.html`
- [Theme Control](https://github.com/xcyberspy/xword/blob/main/index.html): `index.html`
- [Keyboard Shortcuts](https://github.com/xcyberspy/xword/blob/main/index.html): `index.html`
- **localStorage**
- **Clipboard**
- [Text Download](https://github.com/xcyberspy/xword/blob/main/index.html): `index.html`

## Connections

- User → XWord UI: uses (evidence: `README.md`)
- XWord UI → Case Conversion: selects mode (evidence: `README.md`)
- Case Conversion → Live Preview: shows samples (evidence: `README.md`)
- XWord UI → Text Statistics: shows counts (evidence: `README.md`)
- XWord UI → Theme Control: switches theme (evidence: `README.md`)
- Theme Control → localStorage: persists preference (evidence: `README.md`)
- XWord UI → Keyboard Shortcuts: supports Alt+1–8 (evidence: `README.md`)
- XWord UI → Clipboard: pastes and copies (evidence: `README.md`)
- XWord UI → Text Download: downloads text (evidence: `README.md`)
