# dolvinbanyo54-pixel/notaku-app architecture

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

- Interactive diagram: https://gitdiagram.com/dolvinbanyo54-pixel/notaku-app
- Repository: https://github.com/dolvinbanyo54-pixel/notaku-app

## Overview

This is a small NotaKu progressive web app shell. The visible runtime workflow is the browser dispatching lifecycle or fetch events to the service worker, which precaches the shell and serves same-origin requests from Cache Storage, refreshing from the network or falling back offline. The tree also contains the app page and web manifest, but their contents and any registration wiring are not shown, so those details are omitted.

Main entry points: [`sw.js`](https://github.com/dolvinbanyo54-pixel/notaku-app/blob/main/sw.js) (Service worker), [`index.html`](https://github.com/dolvinbanyo54-pixel/notaku-app/blob/main/index.html) (App page), [`manifest.json`](https://github.com/dolvinbanyo54-pixel/notaku-app/blob/main/manifest.json) (Web manifest)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_browser(("Browser"))
node_worker["Service worker<br/>[sw.js]"]
node_cache[("Cache Storage")]
node_network(("Network"))
node_page["App page<br/>[index.html]"]
node_manifest["Web manifest<br/>[manifest.json]"]

node_browser -->|"dispatches events"| node_worker
node_worker -->|"precaches shell"| node_cache
node_worker -->|"caches shell page"| node_page
node_worker -->|"caches shell manifest"| node_manifest
node_worker -->|"fetches requests"| node_network
node_worker -->|"reads and updates"| node_cache
node_cache -->|"returns cached response"| node_worker

click node_worker "https://github.com/dolvinbanyo54-pixel/notaku-app/blob/main/sw.js"
click node_page "https://github.com/dolvinbanyo54-pixel/notaku-app/blob/main/index.html"
click node_manifest "https://github.com/dolvinbanyo54-pixel/notaku-app/blob/main/manifest.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_browser toneBlue
class node_worker toneRose
class node_cache toneAmber
class node_network toneIndigo
class node_page,node_manifest toneTeal
```

## Components

### Other components

- **Browser**
- [Service worker](https://github.com/dolvinbanyo54-pixel/notaku-app/blob/main/sw.js): `sw.js`
- **Cache Storage**
- **Network**
- [App page](https://github.com/dolvinbanyo54-pixel/notaku-app/blob/main/index.html): `index.html`
- [Web manifest](https://github.com/dolvinbanyo54-pixel/notaku-app/blob/main/manifest.json): `manifest.json`

## Connections

- Browser → Service worker: dispatches events (evidence: `sw.js`)
- Service worker → Cache Storage: precaches shell (evidence: `sw.js`)
- Service worker → App page: caches shell page (evidence: `sw.js`)
- Service worker → Web manifest: caches shell manifest (evidence: `sw.js`)
- Service worker → Network: fetches requests (evidence: `sw.js`)
- Service worker → Cache Storage: reads and updates (evidence: `sw.js`)
- Cache Storage → Service worker: returns cached response (evidence: `sw.js`)
