# redward42/web102_prework architecture

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

- Interactive diagram: https://gitdiagram.com/redward42/web102_prework
- Repository: https://github.com/redward42/web102_prework

## Overview

Sea Monster Crowdfunding is a static browser app that presents funded-game data, summary statistics, company context, top-funded games, and filters. The workflow starts with a visitor viewing the page, loads the embedded game dataset, computes summaries and funding rankings, then renders game cards; filter buttons replace the displayed card set. Evidence is limited to the README and the provided excerpts of index.js and games.js; HTML wiring and styling details are not inferred.

Main entry points: [`index.js`](https://github.com/RedWARd42/web102_prework/blob/main/index.js) (Page workflow), [`games.js`](https://github.com/RedWARd42/web102_prework/blob/main/games.js) (Game records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Game data"]
  node_dataset["Game records<br/>[games.js]"]
end

subgraph group_app["Crowdfunding page"]
  node_page["Page workflow<br/>[index.js]"]
  node_cards["Game cards<br/>[index.js]"]
  node_stats["Funding statistics<br/>[index.js]"]
  node_company["Company summary<br/>[index.js]"]
  node_topgames["Top funded games<br/>[index.js]"]
  node_filters["Funding filters<br/>[index.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"views"| node_page
node_page -->|"imports"| node_dataset
node_page -->|"renders"| node_cards
node_page -->|"computes"| node_stats
node_page -->|"computes"| node_company
node_page -->|"ranks"| node_topgames
node_page -->|"registers"| node_filters
node_filters -->|"re-renders"| node_cards
node_dataset -->|"supplies records"| node_cards
node_dataset -->|"supplies records"| node_stats
node_dataset -->|"supplies records"| node_company
node_dataset -->|"supplies records"| node_topgames

click node_dataset "https://github.com/RedWARd42/web102_prework/blob/main/games.js"
click node_page "https://github.com/RedWARd42/web102_prework/blob/main/index.js"
click node_cards "https://github.com/RedWARd42/web102_prework/blob/main/index.js"
click node_stats "https://github.com/RedWARd42/web102_prework/blob/main/index.js"
click node_company "https://github.com/RedWARd42/web102_prework/blob/main/index.js"
click node_topgames "https://github.com/RedWARd42/web102_prework/blob/main/index.js"
click node_filters "https://github.com/RedWARd42/web102_prework/blob/main/index.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_dataset toneBlue
class node_page,node_cards,node_stats,node_company,node_topgames,node_filters toneAmber
class node_visitor toneIndigo
```

## Components

### Game data

- [Game records](https://github.com/RedWARd42/web102_prework/blob/main/games.js): `games.js`

### Crowdfunding page

- [Page workflow](https://github.com/RedWARd42/web102_prework/blob/main/index.js): `index.js`
- [Game cards](https://github.com/RedWARd42/web102_prework/blob/main/index.js): `index.js`
- [Funding statistics](https://github.com/RedWARd42/web102_prework/blob/main/index.js): `index.js`
- [Company summary](https://github.com/RedWARd42/web102_prework/blob/main/index.js): `index.js`
- [Top funded games](https://github.com/RedWARd42/web102_prework/blob/main/index.js): `index.js`
- [Funding filters](https://github.com/RedWARd42/web102_prework/blob/main/index.js): `index.js`

### Other components

- **Visitor**

## Connections

- Visitor → Page workflow: views (evidence: `README.md`)
- Page workflow → Game records: imports (evidence: `index.js`)
- Page workflow → Game cards: renders (evidence: `index.js`)
- Page workflow → Funding statistics: computes (evidence: `index.js`)
- Page workflow → Company summary: computes (evidence: `index.js`)
- Page workflow → Top funded games: ranks (evidence: `index.js`)
- Page workflow → Funding filters: registers (evidence: `index.js`)
- Funding filters → Game cards: re-renders (evidence: `index.js`)
- Game records → Game cards: supplies records (evidence: `index.js`)
- Game records → Funding statistics: supplies records (evidence: `index.js`)
- Game records → Company summary: supplies records (evidence: `index.js`)
- Game records → Top funded games: supplies records (evidence: `index.js`)
