# sketchy64/site-commune-rgaa architecture

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

- Interactive diagram: https://gitdiagram.com/sketchy64/site-commune-rgaa
- Repository: https://github.com/sketchy64/site-commune-rgaa

## Overview

Site Commune RGAA is a TYPO3 sitepackage that adapts Bootstrap Package for accessible municipal websites. Its main visitor workflow is to navigate accessible civic pages and use accessibility features; a separate PWA workflow lets visitors subscribe to alerts, which can be sent when news is published. The graph includes documented page, accessibility, and PWA capabilities. Source excerpts substantiate the push and middleware wiring; other presentation relationships are based on README descriptions, since those templates and scripts were not sampled.

Main entry points: [`Resources/Private/Templates/Page`](https://github.com/sketchy64/site-commune-rgaa/tree/main/Resources/Private/Templates/Page) (Page templates), [`Classes/Middleware/PwaMiddleware.php`](https://github.com/sketchy64/site-commune-rgaa/blob/main/Classes/Middleware/PwaMiddleware.php) (PWA request handler), [`Classes/Service/WebPushService.php`](https://github.com/sketchy64/site-commune-rgaa/blob/main/Classes/Service/WebPushService.php) (Web push service), [`Resources/Public/JavaScript/accessibility-toolbar.js`](https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/accessibility-toolbar.js) (Accessibility toolbar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Municipal site"]
  node_page_templates["Page templates"]
  node_page_layouts["Page layouts"]
  node_page_partials["Page components"]
  node_news_templates["News templates"]
  node_bootstrap_overrides["Content overrides"]
end

subgraph group_accessibility["Accessibility"]
  node_a11y_viewhelpers["Accessible view helpers"]
  node_a11y_toolbar["Accessibility toolbar"]
  node_navigation_a11y["Keyboard navigation<br/>[navigation-a11y.js]"]
  node_carousel_a11y["Accessible carousels<br/>[carousel-a11y.js]"]
  node_lightbox_a11y["Accessible lightbox<br/>[lightbox-a11y.js]"]
  node_a11y_styles["Accessibility styles<br/>[accessibility.css]"]
end

subgraph group_pwa["PWA and alerts"]
  node_pwa_client["PWA and push client"]
  node_pwa_middleware["PWA request handler<br/>[PwaMiddleware.php]"]
  node_manifest["Web app manifest"]
  node_service_worker["Service worker<br/>[sw.js]"]
  node_subscription_store[("Push subscriptions")]
  node_news_listener["News publication listener"]
  node_web_push["Web push service<br/>[WebPushService.php]"]
end

subgraph group_configuration["TYPO3 configuration"]
  node_site_config["Site settings"]
  node_site_setting_helper["Settings helper"]
  node_middleware_registration["Middleware registration"]
end

node_visitor(("Site visitor"))
node_push_service["Push provider"]

node_visitor -->|"views pages"| node_page_templates
node_page_templates -->|"uses layouts"| node_page_layouts
node_page_templates -->|"uses components"| node_page_partials
node_visitor -->|"views news"| node_news_templates
node_visitor -->|"uses content"| node_bootstrap_overrides
node_page_templates -.->|"reads settings"| node_site_setting_helper
node_site_config -.->|"supplies settings"| node_site_setting_helper
node_page_templates -->|"uses helpers"| node_a11y_viewhelpers
node_visitor -->|"uses controls"| node_a11y_toolbar
node_visitor -->|"uses navigation"| node_navigation_a11y
node_visitor -->|"uses controls"| node_carousel_a11y
node_visitor -->|"opens images"| node_lightbox_a11y
node_a11y_toolbar -.->|"applies modes"| node_a11y_styles
node_visitor -->|"subscribes alerts"| node_pwa_client
node_middleware_registration -->|"registers handler"| node_pwa_middleware
node_pwa_middleware -->|"serves manifest"| node_manifest
node_pwa_middleware -->|"serves worker"| node_service_worker
node_pwa_client -->|"submits subscriptions"| node_pwa_middleware
node_pwa_middleware -->|"writes subscriptions"| node_subscription_store
node_news_listener -->|"requests notifications"| node_web_push
node_web_push -->|"reads subscribers"| node_subscription_store
node_web_push -->|"sends notifications"| node_push_service

click node_page_templates "https://github.com/sketchy64/site-commune-rgaa/tree/main/Resources/Private/Templates/Page"
click node_page_layouts "https://github.com/sketchy64/site-commune-rgaa/tree/main/Resources/Private/Layouts/Page"
click node_page_partials "https://github.com/sketchy64/site-commune-rgaa/tree/main/Resources/Private/Partials/Page"
click node_news_templates "https://github.com/sketchy64/site-commune-rgaa/tree/main/Resources/Private/Extensions/News"
click node_bootstrap_overrides "https://github.com/sketchy64/site-commune-rgaa/tree/main/Resources/Private/OverriddenTemplates/BootstrapPackage/ContentElements"
click node_site_config "https://github.com/sketchy64/site-commune-rgaa/tree/main/Configuration/Sets/SiteCommuneRgaa"
click node_site_setting_helper "https://github.com/sketchy64/site-commune-rgaa/blob/main/Classes/ViewHelpers/SiteSettingViewHelper.php"
click node_a11y_viewhelpers "https://github.com/sketchy64/site-commune-rgaa/tree/main/Classes/ViewHelpers/A11y"
click node_a11y_toolbar "https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/accessibility-toolbar.js"
click node_navigation_a11y "https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/navigation-a11y.js"
click node_carousel_a11y "https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/carousel-a11y.js"
click node_lightbox_a11y "https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/lightbox-a11y.js"
click node_a11y_styles "https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/Css/accessibility.css"
click node_pwa_client "https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/pwa-notifications.js"
click node_middleware_registration "https://github.com/sketchy64/site-commune-rgaa/blob/main/Configuration/RequestMiddlewares.php"
click node_pwa_middleware "https://github.com/sketchy64/site-commune-rgaa/blob/main/Classes/Middleware/PwaMiddleware.php"
click node_manifest "https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/manifest.webmanifest"
click node_service_worker "https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/sw.js"
click node_subscription_store "https://github.com/sketchy64/site-commune-rgaa/blob/main/Configuration/TCA/tx_sitecommunergaa_push_subscription.php"
click node_news_listener "https://github.com/sketchy64/site-commune-rgaa/blob/main/Classes/EventListener/NewsPublishedEventListener.php"
click node_web_push "https://github.com/sketchy64/site-commune-rgaa/blob/main/Classes/Service/WebPushService.php"

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_templates,node_page_layouts,node_page_partials,node_news_templates,node_bootstrap_overrides toneBlue
class node_a11y_viewhelpers,node_a11y_toolbar,node_navigation_a11y,node_carousel_a11y,node_lightbox_a11y,node_a11y_styles toneAmber
class node_pwa_client,node_pwa_middleware,node_manifest,node_service_worker,node_subscription_store,node_news_listener,node_web_push toneMint
class node_site_config,node_site_setting_helper,node_middleware_registration toneRose
class node_visitor,node_push_service toneIndigo
```

## Components

### Municipal site

- [Page templates](https://github.com/sketchy64/site-commune-rgaa/tree/main/Resources/Private/Templates/Page): `Resources/Private/Templates/Page`
- [Page layouts](https://github.com/sketchy64/site-commune-rgaa/tree/main/Resources/Private/Layouts/Page): `Resources/Private/Layouts/Page`
- [Page components](https://github.com/sketchy64/site-commune-rgaa/tree/main/Resources/Private/Partials/Page): `Resources/Private/Partials/Page`
- [News templates](https://github.com/sketchy64/site-commune-rgaa/tree/main/Resources/Private/Extensions/News): `Resources/Private/Extensions/News`
- [Content overrides](https://github.com/sketchy64/site-commune-rgaa/tree/main/Resources/Private/OverriddenTemplates/BootstrapPackage/ContentElements): `Resources/Private/OverriddenTemplates/BootstrapPackage/ContentElements`

### Accessibility

- [Accessible view helpers](https://github.com/sketchy64/site-commune-rgaa/tree/main/Classes/ViewHelpers/A11y): `Classes/ViewHelpers/A11y`
- [Accessibility toolbar](https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/accessibility-toolbar.js): `Resources/Public/JavaScript/accessibility-toolbar.js`
- [Keyboard navigation](https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/navigation-a11y.js): `Resources/Public/JavaScript/navigation-a11y.js`
- [Accessible carousels](https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/carousel-a11y.js): `Resources/Public/JavaScript/carousel-a11y.js`
- [Accessible lightbox](https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/lightbox-a11y.js): `Resources/Public/JavaScript/lightbox-a11y.js`
- [Accessibility styles](https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/Css/accessibility.css): `Resources/Public/Css/accessibility.css`

### PWA and alerts

- [PWA and push client](https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/pwa-notifications.js): `Resources/Public/JavaScript/pwa-notifications.js`
- [PWA request handler](https://github.com/sketchy64/site-commune-rgaa/blob/main/Classes/Middleware/PwaMiddleware.php): `Classes/Middleware/PwaMiddleware.php`
- [Web app manifest](https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/manifest.webmanifest): `Resources/Public/manifest.webmanifest`
- [Service worker](https://github.com/sketchy64/site-commune-rgaa/blob/main/Resources/Public/JavaScript/sw.js): `Resources/Public/JavaScript/sw.js`
- [Push subscriptions](https://github.com/sketchy64/site-commune-rgaa/blob/main/Configuration/TCA/tx_sitecommunergaa_push_subscription.php): `Configuration/TCA/tx_sitecommunergaa_push_subscription.php`
- [News publication listener](https://github.com/sketchy64/site-commune-rgaa/blob/main/Classes/EventListener/NewsPublishedEventListener.php): `Classes/EventListener/NewsPublishedEventListener.php`
- [Web push service](https://github.com/sketchy64/site-commune-rgaa/blob/main/Classes/Service/WebPushService.php): `Classes/Service/WebPushService.php`

### TYPO3 configuration

- [Site settings](https://github.com/sketchy64/site-commune-rgaa/tree/main/Configuration/Sets/SiteCommuneRgaa): `Configuration/Sets/SiteCommuneRgaa`
- [Settings helper](https://github.com/sketchy64/site-commune-rgaa/blob/main/Classes/ViewHelpers/SiteSettingViewHelper.php): `Classes/ViewHelpers/SiteSettingViewHelper.php`
- [Middleware registration](https://github.com/sketchy64/site-commune-rgaa/blob/main/Configuration/RequestMiddlewares.php): `Configuration/RequestMiddlewares.php`

### Other components

- **Site visitor**
- **Push provider**

## Connections

- Site visitor → Page templates: views pages (evidence: `README.md`)
- Page templates → Page layouts: uses layouts (evidence: `README.md`)
- Page templates → Page components: uses components (evidence: `README.md`)
- Site visitor → News templates: views news (evidence: `README.md`)
- Site visitor → Content overrides: uses content (evidence: `README.md`)
- Page templates → Settings helper: reads settings
- Site settings → Settings helper: supplies settings
- Page templates → Accessible view helpers: uses helpers (evidence: `README.md`)
- Site visitor → Accessibility toolbar: uses controls (evidence: `README.md`)
- Site visitor → Keyboard navigation: uses navigation (evidence: `README.md`)
- Site visitor → Accessible carousels: uses controls (evidence: `README.md`)
- Site visitor → Accessible lightbox: opens images (evidence: `README.md`)
- Accessibility toolbar → Accessibility styles: applies modes
- Site visitor → PWA and push client: subscribes alerts (evidence: `README.md`)
- Middleware registration → PWA request handler: registers handler (evidence: `Configuration/RequestMiddlewares.php`)
- PWA request handler → Web app manifest: serves manifest (evidence: `Classes/Middleware/PwaMiddleware.php`)
- PWA request handler → Service worker: serves worker (evidence: `Classes/Middleware/PwaMiddleware.php`)
- PWA and push client → PWA request handler: submits subscriptions (evidence: `Resources/Public/JavaScript/pwa-notifications.js`)
- PWA request handler → Push subscriptions: writes subscriptions (evidence: `Classes/Middleware/PwaMiddleware.php`)
- News publication listener → Web push service: requests notifications (evidence: `Classes/EventListener/NewsPublishedEventListener.php`)
- Web push service → Push subscriptions: reads subscribers (evidence: `Classes/Service/WebPushService.php`)
- Web push service → Push provider: sends notifications (evidence: `Classes/Service/WebPushService.php`)
