# dhayanithi-k/office-days architecture

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

- Interactive diagram: https://gitdiagram.com/dhayanithi-k/office-days
- Repository: https://github.com/dhayanithi-k/office-days

## Overview

This is a small “office tracker” web app. The likely user-facing entry point is index.html, but its behavior is not shown, so the specific tracking workflow cannot be established. The sampled service worker installs a cache of the app shell and icons, removes older caches on activation, and serves cached responses before attempting a network fetch. The README and available source do not establish how office-day data is entered or stored.

Main entry points: [`sw.js`](https://github.com/dhayanithi-k/office-days/blob/main/sw.js) (Service worker), [`index.html`](https://github.com/dhayanithi-k/office-days/blob/main/index.html) (Tracker interface), [`manifest.json`](https://github.com/dhayanithi-k/office-days/blob/main/manifest.json) (App manifest), [`icons`](https://github.com/dhayanithi-k/office-days/tree/main/icons) (App icons)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App files"]
  node_tracker["Tracker interface<br/>[index.html]"]
  node_manifest["App manifest<br/>[manifest.json]"]
  node_icons["App icons"]
end

subgraph group_offline["Offline support"]
  node_worker["Service worker<br/>[sw.js]"]
  node_cache[("Browser cache")]
end

node_user(("User"))

node_user -.->|"uses"| node_tracker
node_worker -->|"caches app files"| node_cache
node_worker -->|"caches app shell"| node_tracker
node_worker -->|"caches manifest"| node_manifest
node_worker -->|"caches icons"| node_icons
node_worker -->|"serves cached responses"| node_cache

click node_tracker "https://github.com/dhayanithi-k/office-days/blob/main/index.html"
click node_manifest "https://github.com/dhayanithi-k/office-days/blob/main/manifest.json"
click node_icons "https://github.com/dhayanithi-k/office-days/tree/main/icons"
click node_worker "https://github.com/dhayanithi-k/office-days/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_tracker,node_manifest,node_icons,node_user toneBlue
class node_worker,node_cache toneAmber
```

## Components

### App files

- [Tracker interface](https://github.com/dhayanithi-k/office-days/blob/main/index.html): `index.html`
- [App manifest](https://github.com/dhayanithi-k/office-days/blob/main/manifest.json): `manifest.json`
- [App icons](https://github.com/dhayanithi-k/office-days/tree/main/icons): `icons`

### Offline support

- [Service worker](https://github.com/dhayanithi-k/office-days/blob/main/sw.js): `sw.js`
- **Browser cache**

### Other components

- **User**

## Connections

- User → Tracker interface: uses
- Service worker → Browser cache: caches app files (evidence: `sw.js`)
- Service worker → Tracker interface: caches app shell (evidence: `sw.js`)
- Service worker → App manifest: caches manifest (evidence: `sw.js`)
- Service worker → App icons: caches icons (evidence: `sw.js`)
- Service worker → Browser cache: serves cached responses (evidence: `sw.js`)
