# mtreasur0133-tech/gnmath-html-games architecture

> Architecture diagram of the GitHub repository mtreasur0133-tech/gnmath-html-games, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mtreasur0133-tech/gnmath-html-games
- Repository: https://github.com/mtreasur0133-tech/gnmath-html-games

## Overview

#### Purpose
A static offline collection of third-party game and utility HTML pages. The repository does not contain a server-side application, build system, or shared source package; content is intended to be opened directly in a browser, potentially through a local HTML launcher or `data:` URL.

#### Entry Points
- `index.html` is the repository-level landing page and likely primary browser entry.
- Individual games are directly addressable HTML documents under `games/`, e.g. `games/Angry Birds.html`, `games/EaglercraftX.html`.
- Emulator-specific pages are separate direct entry points under `emulators/`, including `emulators/Emulator.JS.html` and `emulators/Ruffle.html`.
- The recommended launcher is `tools/.Html Launcher.html`.

#### Content Isolation Model
Each HTML file is a self-contained executable document rather than a route served by an application framework. The core architectural boundary is therefore browser-document isolation: opening one game, emulator, or tool loads that page independently.
- Game payloads: `games/Five Nights at Freddy's.html`, `games/Baldi's Basics Plus.html`
- Emulator payloads: `emulators/Play!.js.html`, `emulators/Ruffle.html`
- Utility payloads: `tools/Code Editor.html`, `tools/Soundboard.html`

#### Game Catalog
The `games/` directory is the dominant content layer, containing a broad set of standalone browser games. File names function as the catalog identifiers and likely navigation targets from the landing page or launcher.
- Examples: `games/Basket Random.html`, `games/BitLife.html`, `games/R.E.P.O.html`
- `games/ignore` appears to be a repository-local exclusion/marker artifact, not a runtime stage.

#### Emulator Layer
The `emulators/` directory groups runtimes for content requiring emulation rather than ordinary HTML5 gameplay. This separates emulator bootstrapping and compatibility concerns from the primary game catalog.
- `emulators/Emulator.JS.html`
- `emulators/Play!.js.html`
- `emulators/Ruffle.html`

#### Tools and Local-File Execution
The tools layer provides browser-hosted utilities, especially a launcher intended to load arbitrary local HTML content. The README identifies browser restrictions on JavaScript in `file:` URLs as a material execution constraint and recommends `data:text/html` URL encoding as a fallback.
- `tools/.Html Launcher.html`
- `tools/Code Editor.html`
- `tools/sandstone.html`

#### Runtime and Deployment
The only required runtime is a modern web browser capable of rendering local HTML and executing its embedded or referenced JavaScript. Deployment can be static-file hosting or direct local-file access. No databases, APIs, backend services, package manager, or infrastructure definitions are present in the supplied tree.

Main entry points: [`index.html`](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/index.html) (Landing Page), [`tools/.Html Launcher.html`](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/tools/.Html%20Launcher.html) (HTML Launcher), [`games/Angry Birds.html`](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/games/Angry%20Birds.html) (Angry Birds), [`games/Five Nights at Freddy's.html`](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/games/Five%20Nights%20at%20Freddy's.html) (Five Nights at Freddy's)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Browser Entry"]
  node_index["Landing Page<br/>HTML entry<br/>[index.html]"]
  node_launcher["HTML Launcher<br/>local launcher"]
end

subgraph group_content["Standalone Content"]
  node_game_catalog["Game Catalog<br/>standalone HTML collection"]
  node_angry_birds["Angry Birds<br/>game document<br/>[Angry Birds.html]"]
  node_fnaf["Five Nights at Freddy's<br/>game document"]
  node_baldi["Baldi's Basics Plus<br/>game document"]
  node_emulator_layer["Emulator Layer<br/>emulator HTML collection"]
  node_emulator_js["Emulator.JS<br/>emulator entry<br/>[Emulator.JS.html]"]
  node_play_js["Play!.js<br/>emulator payload<br/>[Play!.js.html]"]
  node_ruffle["Ruffle<br/>emulator payload<br/>[Ruffle.html]"]
  node_tools["Browser Tools<br/>utility HTML collection"]
  node_code_editor["Code Editor<br/>utility document<br/>[Code Editor.html]"]
  node_soundboard["Soundboard<br/>utility document<br/>[Soundboard.html]"]
  node_sandstone["Sandstone<br/>utility document<br/>[sandstone.html]"]
end

subgraph group_execution["Local Execution"]
  node_browser(("Modern Browser<br/>runtime"))
  node_local_files["Local HTML Files<br/>delivery mode"]
  node_static_hosting["Static File Hosting<br/>delivery mode"]
  node_data_url["data: URL Fallback<br/>browser loading mode"]
end

node_browser -->|"opens"| node_index
node_browser -->|"opens"| node_launcher
node_browser -->|"loads documents"| node_game_catalog
node_browser -->|"loads documents"| node_emulator_layer
node_browser -->|"loads documents"| node_tools
node_index -->|"catalog navigation"| node_game_catalog
node_launcher -->|"loads"| node_local_files
node_local_files -.->|"if restricted"| node_data_url
node_static_hosting -->|"serves"| node_browser
node_game_catalog -->|"includes"| node_angry_birds
node_game_catalog -->|"includes"| node_fnaf
node_game_catalog -->|"includes"| node_baldi
node_emulator_layer -->|"includes"| node_emulator_js
node_emulator_layer -->|"includes"| node_play_js
node_emulator_layer -->|"includes"| node_ruffle
node_tools -->|"includes"| node_code_editor
node_tools -->|"includes"| node_soundboard
node_tools -->|"includes"| node_sandstone

click node_index "https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/index.html"
click node_launcher "https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/tools/.Html%20Launcher.html"
click node_angry_birds "https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/games/Angry%20Birds.html"
click node_fnaf "https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/games/Five%20Nights%20at%20Freddy's.html"
click node_baldi "https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/games/Baldi's%20Basics%20Plus.html"
click node_emulator_js "https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/emulators/Emulator.JS.html"
click node_play_js "https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/emulators/Play!.js.html"
click node_ruffle "https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/emulators/Ruffle.html"
click node_code_editor "https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/tools/Code%20Editor.html"
click node_soundboard "https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/tools/Soundboard.html"
click node_sandstone "https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/tools/sandstone.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_index,node_launcher toneBlue
class node_game_catalog,node_angry_birds,node_fnaf,node_baldi,node_emulator_layer,node_emulator_js,node_play_js,node_ruffle,node_tools,node_code_editor,node_soundboard,node_sandstone toneAmber
class node_browser,node_local_files,node_static_hosting,node_data_url toneMint
```

## Components

### Browser Entry

- [Landing Page](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/index.html): HTML entry · `index.html`
- [HTML Launcher](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/tools/.Html%20Launcher.html): local launcher · Recommended launcher for arbitrary local HTML. · `tools/.Html Launcher.html`

### Standalone Content

Each document executes independently in the browser.

- **Game Catalog**: standalone HTML collection · Directly addressable game documents identified by filename.
- [Angry Birds](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/games/Angry%20Birds.html): game document · `games/Angry Birds.html`
- [Five Nights at Freddy's](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/games/Five%20Nights%20at%20Freddy's.html): game document · `games/Five Nights at Freddy's.html`
- [Baldi's Basics Plus](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/games/Baldi's%20Basics%20Plus.html): game document · `games/Baldi's Basics Plus.html`
- **Emulator Layer**: emulator HTML collection · Separate bootstrapping and compatibility layer for emulated content.
- [Emulator.JS](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/emulators/Emulator.JS.html): emulator entry · `emulators/Emulator.JS.html`
- [Play!.js](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/emulators/Play!.js.html): emulator payload · `emulators/Play!.js.html`
- [Ruffle](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/emulators/Ruffle.html): emulator payload · `emulators/Ruffle.html`
- **Browser Tools**: utility HTML collection · Standalone utilities run as browser documents.
- [Code Editor](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/tools/Code%20Editor.html): utility document · `tools/Code Editor.html`
- [Soundboard](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/tools/Soundboard.html): utility document · `tools/Soundboard.html`
- [Sandstone](https://github.com/mtreasur0133-tech/gnmath-html-games/blob/main/tools/sandstone.html): utility document · `tools/sandstone.html`

### Local Execution

- **Modern Browser**: runtime · Renders local or statically hosted HTML and embedded JavaScript.
- **Local HTML Files**: delivery mode · Direct file access can be restricted by browser file-URL JavaScript policies.
- **Static File Hosting**: delivery mode
- **data: URL Fallback**: browser loading mode · Fallback when file-URL JavaScript restrictions block content.

## Connections

- Modern Browser → Landing Page: opens
- Modern Browser → HTML Launcher: opens
- Modern Browser → Game Catalog: loads documents
- Modern Browser → Emulator Layer: loads documents
- Modern Browser → Browser Tools: loads documents
- Landing Page → Game Catalog: catalog navigation
- HTML Launcher → Local HTML Files: loads
- Local HTML Files → data: URL Fallback: if restricted
- Static File Hosting → Modern Browser: serves
- Game Catalog → Angry Birds: includes
- Game Catalog → Five Nights at Freddy's: includes
- Game Catalog → Baldi's Basics Plus: includes
- Emulator Layer → Emulator.JS: includes
- Emulator Layer → Play!.js: includes
- Emulator Layer → Ruffle: includes
- Browser Tools → Code Editor: includes
- Browser Tools → Soundboard: includes
- Browser Tools → Sandstone: includes
