# sfeventcal/sfeventcal.github.io architecture

> Architecture diagram of the GitHub repository sfeventcal/sfeventcal.github.io, 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/sfeventcal/sfeventcal.github.io
- Repository: https://github.com/sfeventcal/sfeventcal.github.io

## Overview

sfeventcal is a browser calendar for upcoming, speculative Shakes and Fidget events. The visitor opens the calendar; its JavaScript fetches event data from Google Calendar, converts it to calendar events, and renders and decorates dates with event-specific labels, ordering, colors, and hover details. The main workflow is visible in the sampled JavaScript; the README documents the product purpose. The HTML and styling were not sampled, so their wiring and presentation details are not mapped.

Main entry points: [`js/index.js`](https://github.com/sfeventcal/sfeventcal.github.io/blob/master/js/index.js) (Calendar UI and data), [`js/events.js`](https://github.com/sfeventcal/sfeventcal.github.io/blob/master/js/events.js) (Event classification)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_calendar["Calendar runtime"]
  node_calendar_app["Calendar UI and data<br/>[index.js]"]
end

subgraph group_events["Event semantics"]
  node_event_rules["Event classification<br/>[events.js]"]
end

node_visitor(("Visitor"))
node_google_calendar["Google Calendar API"]
node_year_calendar["Year calendar library"]

node_visitor -->|"opens calendar"| node_calendar_app
node_calendar_app -->|"fetches events"| node_google_calendar
node_calendar_app -->|"creates calendar"| node_year_calendar
node_calendar_app -->|"classifies and orders"| node_event_rules

click node_calendar_app "https://github.com/sfeventcal/sfeventcal.github.io/blob/master/js/index.js"
click node_event_rules "https://github.com/sfeventcal/sfeventcal.github.io/blob/master/js/events.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_calendar_app toneBlue
class node_event_rules toneAmber
class node_visitor,node_year_calendar toneIndigo
class node_google_calendar toneMint
```

## Components

### Calendar runtime

- [Calendar UI and data](https://github.com/sfeventcal/sfeventcal.github.io/blob/master/js/index.js): `js/index.js`

### Event semantics

- [Event classification](https://github.com/sfeventcal/sfeventcal.github.io/blob/master/js/events.js): `js/events.js`

### Other components

- **Visitor**
- **Google Calendar API**
- **Year calendar library**

## Connections

- Visitor → Calendar UI and data: opens calendar (evidence: `README.md`)
- Calendar UI and data → Google Calendar API: fetches events (evidence: `js/index.js`)
- Calendar UI and data → Year calendar library: creates calendar (evidence: `js/index.js`)
- Calendar UI and data → Event classification: classifies and orders (evidence: `js/index.js`)
