# freedondias7/fm architecture

> Architecture diagram of the GitHub repository freedondias7/fm, 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/freedondias7/fm
- Repository: https://github.com/freedondias7/fm

## Overview

FM is a minimal web app whose only documented runtime behavior is a service worker that caches the app shell and handles same-origin GET requests. The README gives no product workflow or domain capabilities, and the page and manifest contents were not provided, so their behavior cannot be described. The graph focuses on the service worker’s documented cache and network interactions.

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

## Diagram (Mermaid)

```mermaid
flowchart TD

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

node_browser -->|"dispatches events"| node_service_worker
node_service_worker -->|"precaches shell"| node_app_page
node_service_worker -->|"precaches shell"| node_manifest
node_service_worker -->|"reads and writes"| node_cache
node_service_worker -->|"fetches requests"| node_network

click node_app_page "https://github.com/freedondias7/fm/blob/main/index.html"
click node_manifest "https://github.com/freedondias7/fm/blob/main/manifest.json"
click node_service_worker "https://github.com/freedondias7/fm/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_browser toneBlue
class node_app_page,node_manifest toneTeal
class node_service_worker toneRose
class node_cache toneAmber
class node_network toneIndigo
```

## Components

### Other components

- **Browser**
- [App page](https://github.com/freedondias7/fm/blob/main/index.html): `index.html`
- [Web manifest](https://github.com/freedondias7/fm/blob/main/manifest.json): `manifest.json`
- [Service worker](https://github.com/freedondias7/fm/blob/main/sw.js): `sw.js`
- **Cache storage**
- **Network**

## Connections

- Browser → Service worker: dispatches events (evidence: `sw.js`)
- Service worker → App page: precaches shell (evidence: `sw.js`)
- Service worker → Web manifest: precaches shell (evidence: `sw.js`)
- Service worker → Cache storage: reads and writes (evidence: `sw.js`)
- Service worker → Network: fetches requests (evidence: `sw.js`)
