# beamkunal/f7-planner architecture

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

- Interactive diagram: https://gitdiagram.com/beamkunal/f7-planner
- Repository: https://github.com/beamkunal/f7-planner

## Overview

F7 Planner is a browser-based weekly timetable: users select a day and view scheduled classes, with current and upcoming class information and visual timeline cues. The sampled JavaScript shows timetable data, rendering, time-based highlighting, and interaction handlers; the service worker caches the app shell and falls back to cached responses when fetches fail. The HTML and CSS are present in the tree, but their contents and wiring were not sampled, so their relationships to the JavaScript are not asserted.

Main entry points: [`sw.js`](https://github.com/beamkunal/f7-planner/blob/main/sw.js) (Cache and fetch), [`script.js`](https://github.com/beamkunal/f7-planner/blob/main/script.js) (Planner interactions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planner["Timetable Planner"]
  node_timetable["Weekly schedule<br/>[script.js]"]
  node_planner_ui["Planner interactions<br/>[script.js]"]
  node_html["Page structure<br/>[index.html]"]
  node_styles["Visual styling<br/>[style.css]"]
end

subgraph group_offline["Offline Support"]
  node_service_worker["Cache and fetch<br/>[sw.js]"]
  node_cache[("Asset cache<br/>[sw.js]")]
end

node_user(("Planner user"))

node_user -->|"selects days"| node_planner_ui
node_planner_ui -->|"renders schedule"| node_timetable
node_service_worker -->|"caches assets"| node_cache
node_service_worker -->|"stores responses"| node_cache
node_service_worker -->|"fallback reads"| node_cache

click node_timetable "https://github.com/beamkunal/f7-planner/blob/main/script.js"
click node_planner_ui "https://github.com/beamkunal/f7-planner/blob/main/script.js"
click node_html "https://github.com/beamkunal/f7-planner/blob/main/index.html"
click node_styles "https://github.com/beamkunal/f7-planner/blob/main/style.css"
click node_service_worker "https://github.com/beamkunal/f7-planner/blob/main/sw.js"
click node_cache "https://github.com/beamkunal/f7-planner/blob/main/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_timetable,node_planner_ui,node_html,node_styles,node_user toneBlue
class node_service_worker,node_cache toneAmber
```

## Components

### Timetable Planner

- [Weekly schedule](https://github.com/beamkunal/f7-planner/blob/main/script.js): `script.js`
- [Planner interactions](https://github.com/beamkunal/f7-planner/blob/main/script.js): `script.js`
- [Page structure](https://github.com/beamkunal/f7-planner/blob/main/index.html): `index.html`
- [Visual styling](https://github.com/beamkunal/f7-planner/blob/main/style.css): `style.css`

### Offline Support

- [Cache and fetch](https://github.com/beamkunal/f7-planner/blob/main/sw.js): `sw.js`
- [Asset cache](https://github.com/beamkunal/f7-planner/blob/main/sw.js): `sw.js`

### Other components

- **Planner user**

## Connections

- Planner user → Planner interactions: selects days (evidence: `script.js`)
- Planner interactions → Weekly schedule: renders schedule (evidence: `script.js`)
- Cache and fetch → Asset cache: caches assets (evidence: `sw.js`)
- Cache and fetch → Asset cache: stores responses (evidence: `sw.js`)
- Cache and fetch → Asset cache: fallback reads (evidence: `sw.js`)
