# svaaps/eaglercrafthtml architecture

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

- Interactive diagram: https://gitdiagram.com/svaaps/eaglercrafthtml
- Repository: https://github.com/svaaps/eaglercrafthtml

## Overview

#### Purpose and Entry Point
This repository packages a browser-hosted Eaglercraft 1.8 client as a static site. Its primary entry point is `index.html`, intended for direct local opening or deployment to static hosting such as GitHub Pages, Netlify, or Vercel.

#### Static Application Shell
`index.html` is the application boundary and likely contains or references the complete browser runtime, game assets, and initialization logic. There is no visible server-side application, API layer, or build source tree in this repository snapshot.

Paths:
- `index.html`

#### Browser Runtime and Persistence
The client runs entirely in the user’s browser. The README states that the hosted version saves individual worlds, implying browser-local persistence (such as IndexedDB/local storage) rather than repository-managed backend storage. Local use is supported through downloadable releases or a cloned static copy.

Paths:
- `index.html`
- `README.md`

#### Deployment Model
The repository is designed to be cloned and deployed as static content. The README provides direct deployment integrations for Netlify and Vercel, while the published instance is hosted through GitHub Pages. Hosting infrastructure serves the same static client; no runtime service configuration is represented in the tree.

Paths:
- `README.md`
- `index.html`

#### CI/CD Boundary
GitHub Actions provides the only visible automation boundary. The workflow under `.github/workflows` is likely responsible for static-site validation or deployment-related checks, separating repository automation from the browser application itself.

Paths:
- `.github/workflows/static.yml`
- `.github/workflows`

#### Upstream Relationship
This repository is an HTML/web distribution of Eaglercraft rather than the original game source repository. The README identifies `lax1dude/eaglercraft` as upstream, making this project primarily a deployable web artifact and customization point for alternate hosted copies.

Paths:
- `README.md`
- `index.html`

Main entry points: [`index.html`](https://github.com/svaaps/eaglercrafthtml/blob/main/index.html) (Static app shell), [`README.md`](https://github.com/svaaps/eaglercrafthtml/blob/main/README.md) (README), [`.github/workflows/static.yml`](https://github.com/svaaps/eaglercrafthtml/blob/main/.github/workflows/static.yml) (GitHub Actions workflow), [`.github/workflows`](https://github.com/svaaps/eaglercrafthtml/tree/main/.github/workflows) (Workflow directory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_repo["Repository"]
  node_upstream["Eaglercraft upstream<br/>upstream project<br/>[README.md]"]
  node_readme["README<br/>documentation<br/>[README.md]"]
  node_index["Static app shell<br/>HTML entry point<br/>[index.html]"]
  node_workflow["GitHub Actions workflow<br/>CI/CD automation<br/>[static.yml]"]
  node_workflows["Workflow directory<br/>automation boundary<br/>[workflows]"]
end

subgraph group_browser["Browser client"]
  node_runtime["Eaglercraft runtime<br/>browser runtime<br/>[index.html]"]
  node_worlds[("Saved worlds<br/>browser-local data")]
end

subgraph group_hosting["Static hosting"]
  node_static_host{{"Static host<br/>hosting platform"}}
  node_published_site["Published client<br/>static deployment<br/>[index.html]"]
  node_local_copy["Local static copy<br/>local deployment<br/>[index.html]"]
end

node_upstream -.->|"documented in"| node_readme
node_readme -.->|"documents use of"| node_index
node_index -->|"loads"| node_runtime
node_runtime -->|"persists worlds in"| node_worlds
node_workflows -->|"contains"| node_workflow
node_workflow -.->|"validates or deploys"| node_index
node_index -->|"deployed as static content"| node_static_host
node_static_host -->|"serves"| node_published_site
node_index -->|"opens or serves locally"| node_local_copy
node_published_site -->|"runs"| node_runtime
node_local_copy -->|"runs"| node_runtime

click node_upstream "https://github.com/svaaps/eaglercrafthtml/blob/main/README.md"
click node_readme "https://github.com/svaaps/eaglercrafthtml/blob/main/README.md"
click node_index "https://github.com/svaaps/eaglercrafthtml/blob/main/index.html"
click node_runtime "https://github.com/svaaps/eaglercrafthtml/blob/main/index.html"
click node_workflow "https://github.com/svaaps/eaglercrafthtml/blob/main/.github/workflows/static.yml"
click node_workflows "https://github.com/svaaps/eaglercrafthtml/tree/main/.github/workflows"
click node_published_site "https://github.com/svaaps/eaglercrafthtml/blob/main/index.html"
click node_local_copy "https://github.com/svaaps/eaglercrafthtml/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_upstream,node_readme,node_index,node_workflow,node_workflows toneBlue
class node_runtime,node_worlds toneAmber
class node_static_host,node_published_site,node_local_copy toneMint
```

## Components

### Repository

- [Eaglercraft upstream](https://github.com/svaaps/eaglercrafthtml/blob/main/README.md): upstream project · Original game source relationship documented by the README. · `README.md`
- [README](https://github.com/svaaps/eaglercrafthtml/blob/main/README.md): documentation · Documents local use and static deployment options. · `README.md`
- [Static app shell](https://github.com/svaaps/eaglercrafthtml/blob/main/index.html): HTML entry point · Single deployable browser application boundary. · `index.html`
- [GitHub Actions workflow](https://github.com/svaaps/eaglercrafthtml/blob/main/.github/workflows/static.yml): CI/CD automation · Repository automation for static-site checks or deployment. · `.github/workflows/static.yml`
- [Workflow directory](https://github.com/svaaps/eaglercrafthtml/tree/main/.github/workflows): automation boundary · `.github/workflows`

### Browser client

- [Eaglercraft runtime](https://github.com/svaaps/eaglercrafthtml/blob/main/index.html): browser runtime · Game runtime and assets execute entirely in the browser. · `index.html`
- **Saved worlds**: browser-local data · Individual worlds persist in browser-managed storage.

### Static hosting

- **Static host**: hosting platform · GitHub Pages, Netlify, or Vercel serves the same static files.
- [Published client](https://github.com/svaaps/eaglercrafthtml/blob/main/index.html): static deployment · `index.html`
- [Local static copy](https://github.com/svaaps/eaglercrafthtml/blob/main/index.html): local deployment · Can be opened directly or served from a cloned copy. · `index.html`

## Connections

- Eaglercraft upstream → README: documented in
- README → Static app shell: documents use of
- Static app shell → Eaglercraft runtime: loads
- Eaglercraft runtime → Saved worlds: persists worlds in
- Workflow directory → GitHub Actions workflow: contains
- GitHub Actions workflow → Static app shell: validates or deploys
- Static app shell → Static host: deployed as static content
- Static host → Published client: serves
- Static app shell → Local static copy: opens or serves locally
- Published client → Eaglercraft runtime: runs
- Local static copy → Eaglercraft runtime: runs
