# lanceliao/china-holiday-calender architecture

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

- Interactive diagram: https://gitdiagram.com/lanceliao/china-holiday-calender
- Repository: https://github.com/lanceliao/china-holiday-calender

## Overview

This repository is a published Chinese holiday and make-up-work calendar data product, not an application with source-code workflow. Users subscribe to one of three ICS feeds or retrieve the JSON API; documented hosting also supports customized make-up-work schedules. The repository contains the published artifacts, but no source excerpts showing how they are generated or served. The README identifies China’s government as the information source and describes automated updates, so those relationships are documented rather than implementation-level.

Main entry points: [`holidayCal.ics`](https://github.com/lanceliao/china-holiday-calender/blob/master/holidayCal.ics) (Combined calendar), [`holidayCal-HO.ics`](https://github.com/lanceliao/china-holiday-calender/blob/master/holidayCal-HO.ics) (Holiday-only calendar), [`holidayCal-CO.ics`](https://github.com/lanceliao/china-holiday-calender/blob/master/holidayCal-CO.ics) (Make-up-only calendar), [`holidayAPI.json`](https://github.com/lanceliao/china-holiday-calender/blob/master/holidayAPI.json) (Holiday JSON API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_calendar_feeds["Calendar Feeds"]
  node_holiday_feed["Combined calendar<br/>[holidayCal.ics]"]
  node_holidays_feed["Holiday-only calendar<br/>[holidayCal-HO.ics]"]
  node_makeup_feed["Make-up-only calendar<br/>[holidayCal-CO.ics]"]
end

subgraph group_api_data["API Data"]
  node_holiday_api["Holiday JSON API<br/>[holidayAPI.json]"]
end

subgraph group_delivery["Access and Delivery"]
  node_hosted_service["Subscription service"]
  node_custom_schedule["Customized schedule"]
end

node_calendar_users(("Calendar users"))
node_government(("China government"))
node_api_consumers(("API consumers"))

node_calendar_users -->|"subscribe to"| node_holiday_feed
node_calendar_users -->|"subscribe to"| node_holidays_feed
node_calendar_users -->|"subscribe to"| node_makeup_feed
node_api_consumers -->|"retrieve"| node_holiday_api
node_government -.->|"provides information for"| node_holiday_feed
node_calendar_users -->|"request customization"| node_hosted_service
node_hosted_service -->|"returns customized calendar"| node_custom_schedule

click node_holiday_feed "https://github.com/lanceliao/china-holiday-calender/blob/master/holidayCal.ics"
click node_holidays_feed "https://github.com/lanceliao/china-holiday-calender/blob/master/holidayCal-HO.ics"
click node_makeup_feed "https://github.com/lanceliao/china-holiday-calender/blob/master/holidayCal-CO.ics"
click node_holiday_api "https://github.com/lanceliao/china-holiday-calender/blob/master/holidayAPI.json"

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_holiday_feed,node_holidays_feed,node_makeup_feed,node_calendar_users toneBlue
class node_holiday_api toneAmber
class node_hosted_service,node_custom_schedule,node_api_consumers toneMint
class node_government toneIndigo
```

## Components

### Calendar Feeds

- [Combined calendar](https://github.com/lanceliao/china-holiday-calender/blob/master/holidayCal.ics): `holidayCal.ics`
- [Holiday-only calendar](https://github.com/lanceliao/china-holiday-calender/blob/master/holidayCal-HO.ics): `holidayCal-HO.ics`
- [Make-up-only calendar](https://github.com/lanceliao/china-holiday-calender/blob/master/holidayCal-CO.ics): `holidayCal-CO.ics`

### API Data

- [Holiday JSON API](https://github.com/lanceliao/china-holiday-calender/blob/master/holidayAPI.json): `holidayAPI.json`

### Access and Delivery

- **Subscription service**
- **Customized schedule**

### Other components

- **Calendar users**
- **China government**
- **API consumers**

## Connections

- Calendar users → Combined calendar: subscribe to (evidence: `README.md`)
- Calendar users → Holiday-only calendar: subscribe to (evidence: `README.md`)
- Calendar users → Make-up-only calendar: subscribe to (evidence: `README.md`)
- API consumers → Holiday JSON API: retrieve (evidence: `README.md`)
- China government → Combined calendar: provides information for (evidence: `README.md`)
- Calendar users → Subscription service: request customization (evidence: `README.md`)
- Subscription service → Customized schedule: returns customized calendar (evidence: `README.md`)
