# niccokunzmann/open-web-calendar architecture

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

- Interactive diagram: https://gitdiagram.com/niccokunzmann/open-web-calendar
- Repository: https://github.com/niccokunzmann/open-web-calendar

## Overview

Open Web Calendar is a web application that retrieves ICS or CalDAV calendars and presents them as an embeddable, configurable calendar. Its principal workflow is browser request → specification handling → calendar retrieval → conversion → calendar display. The README also documents time-zone selection, month/week views, and styling. Several backend and frontend relationships are supported by the source index or README rather than inspected implementation excerpts, so those links are dashed where invocation details are uncertain.

Main entry points: [`open_web_calendar/convert/base.py`](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/convert/base.py) (Conversion strategy), [`open_web_calendar/app.py`](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/app.py) (Flask application), [`open_web_calendar/static/js/index.js`](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/static/js/index.js) (Embedded calendar UI), [`open_web_calendar/calendars/base.py`](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/calendars/base.py) (Calendar interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_browser["Embedded calendar UI<br/>[index.js]"]
  node_scheduler["Calendar views<br/>[calendar.js]"]
  node_locale["Translations<br/>[translate.py]"]
end

subgraph group_request["Request handling"]
  node_http["Flask application<br/>[app.py]"]
  node_spec["Calendar specification<br/>[config.py]"]
  node_settings["Application utilities<br/>[util.py]"]
end

subgraph group_calendar["Calendar sources"]
  node_calendarbase["Calendar interface<br/>[base.py]"]
  node_ics["ICS retrieval<br/>[ics.py]"]
  node_caldav["CalDAV retrieval<br/>[caldav.py]"]
  node_metadata["Calendar information<br/>[list.py]"]
end

subgraph group_transform["Conversion and sharing"]
  node_strategy["Conversion strategy<br/>[base.py]"]
  node_eventconvert["Event conversion<br/>[events.py]"]
  node_calendarconvert["Calendar metadata<br/>[calendar.py]"]
  node_icsconvert["ICS output<br/>[ics.py]"]
  node_encryption["Encrypted sharing<br/>[encryption.py]"]
end

node_visitor(("Calendar visitor"))
node_source(("Calendar source URLs"))
node_caldavservice(("CalDAV service"))

node_visitor -.->|"opens calendar"| node_browser
node_browser -.->|"requests calendar"| node_http
node_http -.->|"loads settings"| node_spec
node_http -.->|"selects conversion"| node_strategy
node_strategy -->|"fetches calendars"| node_source
node_strategy -->|"parses ICS"| node_ics
node_strategy -->|"falls back to CalDAV"| node_caldav
node_caldav -->|"searches events"| node_caldavservice
node_strategy -->|"collects calendars"| node_calendarbase
node_calendarbase -->|"assembles information"| node_metadata
node_ics -->|"implements interface"| node_calendarbase
node_caldav -->|"implements interface"| node_calendarbase
node_http -.->|"uses conversion"| node_eventconvert
node_http -.->|"uses conversion"| node_calendarconvert
node_http -.->|"uses conversion"| node_icsconvert
node_strategy -.->|"provides base"| node_eventconvert
node_strategy -->|"provides base"| node_calendarconvert
node_strategy -->|"provides base"| node_icsconvert
node_http -->|"encrypts sharing data"| node_encryption
node_browser -.->|"renders calendar"| node_scheduler
node_browser -.->|"uses translations"| node_locale

click node_browser "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/static/js/index.js"
click node_scheduler "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/static/js/calendar.js"
click node_locale "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/translate.py"
click node_http "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/app.py"
click node_spec "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/config.py"
click node_settings "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/util.py"
click node_strategy "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/convert/base.py"
click node_eventconvert "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/convert/events.py"
click node_calendarconvert "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/convert/calendar.py"
click node_icsconvert "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/convert/ics.py"
click node_encryption "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/encryption.py"
click node_calendarbase "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/calendars/base.py"
click node_ics "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/calendars/ics.py"
click node_caldav "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/calendars/caldav.py"
click node_metadata "https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/calendars/info/list.py"

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_browser,node_scheduler,node_locale toneBlue
class node_http,node_spec,node_settings toneAmber
class node_calendarbase,node_ics,node_caldav,node_metadata toneMint
class node_strategy,node_eventconvert,node_calendarconvert,node_icsconvert,node_encryption toneRose
class node_visitor,node_source,node_caldavservice toneIndigo
```

## Components

### Web experience

- [Embedded calendar UI](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/static/js/index.js): `open_web_calendar/static/js/index.js`
- [Calendar views](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/static/js/calendar.js): `open_web_calendar/static/js/calendar.js`
- [Translations](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/translate.py): `open_web_calendar/translate.py`

### Request handling

- [Flask application](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/app.py): `open_web_calendar/app.py`
- [Calendar specification](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/config.py): `open_web_calendar/config.py`
- [Application utilities](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/util.py): `open_web_calendar/util.py`

### Calendar sources

- [Calendar interface](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/calendars/base.py): `open_web_calendar/calendars/base.py`
- [ICS retrieval](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/calendars/ics.py): `open_web_calendar/calendars/ics.py`
- [CalDAV retrieval](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/calendars/caldav.py): `open_web_calendar/calendars/caldav.py`
- [Calendar information](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/calendars/info/list.py): `open_web_calendar/calendars/info/list.py`

### Conversion and sharing

- [Conversion strategy](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/convert/base.py): `open_web_calendar/convert/base.py`
- [Event conversion](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/convert/events.py): `open_web_calendar/convert/events.py`
- [Calendar metadata](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/convert/calendar.py): `open_web_calendar/convert/calendar.py`
- [ICS output](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/convert/ics.py): `open_web_calendar/convert/ics.py`
- [Encrypted sharing](https://github.com/niccokunzmann/open-web-calendar/blob/master/open_web_calendar/encryption.py): `open_web_calendar/encryption.py`

### Other components

- **Calendar visitor**
- **Calendar source URLs**
- **CalDAV service**

## Connections

- Calendar visitor → Embedded calendar UI: opens calendar
- Embedded calendar UI → Flask application: requests calendar
- Flask application → Calendar specification: loads settings (evidence: `open_web_calendar/app.py`)
- Flask application → Conversion strategy: selects conversion (evidence: `open_web_calendar/app.py`)
- Conversion strategy → Calendar source URLs: fetches calendars (evidence: `open_web_calendar/convert/base.py`)
- Conversion strategy → ICS retrieval: parses ICS (evidence: `open_web_calendar/convert/base.py`)
- Conversion strategy → CalDAV retrieval: falls back to CalDAV (evidence: `open_web_calendar/convert/base.py`)
- CalDAV retrieval → CalDAV service: searches events (evidence: `open_web_calendar/calendars/caldav.py`)
- Conversion strategy → Calendar interface: collects calendars (evidence: `open_web_calendar/convert/base.py`)
- Calendar interface → Calendar information: assembles information (evidence: `open_web_calendar/calendars/base.py`)
- ICS retrieval → Calendar interface: implements interface (evidence: `open_web_calendar/calendars/ics.py`)
- CalDAV retrieval → Calendar interface: implements interface (evidence: `open_web_calendar/calendars/caldav.py`)
- Flask application → Event conversion: uses conversion (evidence: `open_web_calendar/app.py`)
- Flask application → Calendar metadata: uses conversion (evidence: `open_web_calendar/app.py`)
- Flask application → ICS output: uses conversion (evidence: `open_web_calendar/app.py`)
- Conversion strategy → Event conversion: provides base (evidence: `open_web_calendar/convert/base.py`)
- Conversion strategy → Calendar metadata: provides base (evidence: `open_web_calendar/convert/calendar.py`)
- Conversion strategy → ICS output: provides base (evidence: `open_web_calendar/convert/ics.py`)
- Flask application → Encrypted sharing: encrypts sharing data (evidence: `open_web_calendar/app.py`)
- Embedded calendar UI → Calendar views: renders calendar
- Embedded calendar UI → Translations: uses translations
