# rufnul/goldenfork architecture

> Architecture diagram of the GitHub repository rufnul/goldenfork, 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/rufnul/goldenfork
- Repository: https://github.com/rufnul/goldenfork

## Overview

GoldenFork is a static restaurant website for showcasing rooftop dining in Chennai. Visitors can browse restaurant pages covering the menu, hours, contact information and reservation policy; the JavaScript also implements a local cart, login/signup, order confirmation and email-subscription interactions. The cart and account data use browser localStorage rather than a server-side service. The source excerpt shows these behaviors in one script, but does not show which HTML pages load it or how reservation requests are handled.

Main entry points: [`golden-fork-app.js`](https://github.com/rufnul/goldenfork/blob/main/golden-fork-app.js) (Storage Helpers), [`index.html`](https://github.com/rufnul/goldenfork/blob/main/index.html) (Home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Restaurant Website"]
  node_home["Home<br/>[index.html]"]
  node_menu["Menu<br/>[menu.html]"]
  node_gallery["Gallery<br/>[gallery.html]"]
  node_hours["Hours<br/>[happyHours.html]"]
  node_reservation["Reservation<br/>[reservation.html]"]
  node_login["Login<br/>[login.html]"]
  node_cartpage["Cart<br/>[cart.html]"]
  node_styling["Site Styling<br/>[style.css]"]
end

subgraph group_interactions["Visitor Interactions"]
  node_cart["Cart Operations<br/>[golden-fork-app.js]"]
  node_order["Order Confirmation<br/>[golden-fork-app.js]"]
  node_authform["Account Forms<br/>[golden-fork-app.js]"]
  node_newsletter["Email Subscription<br/>[golden-fork-app.js]"]
end

subgraph group_state["Browser State"]
  node_storage["Storage Helpers<br/>[golden-fork-app.js]"]
  node_localstorage[("Browser Storage")]
end

node_visitor(("Visitor"))

node_visitor -->|"browses"| node_home
node_cart -->|"reads and writes"| node_localstorage
node_order -->|"checks state"| node_localstorage
node_authform -->|"uses"| node_storage
node_storage -->|"reads and writes"| node_localstorage

click node_home "https://github.com/rufnul/goldenfork/blob/main/index.html"
click node_menu "https://github.com/rufnul/goldenfork/blob/main/menu.html"
click node_gallery "https://github.com/rufnul/goldenfork/blob/main/gallery.html"
click node_hours "https://github.com/rufnul/goldenfork/blob/main/happyHours.html"
click node_reservation "https://github.com/rufnul/goldenfork/blob/main/reservation.html"
click node_login "https://github.com/rufnul/goldenfork/blob/main/login.html"
click node_cartpage "https://github.com/rufnul/goldenfork/blob/main/cart.html"
click node_styling "https://github.com/rufnul/goldenfork/blob/main/style.css"
click node_cart "https://github.com/rufnul/goldenfork/blob/main/golden-fork-app.js"
click node_order "https://github.com/rufnul/goldenfork/blob/main/golden-fork-app.js"
click node_authform "https://github.com/rufnul/goldenfork/blob/main/golden-fork-app.js"
click node_newsletter "https://github.com/rufnul/goldenfork/blob/main/golden-fork-app.js"
click node_storage "https://github.com/rufnul/goldenfork/blob/main/golden-fork-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_home,node_menu,node_gallery,node_hours,node_reservation,node_login,node_cartpage,node_styling toneBlue
class node_cart,node_order,node_authform,node_newsletter toneAmber
class node_storage,node_localstorage toneMint
class node_visitor toneIndigo
```

## Components

### Restaurant Website

- [Home](https://github.com/rufnul/goldenfork/blob/main/index.html): `index.html`
- [Menu](https://github.com/rufnul/goldenfork/blob/main/menu.html): `menu.html`
- [Gallery](https://github.com/rufnul/goldenfork/blob/main/gallery.html): `gallery.html`
- [Hours](https://github.com/rufnul/goldenfork/blob/main/happyHours.html): `happyHours.html`
- [Reservation](https://github.com/rufnul/goldenfork/blob/main/reservation.html): `reservation.html`
- [Login](https://github.com/rufnul/goldenfork/blob/main/login.html): `login.html`
- [Cart](https://github.com/rufnul/goldenfork/blob/main/cart.html): `cart.html`
- [Site Styling](https://github.com/rufnul/goldenfork/blob/main/style.css): `style.css`

### Visitor Interactions

- [Cart Operations](https://github.com/rufnul/goldenfork/blob/main/golden-fork-app.js): `golden-fork-app.js`
- [Order Confirmation](https://github.com/rufnul/goldenfork/blob/main/golden-fork-app.js): `golden-fork-app.js`
- [Account Forms](https://github.com/rufnul/goldenfork/blob/main/golden-fork-app.js): `golden-fork-app.js`
- [Email Subscription](https://github.com/rufnul/goldenfork/blob/main/golden-fork-app.js): `golden-fork-app.js`

### Browser State

- [Storage Helpers](https://github.com/rufnul/goldenfork/blob/main/golden-fork-app.js): `golden-fork-app.js`
- **Browser Storage**

### Other components

- **Visitor**

## Connections

- Visitor → Home: browses (evidence: `README.md`)
- Cart Operations → Browser Storage: reads and writes (evidence: `golden-fork-app.js`)
- Order Confirmation → Browser Storage: checks state (evidence: `golden-fork-app.js`)
- Account Forms → Storage Helpers: uses (evidence: `golden-fork-app.js`)
- Storage Helpers → Browser Storage: reads and writes (evidence: `golden-fork-app.js`)
