# rosivaldsilva-dev/churras-do-rosival architecture

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

- Interactive diagram: https://gitdiagram.com/rosivaldsilva-dev/churras-do-rosival
- Repository: https://github.com/rosivaldsilva-dev/churras-do-rosival

## Overview

This is a small browser-based barbecue planning app. A planner manages a guest roster and the products people will bring; the app presents the product list and compares planned quantities with estimated needs. The only substantial source file is script.js, so these responsibilities are represented as components within that file rather than separate runtime layers. The excerpts show initialization and parts of rendering and comparison, but omit much of the event wiring; unverified interactions are left out.

Main entry points: [`script.js`](https://github.com/rosivaldsilva-dev/churras-do-rosival/blob/main/script.js) (Guest roster)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_planning["Barbecue planning"]
  node_guests["Guest roster<br/>[script.js]"]
  node_products["Product catalog<br/>[script.js]"]
  node_assignments["Contribution assignments<br/>[script.js]"]
  node_product_view["Product cards<br/>[script.js]"]
  node_comparison["Needs comparison<br/>[script.js]"]
end

node_planner(("Planner"))

node_planner -.->|"manages"| node_guests
node_planner -.->|"plans"| node_products
node_planner -.->|"assigns contributions"| node_assignments
node_assignments -.->|"renders"| node_product_view
node_guests -.->|"counts guests"| node_comparison
node_products -.->|"compares quantities"| node_comparison

click node_guests "https://github.com/rosivaldsilva-dev/churras-do-rosival/blob/main/script.js"
click node_products "https://github.com/rosivaldsilva-dev/churras-do-rosival/blob/main/script.js"
click node_assignments "https://github.com/rosivaldsilva-dev/churras-do-rosival/blob/main/script.js"
click node_product_view "https://github.com/rosivaldsilva-dev/churras-do-rosival/blob/main/script.js"
click node_comparison "https://github.com/rosivaldsilva-dev/churras-do-rosival/blob/main/script.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_guests,node_products,node_assignments,node_product_view,node_comparison toneBlue
class node_planner toneIndigo
```

## Components

### Barbecue planning

- [Guest roster](https://github.com/rosivaldsilva-dev/churras-do-rosival/blob/main/script.js): `script.js`
- [Product catalog](https://github.com/rosivaldsilva-dev/churras-do-rosival/blob/main/script.js): `script.js`
- [Contribution assignments](https://github.com/rosivaldsilva-dev/churras-do-rosival/blob/main/script.js): `script.js`
- [Product cards](https://github.com/rosivaldsilva-dev/churras-do-rosival/blob/main/script.js): `script.js`
- [Needs comparison](https://github.com/rosivaldsilva-dev/churras-do-rosival/blob/main/script.js): `script.js`

### Other components

- **Planner**

## Connections

- Planner → Guest roster: manages
- Planner → Product catalog: plans
- Planner → Contribution assignments: assigns contributions
- Contribution assignments → Product cards: renders (evidence: `script.js`)
- Guest roster → Needs comparison: counts guests (evidence: `script.js`)
- Product catalog → Needs comparison: compares quantities (evidence: `script.js`)
