# ichiwoo/filipino-cooking.exe architecture

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

- Interactive diagram: https://gitdiagram.com/ichiwoo/filipino-cooking.exe
- Repository: https://github.com/ichiwoo/filipino-cooking.exe

## Overview

This Java command-line cooking assistant takes a user’s available ingredients, matches them against its Filipino recipe catalog, and displays recipes the user can make. The menu also supports reusable inventory, category browsing, an ingredient index, and detailed recipe views; quick and traditional recipes add specialized details. The graph reflects the README and shown excerpts. Some menu and catalog internals are only partially sampled, so those links rely on documented behavior rather than uninspected implementation details.

Main entry points: [`src/Main.java`](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Main.java) (CLI and Workflow), [`src/Cookbook.java`](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Cookbook.java) (Recipe Matching and Catalog), [`src/Recipe.java`](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Recipe.java) (Recipe Details), [`src/QuickRecipe.java`](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/QuickRecipe.java) (Quick Recipe)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User Interface"]
  node_main["CLI and Workflow<br/>[Main.java]"]
  node_inventory["Ingredient Inventory<br/>[Main.java]"]
end

subgraph group_catalog["Recipe Catalog"]
  node_cookbook["Recipe Matching and Catalog<br/>[Cookbook.java]"]
end

subgraph group_domain["Food Domain"]
  node_recipe["Recipe Details<br/>[Recipe.java]"]
  node_quick["Quick Recipe<br/>[QuickRecipe.java]"]
  node_traditional["Traditional Recipe"]
  node_fooditem["Food Item Base<br/>[FoodItem.java]"]
  node_ingredient["Ingredient Model<br/>[Ingredient.java]"]
  node_notfound["Recipe Not Found"]
end

node_user(("Cook"))

node_user -->|"chooses options"| node_main
node_main -->|"requests matches"| node_cookbook
node_cookbook -->|"returns matches"| node_main
node_main -->|"manages inventory"| node_inventory
node_main -->|"creates ingredients"| node_ingredient
node_main -->|"browses categories"| node_cookbook
node_cookbook -->|"stores recipes"| node_recipe
node_main -->|"looks up and displays"| node_recipe
node_quick -->|"extends"| node_recipe
node_traditional -->|"extends"| node_recipe
node_recipe -->|"extends"| node_fooditem
node_ingredient -->|"extends"| node_fooditem
node_cookbook -->|"includes specialized"| node_quick
node_cookbook -->|"includes specialized"| node_traditional
node_cookbook -->|"throws on lookup"| node_notfound

click node_main "https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Main.java"
click node_inventory "https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Main.java"
click node_cookbook "https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Cookbook.java"
click node_recipe "https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Recipe.java"
click node_quick "https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/QuickRecipe.java"
click node_traditional "https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/TraditionalRecipe.java"
click node_fooditem "https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/FoodItem.java"
click node_ingredient "https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Ingredient.java"
click node_notfound "https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/RecipeNotFoundException.java"

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_main,node_inventory toneBlue
class node_cookbook toneAmber
class node_recipe,node_quick,node_traditional,node_fooditem,node_ingredient,node_notfound toneMint
class node_user toneIndigo
```

## Components

### User Interface

- [CLI and Workflow](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Main.java): `src/Main.java`
- [Ingredient Inventory](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Main.java): `src/Main.java`

### Recipe Catalog

- [Recipe Matching and Catalog](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Cookbook.java): `src/Cookbook.java`

### Food Domain

- [Recipe Details](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Recipe.java): `src/Recipe.java`
- [Quick Recipe](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/QuickRecipe.java): `src/QuickRecipe.java`
- [Traditional Recipe](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/TraditionalRecipe.java): `src/TraditionalRecipe.java`
- [Food Item Base](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/FoodItem.java): `src/FoodItem.java`
- [Ingredient Model](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/Ingredient.java): `src/Ingredient.java`
- [Recipe Not Found](https://github.com/ichiwoo/filipino-cooking.exe/blob/main/src/RecipeNotFoundException.java): `src/RecipeNotFoundException.java`

### Other components

- **Cook**

## Connections

- Cook → CLI and Workflow: chooses options (evidence: `README.md`)
- CLI and Workflow → Recipe Matching and Catalog: requests matches (evidence: `README.md`)
- Recipe Matching and Catalog → CLI and Workflow: returns matches (evidence: `src/Cookbook.java`)
- CLI and Workflow → Ingredient Inventory: manages inventory (evidence: `README.md`)
- CLI and Workflow → Ingredient Model: creates ingredients (evidence: `src/Main.java`)
- CLI and Workflow → Recipe Matching and Catalog: browses categories (evidence: `README.md`)
- Recipe Matching and Catalog → Recipe Details: stores recipes (evidence: `README.md`)
- CLI and Workflow → Recipe Details: looks up and displays (evidence: `src/Main.java`)
- Quick Recipe → Recipe Details: extends (evidence: `README.md`)
- Traditional Recipe → Recipe Details: extends (evidence: `README.md`)
- Recipe Details → Food Item Base: extends (evidence: `README.md`)
- Ingredient Model → Food Item Base: extends (evidence: `README.md`)
- Recipe Matching and Catalog → Quick Recipe: includes specialized (evidence: `src/Cookbook.java`)
- Recipe Matching and Catalog → Traditional Recipe: includes specialized (evidence: `src/Cookbook.java`)
- Recipe Matching and Catalog → Recipe Not Found: throws on lookup (evidence: `README.md`)
