# esteveadechina37-alt/foodhouse architecture

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

- Interactive diagram: https://gitdiagram.com/esteveadechina37-alt/foodhouse
- Repository: https://github.com/esteveadechina37-alt/foodhouse

## Overview

FoodHouse is a restaurant website with a French-language chat endpoint connected to Groq. The tree identifies a landing page, shared layout, and restaurant-facing sections for welcome, menu, gallery, contact, and experience; it also identifies a chat widget and API route. Most Astro components were not sampled, so their rendering relationships and the page composition cannot be confirmed. The only evidenced runtime call is the API route’s request to Groq.

Main entry points: [`src/pages/api/chat.js`](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/pages/api/chat.js) (Chat API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Restaurant website"]
  node_home["Home page<br/>[index.astro]"]
  node_welcome["Welcome<br/>[Welcome.astro]"]
  node_hero["Hero<br/>[hero.astro]"]
  node_menu["Menu<br/>[Menu.astro]"]
  node_gallery["Gallery<br/>[Galerie.astro]"]
  node_experience["Experience<br/>[Experience.astro]"]
  node_contact["Contact<br/>[Contact.astro]"]
end

subgraph group_shell["Page shell"]
  node_navbar["Navigation<br/>[Navbar.astro]"]
  node_footer["Footer<br/>[Footer.astro]"]
  node_layout["Page layout<br/>[Layout.astro]"]
  node_styles["Global styles<br/>[global.css]"]
end

subgraph group_chat["Chat assistant"]
  node_chatwidget["Chat widget<br/>[ChatWidget.astro]"]
end

subgraph group_api["Chat service"]
  node_chatroute["Chat API<br/>[chat.js]"]
end

node_visitor(("Visitor"))
node_groq["Groq API"]

node_chatroute -->|"requests completion"| node_groq

click node_home "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/pages/index.astro"
click node_welcome "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Welcome.astro"
click node_hero "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/hero.astro"
click node_menu "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Menu.astro"
click node_gallery "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Galerie.astro"
click node_experience "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Experience.astro"
click node_contact "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Contact.astro"
click node_navbar "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Navbar.astro"
click node_footer "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Footer.astro"
click node_layout "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/layouts/Layout.astro"
click node_styles "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/styles/global.css"
click node_chatwidget "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/ChatWidget.astro"
click node_chatroute "https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/pages/api/chat.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_home,node_welcome,node_hero,node_menu,node_gallery,node_experience,node_contact toneBlue
class node_navbar,node_footer,node_layout,node_styles toneAmber
class node_chatwidget,node_groq toneMint
class node_chatroute toneRose
class node_visitor toneIndigo
```

## Components

### Restaurant website

- [Home page](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/pages/index.astro): `src/pages/index.astro`
- [Welcome](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Welcome.astro): `src/components/Welcome.astro`
- [Hero](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/hero.astro): `src/components/hero.astro`
- [Menu](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Menu.astro): `src/components/Menu.astro`
- [Gallery](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Galerie.astro): `src/components/Galerie.astro`
- [Experience](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Experience.astro): `src/components/Experience.astro`
- [Contact](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Contact.astro): `src/components/Contact.astro`

### Page shell

- [Navigation](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Navbar.astro): `src/components/Navbar.astro`
- [Footer](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/Footer.astro): `src/components/Footer.astro`
- [Page layout](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/layouts/Layout.astro): `src/layouts/Layout.astro`
- [Global styles](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/styles/global.css): `src/styles/global.css`

### Chat assistant

- [Chat widget](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/components/ChatWidget.astro): `src/components/ChatWidget.astro`

### Chat service

- [Chat API](https://github.com/esteveadechina37-alt/foodhouse/blob/main/src/pages/api/chat.js): `src/pages/api/chat.js`

### Other components

- **Visitor**
- **Groq API**

## Connections

- Chat API → Groq API: requests completion (evidence: `src/pages/api/chat.js`)
