# holynova/x-prompt-library architecture

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

- Interactive diagram: https://gitdiagram.com/holynova/x-prompt-library
- Repository: https://github.com/holynova/x-prompt-library

## Overview

Prompt Library is a self-contained static page for browsing and using an attributed, bilingual prompt collection. The principal workflow is to open the page, browse or search prompts, compare original and translated text, then copy a chosen version. The README documents these capabilities and a manual-copy fallback; the page source was not excerpted, so internal call relationships cannot be verified. No backend is required.

Main entry points: [`public/index.html`](https://github.com/holynova/x-prompt-library/blob/main/public/index.html) (Prompt catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_library["Prompt library"]
  node_page["Library page<br/>[index.html]"]
  node_catalog["Prompt catalog<br/>[index.html]"]
  node_browse["Browse and search<br/>[index.html]"]
  node_compare["Language comparison<br/>[index.html]"]
  node_copy["Copy prompt<br/>[index.html]"]
end

node_visitor(("Visitor"))
node_clipboard["Browser clipboard"]

node_visitor -->|"opens"| node_page
node_page -->|"presents"| node_catalog
node_visitor -->|"browses or searches"| node_browse
node_browse -->|"filters"| node_catalog
node_visitor -->|"compares languages"| node_compare
node_compare -->|"shows translations"| node_catalog
node_visitor -->|"selects version"| node_copy
node_copy -.->|"copies when permitted"| node_clipboard

click node_page "https://github.com/holynova/x-prompt-library/blob/main/public/index.html"
click node_catalog "https://github.com/holynova/x-prompt-library/blob/main/public/index.html"
click node_browse "https://github.com/holynova/x-prompt-library/blob/main/public/index.html"
click node_compare "https://github.com/holynova/x-prompt-library/blob/main/public/index.html"
click node_copy "https://github.com/holynova/x-prompt-library/blob/main/public/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_page,node_catalog,node_browse,node_compare,node_copy,node_clipboard toneBlue
class node_visitor toneIndigo
```

## Components

### Prompt library

- [Library page](https://github.com/holynova/x-prompt-library/blob/main/public/index.html): `public/index.html`
- [Prompt catalog](https://github.com/holynova/x-prompt-library/blob/main/public/index.html): `public/index.html`
- [Browse and search](https://github.com/holynova/x-prompt-library/blob/main/public/index.html): `public/index.html`
- [Language comparison](https://github.com/holynova/x-prompt-library/blob/main/public/index.html): `public/index.html`
- [Copy prompt](https://github.com/holynova/x-prompt-library/blob/main/public/index.html): `public/index.html`

### Other components

- **Visitor**
- **Browser clipboard**

## Connections

- Visitor → Library page: opens (evidence: `README.md`)
- Library page → Prompt catalog: presents (evidence: `README.md`)
- Visitor → Browse and search: browses or searches (evidence: `README.md`)
- Browse and search → Prompt catalog: filters (evidence: `README.md`)
- Visitor → Language comparison: compares languages (evidence: `README.md`)
- Language comparison → Prompt catalog: shows translations (evidence: `README.md`)
- Visitor → Copy prompt: selects version (evidence: `README.md`)
- Copy prompt → Browser clipboard: copies when permitted (evidence: `README.md`)
