# idadixen/escape-room-game-market architecture

> Architecture diagram of the GitHub repository idadixen/escape-room-game-market, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/idadixen/escape-room-game-market
- Repository: https://github.com/idadixen/escape-room-game-market

## Overview

This is a small browser-based game marketplace: its page set suggests browsing, buying, selling, trading, account forms, and informational content. The inspected JavaScript implements game-list retrieval, filtering/sorting, and ID-based detail display through Supabase. HTML files were not excerpted, so page-to-script wiring and the behavior of buy, sell, trade, and account pages cannot be verified; those pages are shown without inferred connections.

Main entry points: [`script.js`](https://github.com/idadixen/escape-room-game-market/blob/main/script.js) (Browse games)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Game catalog"]
  node_catalog_runtime["Browse games<br/>[script.js]"]
  node_game_detail["Game details<br/>[script.js]"]
  node_game_store[("Games table")]
end

subgraph group_market["Marketplace pages"]
  node_buy_page["Buy page<br/>[buy.html]"]
  node_sell_page["Sell page<br/>[sell.html]"]
  node_trade_page["Trade page<br/>[trade.html]"]
end

subgraph group_info["Account and information"]
  node_account_form["Account form<br/>[account-form.html]"]
  node_about_page["About page<br/>[about.html]"]
  node_home_page["Home page<br/>[index.html]"]
end

node_visitor(("Visitor"))

node_catalog_runtime -->|"fetches games"| node_game_store
node_game_detail -->|"fetches games"| node_game_store

click node_catalog_runtime "https://github.com/idadixen/escape-room-game-market/blob/main/script.js"
click node_game_detail "https://github.com/idadixen/escape-room-game-market/blob/main/script.js"
click node_buy_page "https://github.com/idadixen/escape-room-game-market/blob/main/buy.html"
click node_sell_page "https://github.com/idadixen/escape-room-game-market/blob/main/sell.html"
click node_trade_page "https://github.com/idadixen/escape-room-game-market/blob/main/trade.html"
click node_account_form "https://github.com/idadixen/escape-room-game-market/blob/main/account-form.html"
click node_about_page "https://github.com/idadixen/escape-room-game-market/blob/main/about.html"
click node_home_page "https://github.com/idadixen/escape-room-game-market/blob/main/index.html"

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_catalog_runtime,node_game_detail,node_game_store toneBlue
class node_buy_page,node_sell_page,node_trade_page toneAmber
class node_account_form,node_about_page,node_home_page toneMint
class node_visitor toneIndigo
```

## Components

### Game catalog

- [Browse games](https://github.com/idadixen/escape-room-game-market/blob/main/script.js): `script.js`
- [Game details](https://github.com/idadixen/escape-room-game-market/blob/main/script.js): `script.js`
- **Games table**

### Marketplace pages

- [Buy page](https://github.com/idadixen/escape-room-game-market/blob/main/buy.html): `buy.html`
- [Sell page](https://github.com/idadixen/escape-room-game-market/blob/main/sell.html): `sell.html`
- [Trade page](https://github.com/idadixen/escape-room-game-market/blob/main/trade.html): `trade.html`

### Account and information

- [Account form](https://github.com/idadixen/escape-room-game-market/blob/main/account-form.html): `account-form.html`
- [About page](https://github.com/idadixen/escape-room-game-market/blob/main/about.html): `about.html`
- [Home page](https://github.com/idadixen/escape-room-game-market/blob/main/index.html): `index.html`

### Other components

- **Visitor**

## Connections

- Browse games → Games table: fetches games (evidence: `script.js`)
- Game details → Games table: fetches games (evidence: `script.js`)
