# thirukural-world/thirukural-world.github.io architecture

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

- Interactive diagram: https://gitdiagram.com/thirukural-world/thirukural-world.github.io
- Repository: https://github.com/thirukural-world/thirukural-world.github.io

## Overview

This repository appears to be a Thirukkural chapters website with a Firebase messaging service worker. The sampled worker configures Firebase messaging, displays background notifications, and focuses or opens a window when a notification is clicked. The README and file tree do not describe the website’s chapter workflow, and index.html was not sampled, so its behavior and connections are left unspecified.

Main entry points: [`firebase-messaging-sw.js`](https://github.com/thirukural-world/thirukural-world.github.io/blob/main/firebase-messaging-sw.js) (Messaging worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Thirukkural site"]
  node_website["Chapters website<br/>[index.html]"]
end

subgraph group_messaging["Push notifications"]
  node_worker["Messaging worker"]
end

node_visitor(("Site visitor"))
node_firebase["Firebase messaging SDK"]
node_notification_api["Notification API"]
node_window_clients["Browser window clients"]

node_worker -->|"registers handler"| node_firebase
node_worker -->|"shows notification"| node_notification_api
node_worker -->|"focuses or opens"| node_window_clients

click node_website "https://github.com/thirukural-world/thirukural-world.github.io/blob/main/index.html"
click node_worker "https://github.com/thirukural-world/thirukural-world.github.io/blob/main/firebase-messaging-sw.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_website,node_window_clients toneBlue
class node_worker toneAmber
class node_visitor,node_firebase toneIndigo
class node_notification_api toneMint
```

## Components

### Thirukkural site

- [Chapters website](https://github.com/thirukural-world/thirukural-world.github.io/blob/main/index.html): `index.html`

### Push notifications

- [Messaging worker](https://github.com/thirukural-world/thirukural-world.github.io/blob/main/firebase-messaging-sw.js): `firebase-messaging-sw.js`

### Other components

- **Site visitor**
- **Firebase messaging SDK**
- **Notification API**
- **Browser window clients**

## Connections

- Messaging worker → Firebase messaging SDK: registers handler (evidence: `firebase-messaging-sw.js`)
- Messaging worker → Notification API: shows notification (evidence: `firebase-messaging-sw.js`)
- Messaging worker → Browser window clients: focuses or opens (evidence: `firebase-messaging-sw.js`)
