# 20tsuisp2/recipeapp architecture

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

- Interactive diagram: https://gitdiagram.com/20tsuisp2/recipeapp
- Repository: https://github.com/20tsuisp2/recipeapp

## Overview

This is a downloadable, phone-friendly recipe web app. Users browse the built-in recipe collection, manage personal recipe and kitchen lists, and follow recipes in a cooking view. The excerpts show app.js handling these interactions and browser storage, while recipes.js provides the bundled recipe data. Other capabilities are only represented where directly visible; the partial excerpts do not establish every screen or dependency.

Main entry points: [`app.js`](https://github.com/20tsuisp2/recipeapp/blob/main/app.js) (Recipe browsing), [`recipes.js`](https://github.com/20tsuisp2/recipeapp/blob/main/recipes.js) (Recipe catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_recipe_app["Recipe experience"]
  node_cook["Cook mode<br/>[app.js]"]
  node_recipe_ui["Recipe browsing<br/>[app.js]"]
  node_recipe_catalog["Recipe catalog<br/>[recipes.js]"]
end

subgraph group_personal_data["Personal data"]
  node_recipe_management["Recipe management<br/>[app.js]"]
  node_kitchen_lists["Kitchen lists<br/>[app.js]"]
  node_browser_storage[("Browser storage<br/>[app.js]")]
end

node_recipe_ui -->|"reads recipes"| node_recipe_catalog
node_recipe_ui -->|"loads saved recipes"| node_browser_storage
node_recipe_management -->|"saves recipe edits"| node_browser_storage
node_kitchen_lists -->|"saves list items"| node_browser_storage
node_cook -->|"returns to detail"| node_recipe_ui

click node_cook "https://github.com/20tsuisp2/recipeapp/blob/main/app.js"
click node_recipe_ui "https://github.com/20tsuisp2/recipeapp/blob/main/app.js"
click node_recipe_catalog "https://github.com/20tsuisp2/recipeapp/blob/main/recipes.js"
click node_recipe_management "https://github.com/20tsuisp2/recipeapp/blob/main/app.js"
click node_kitchen_lists "https://github.com/20tsuisp2/recipeapp/blob/main/app.js"
click node_browser_storage "https://github.com/20tsuisp2/recipeapp/blob/main/app.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_cook,node_recipe_ui,node_recipe_catalog toneBlue
class node_recipe_management,node_kitchen_lists,node_browser_storage toneAmber
```

## Components

### Recipe experience

- [Cook mode](https://github.com/20tsuisp2/recipeapp/blob/main/app.js): `app.js`
- [Recipe browsing](https://github.com/20tsuisp2/recipeapp/blob/main/app.js): `app.js`
- [Recipe catalog](https://github.com/20tsuisp2/recipeapp/blob/main/recipes.js): `recipes.js`

### Personal data

- [Recipe management](https://github.com/20tsuisp2/recipeapp/blob/main/app.js): `app.js`
- [Kitchen lists](https://github.com/20tsuisp2/recipeapp/blob/main/app.js): `app.js`
- [Browser storage](https://github.com/20tsuisp2/recipeapp/blob/main/app.js): `app.js`

## Connections

- Recipe browsing → Recipe catalog: reads recipes (evidence: `app.js`)
- Recipe browsing → Browser storage: loads saved recipes (evidence: `app.js`)
- Recipe management → Browser storage: saves recipe edits (evidence: `app.js`)
- Kitchen lists → Browser storage: saves list items (evidence: `app.js`)
- Cook mode → Recipe browsing: returns to detail (evidence: `app.js`)
