# srir-book/srir-book.github.io architecture

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

- Interactive diagram: https://gitdiagram.com/srir-book/srir-book.github.io
- Repository: https://github.com/srir-book/srir-book.github.io

## Overview

The SRIR Book site is a static GitHub Pages website whose main workflow is opening the Accelerator Atlas, loading facility GeoJSON, and exploring facilities on an interactive map. The atlas documents marker styling, clustering, facility links, and data/image downloads; the landing page links to the atlas. The README also describes MapLibre and map-style providers. No source excerpts were supplied, so relationships below are limited to those documented in the README; repeated atlas nodes denote distinct capabilities implemented by the same page.

Main entry points: [`facilities-worldwide.html`](https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html) (Atlas page), [`index.html`](https://github.com/srir-book/srir-book.github.io/blob/master/index.html) (Landing page), [`data/facilities.geojson`](https://github.com/srir-book/srir-book.github.io/blob/master/data/facilities.geojson) (Storage rings), [`data/free-electron-lasers.geojson`](https://github.com/srir-book/srir-book.github.io/blob/master/data/free-electron-lasers.geojson) (Free-electron lasers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Website"]
  node_landing["Landing page<br/>[index.html]"]
  node_site_styles["Landing styles<br/>[style.css]"]
end

subgraph group_atlas["Accelerator Atlas"]
  node_atlas_page["Atlas page"]
  node_atlas_map["Interactive map"]
  node_map_views["Map projections"]
  node_map_styles["Map styles"]
  node_facility_markers["Facility markers"]
  node_marker_groups["Marker clusters"]
  node_facility_details["Facility links"]
  node_atlas_downloads["Atlas downloads"]
end

subgraph group_data["Facility Data"]
  node_ring_data["Storage rings<br/>[facilities.geojson]"]
  node_fel_data["Free-electron lasers"]
end

node_visitor(("Site visitor"))
node_maplibre["MapLibre GL JS"]
node_jsdelivr["jsDelivr"]
node_openfreemap["OpenFreeMap"]
node_map_demo["MapLibre demo style"]

node_visitor -->|"opens"| node_landing
node_landing -->|"styles with"| node_site_styles
node_landing -->|"links to"| node_atlas_page
node_visitor -->|"opens"| node_atlas_page
node_atlas_page -->|"presents"| node_atlas_map
node_atlas_page -->|"fetches"| node_ring_data
node_atlas_page -->|"fetches"| node_fel_data
node_atlas_page -->|"uses"| node_maplibre
node_jsdelivr -->|"serves"| node_maplibre
node_atlas_map -->|"supports"| node_map_views
node_atlas_map -->|"uses"| node_map_styles
node_map_styles -->|"uses overview"| node_map_demo
node_map_styles -->|"uses when zoomed"| node_openfreemap
node_atlas_map -->|"shows"| node_facility_markers
node_atlas_map -->|"groups overlaps"| node_marker_groups
node_facility_markers -->|"opens on click"| node_facility_details
node_visitor -->|"requests"| node_atlas_downloads
node_atlas_downloads -->|"downloads data"| node_ring_data
node_atlas_downloads -->|"downloads data"| node_fel_data
node_atlas_downloads -->|"exports PNG"| node_atlas_map

click node_landing "https://github.com/srir-book/srir-book.github.io/blob/master/index.html"
click node_site_styles "https://github.com/srir-book/srir-book.github.io/blob/master/style.css"
click node_atlas_page "https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html"
click node_atlas_map "https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html"
click node_map_views "https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html"
click node_map_styles "https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html"
click node_facility_markers "https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html"
click node_marker_groups "https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html"
click node_facility_details "https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html"
click node_atlas_downloads "https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html"
click node_ring_data "https://github.com/srir-book/srir-book.github.io/blob/master/data/facilities.geojson"
click node_fel_data "https://github.com/srir-book/srir-book.github.io/blob/master/data/free-electron-lasers.geojson"

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_landing,node_site_styles toneBlue
class node_atlas_page,node_atlas_map,node_map_views,node_map_styles,node_facility_markers,node_marker_groups,node_facility_details,node_atlas_downloads toneAmber
class node_ring_data,node_fel_data toneMint
class node_visitor,node_maplibre,node_jsdelivr,node_openfreemap,node_map_demo toneIndigo
```

## Components

### Website

- [Landing page](https://github.com/srir-book/srir-book.github.io/blob/master/index.html): `index.html`
- [Landing styles](https://github.com/srir-book/srir-book.github.io/blob/master/style.css): `style.css`

### Accelerator Atlas

- [Atlas page](https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html): `facilities-worldwide.html`
- [Interactive map](https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html): `facilities-worldwide.html`
- [Map projections](https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html): `facilities-worldwide.html`
- [Map styles](https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html): `facilities-worldwide.html`
- [Facility markers](https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html): `facilities-worldwide.html`
- [Marker clusters](https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html): `facilities-worldwide.html`
- [Facility links](https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html): `facilities-worldwide.html`
- [Atlas downloads](https://github.com/srir-book/srir-book.github.io/blob/master/facilities-worldwide.html): `facilities-worldwide.html`

### Facility Data

- [Storage rings](https://github.com/srir-book/srir-book.github.io/blob/master/data/facilities.geojson): `data/facilities.geojson`
- [Free-electron lasers](https://github.com/srir-book/srir-book.github.io/blob/master/data/free-electron-lasers.geojson): `data/free-electron-lasers.geojson`

### Other components

- **Site visitor**
- **MapLibre GL JS**
- **jsDelivr**
- **OpenFreeMap**
- **MapLibre demo style**

## Connections

- Site visitor → Landing page: opens (evidence: `README.md`)
- Landing page → Landing styles: styles with (evidence: `README.md`)
- Landing page → Atlas page: links to (evidence: `README.md`)
- Site visitor → Atlas page: opens (evidence: `README.md`)
- Atlas page → Interactive map: presents (evidence: `README.md`)
- Atlas page → Storage rings: fetches (evidence: `README.md`)
- Atlas page → Free-electron lasers: fetches (evidence: `README.md`)
- Atlas page → MapLibre GL JS: uses (evidence: `README.md`)
- jsDelivr → MapLibre GL JS: serves (evidence: `README.md`)
- Interactive map → Map projections: supports (evidence: `README.md`)
- Interactive map → Map styles: uses (evidence: `README.md`)
- Map styles → MapLibre demo style: uses overview (evidence: `README.md`)
- Map styles → OpenFreeMap: uses when zoomed (evidence: `README.md`)
- Interactive map → Facility markers: shows (evidence: `README.md`)
- Interactive map → Marker clusters: groups overlaps (evidence: `README.md`)
- Facility markers → Facility links: opens on click (evidence: `README.md`)
- Site visitor → Atlas downloads: requests (evidence: `README.md`)
- Atlas downloads → Storage rings: downloads data (evidence: `README.md`)
- Atlas downloads → Free-electron lasers: downloads data (evidence: `README.md`)
- Atlas downloads → Interactive map: exports PNG (evidence: `README.md`)
