# yamini-kotipalli/eatzy architecture

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

- Interactive diagram: https://gitdiagram.com/yamini-kotipalli/eatzy
- Repository: https://github.com/yamini-kotipalli/eatzy

## Overview

This appears to be a small web app with a service worker that precaches named app resources and serves cached responses when available. The tree and excerpts do not reveal what the HTML pages contain or how users reach them, so the app’s specific recommendation workflow cannot be established. The “movie recommandation” entry is included by its exact tree name; its contents are unknown.

Main entry points: [`sw.js`](https://github.com/yamini-kotipalli/eatzy/blob/main/sw.js) (Service worker), [`index.html`](https://github.com/yamini-kotipalli/eatzy/blob/main/index.html) (Main page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Web app"]
  node_index["Main page<br/>[index.html]"]
  node_clone["Clone page<br/>[clone.html]"]
  node_movie["Movie recommendation"]
end

subgraph group_pwa["Offline support"]
  node_manifest["App manifest<br/>[manifest.json]"]
  node_worker["Service worker<br/>[sw.js]"]
  node_cache[("Browser cache")]
end

node_user(("User"))

node_user -.->|"opens"| node_index
node_worker -->|"pre-caches resources"| node_cache
node_worker -->|"checks cached responses"| node_cache

click node_index "https://github.com/yamini-kotipalli/eatzy/blob/main/index.html"
click node_clone "https://github.com/yamini-kotipalli/eatzy/blob/main/clone.html"
click node_movie "https://github.com/yamini-kotipalli/eatzy/blob/main/movie%20recommandation"
click node_manifest "https://github.com/yamini-kotipalli/eatzy/blob/main/manifest.json"
click node_worker "https://github.com/yamini-kotipalli/eatzy/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_index,node_clone,node_movie,node_user toneBlue
class node_manifest,node_worker,node_cache toneAmber
```

## Components

### Web app

- [Main page](https://github.com/yamini-kotipalli/eatzy/blob/main/index.html): `index.html`
- [Clone page](https://github.com/yamini-kotipalli/eatzy/blob/main/clone.html): `clone.html`
- [Movie recommendation](https://github.com/yamini-kotipalli/eatzy/blob/main/movie%20recommandation): `movie recommandation`

### Offline support

- [App manifest](https://github.com/yamini-kotipalli/eatzy/blob/main/manifest.json): `manifest.json`
- [Service worker](https://github.com/yamini-kotipalli/eatzy/blob/main/sw.js): `sw.js`
- **Browser cache**

### Other components

- **User**

## Connections

- User → Main page: opens
- Service worker → Browser cache: pre-caches resources (evidence: `sw.js`)
- Service worker → Browser cache: checks cached responses (evidence: `sw.js`)
