# mailandr/poker architecture

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

- Interactive diagram: https://gitdiagram.com/mailandr/poker
- Repository: https://github.com/mailandr/poker

## Overview

This is a small static poker-tournament results site. Visitors browse tournament records, results and photos; the JavaScript also derives medal, bounty and overall-stat summaries. Tournament records and image URLs are maintained as data, while browser code renders tournament details and enables photo galleries and a lightbox. The excerpts establish the rendering helpers and gallery integrations, but do not show the HTML script wiring or the complete initialization flow, so those connections are left unverified. The README provides no further product detail.

Main entry points: [`script.js`](https://github.com/mailandr/poker/blob/main/script.js) (Tournament rendering), [`tournaments.js`](https://github.com/mailandr/poker/blob/main/tournaments.js) (Tournament records), [`index.html`](https://github.com/mailandr/poker/blob/main/index.html) (Poker site)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Tournament content"]
  node_records["Tournament records<br/>[tournaments.js]"]
end

subgraph group_presentation["Site presentation"]
  node_page["Poker site<br/>[index.html]"]
  node_tournament_views["Tournament rendering<br/>[script.js]"]
  node_standings["Rankings and stats<br/>[script.js]"]
end

subgraph group_media["Photo viewing"]
  node_swiper["Photo sliders<br/>[script.js]"]
  node_photoswipe["Photo lightbox<br/>[script.js]"]
end

node_visitor(("Visitor"))
node_imagekit[("ImageKit photos")]
node_swiper_lib["Swiper library"]
node_photoswipe_lib["PhotoSwipe library"]

node_visitor -.->|"browses"| node_page
node_records -.->|"provides records"| node_tournament_views
node_tournament_views -.->|"derives summaries"| node_standings
node_tournament_views -->|"renders galleries"| node_swiper
node_swiper -->|"initializes"| node_swiper_lib
node_visitor -->|"opens photo"| node_photoswipe
node_photoswipe -->|"loads dynamically"| node_photoswipe_lib
node_records -->|"references photos"| node_imagekit

click node_page "https://github.com/mailandr/poker/blob/main/index.html"
click node_records "https://github.com/mailandr/poker/blob/main/tournaments.js"
click node_tournament_views "https://github.com/mailandr/poker/blob/main/script.js"
click node_standings "https://github.com/mailandr/poker/blob/main/script.js"
click node_swiper "https://github.com/mailandr/poker/blob/main/script.js"
click node_photoswipe "https://github.com/mailandr/poker/blob/main/script.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_records toneBlue
class node_page,node_tournament_views,node_standings,node_imagekit toneAmber
class node_swiper,node_photoswipe toneMint
class node_visitor,node_swiper_lib,node_photoswipe_lib toneIndigo
```

## Components

### Tournament content

- [Tournament records](https://github.com/mailandr/poker/blob/main/tournaments.js): `tournaments.js`

### Site presentation

- [Poker site](https://github.com/mailandr/poker/blob/main/index.html): `index.html`
- [Tournament rendering](https://github.com/mailandr/poker/blob/main/script.js): `script.js`
- [Rankings and stats](https://github.com/mailandr/poker/blob/main/script.js): `script.js`

### Photo viewing

- [Photo sliders](https://github.com/mailandr/poker/blob/main/script.js): `script.js`
- [Photo lightbox](https://github.com/mailandr/poker/blob/main/script.js): `script.js`

### Other components

- **Visitor**
- **ImageKit photos**
- **Swiper library**
- **PhotoSwipe library**

## Connections

- Visitor → Poker site: browses
- Tournament records → Tournament rendering: provides records
- Tournament rendering → Rankings and stats: derives summaries (evidence: `script.js`)
- Tournament rendering → Photo sliders: renders galleries (evidence: `script.js`)
- Photo sliders → Swiper library: initializes (evidence: `script.js`)
- Visitor → Photo lightbox: opens photo (evidence: `script.js`)
- Photo lightbox → PhotoSwipe library: loads dynamically (evidence: `script.js`)
- Tournament records → ImageKit photos: references photos (evidence: `tournaments.js`)
