# misted91/minewind-site architecture

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

## Overview

Codex des Essences is a static, vanilla HTML/CSS/JavaScript site for browsing and searching essence data, planning equipment, tracking owned essences, and trading. The principal user flow starts at index.html, which loads the page’s styles and scripts; users then work in the Codex, Equipment, Inventory, and Trade tabs. The README documents script order, translations, inventory persistence, and moderation, but no source excerpts were provided, so internal calls beyond those documented relationships are not inferred.

Main entry points: [`index.html`](https://github.com/misted91/minewind-site/blob/main/index.html) (Main page), [`assets/js/inventory.js`](https://github.com/misted91/minewind-site/blob/main/assets/js/inventory.js) (Essence inventory), [`assets/js/i18n`](https://github.com/misted91/minewind-site/tree/main/assets/js/i18n) (Language strings), [`assets/js/i18n/index.js`](https://github.com/misted91/minewind-site/blob/main/assets/js/i18n/index.js) (Translation assembly)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Page and presentation"]
  node_page["Main page<br/>[index.html]"]
  node_base_style["Base styles<br/>[base.css]"]
  node_chrome_style["Site chrome<br/>[chrome.css]"]
  node_responsive_style["Responsive styles<br/>[responsive.css]"]
end

subgraph group_codex_build["Codex and equipment"]
  node_codex_style["Codex styles<br/>[codex.css]"]
  node_codex["Codex browser<br/>[codex.js]"]
  node_build_style["Equipment styles<br/>[build.css]"]
  node_build["Equipment planner<br/>[build.js]"]
end

subgraph group_inventory_trade["Inventory and trade"]
  node_inventory_style["Inventory styles<br/>[inventory.css]"]
  node_inventory["Essence inventory<br/>[inventory.js]"]
  node_trade_style["Trade styles<br/>[trade.css]"]
  node_firebase["Firebase initialization<br/>[firebase-init.js]"]
  node_trade["Trade listings<br/>[trade.js]"]
  node_moderation["Trade moderation<br/>[trade-mod.js]"]
end

subgraph group_shared["Shared data and language"]
  node_essence_data["Essence data<br/>[data.js]"]
  node_translations["Language strings"]
  node_i18n["Translation assembly<br/>[index.js]"]
end

node_visitor(("Site visitor"))
node_browser_storage[("Browser localStorage")]

node_visitor -->|"opens"| node_page
node_page -->|"loads styles"| node_base_style
node_page -->|"loads styles"| node_chrome_style
node_page -->|"loads styles"| node_codex_style
node_page -->|"loads styles"| node_build_style
node_page -->|"loads styles"| node_trade_style
node_page -->|"loads styles"| node_inventory_style
node_page -->|"loads last"| node_responsive_style
node_page -->|"loads first"| node_essence_data
node_page -->|"loads languages"| node_translations
node_page -->|"loads after languages"| node_i18n
node_page -->|"loads script"| node_codex
node_page -->|"loads script"| node_build
node_page -->|"loads script"| node_inventory
node_page -->|"loads script"| node_firebase
node_page -->|"loads after Firebase"| node_trade
node_page -->|"loads after trade"| node_moderation
node_translations -->|"assembles strings"| node_i18n
node_inventory -->|"persists inventory"| node_browser_storage

click node_page "https://github.com/misted91/minewind-site/blob/main/index.html"
click node_base_style "https://github.com/misted91/minewind-site/blob/main/assets/css/base.css"
click node_chrome_style "https://github.com/misted91/minewind-site/blob/main/assets/css/chrome.css"
click node_responsive_style "https://github.com/misted91/minewind-site/blob/main/assets/css/responsive.css"
click node_codex_style "https://github.com/misted91/minewind-site/blob/main/assets/css/codex.css"
click node_codex "https://github.com/misted91/minewind-site/blob/main/assets/js/codex.js"
click node_build_style "https://github.com/misted91/minewind-site/blob/main/assets/css/build.css"
click node_build "https://github.com/misted91/minewind-site/blob/main/assets/js/build.js"
click node_inventory_style "https://github.com/misted91/minewind-site/blob/main/assets/css/inventory.css"
click node_inventory "https://github.com/misted91/minewind-site/blob/main/assets/js/inventory.js"
click node_trade_style "https://github.com/misted91/minewind-site/blob/main/assets/css/trade.css"
click node_firebase "https://github.com/misted91/minewind-site/blob/main/assets/js/firebase-init.js"
click node_trade "https://github.com/misted91/minewind-site/blob/main/assets/js/trade.js"
click node_moderation "https://github.com/misted91/minewind-site/blob/main/assets/js/trade-mod.js"
click node_essence_data "https://github.com/misted91/minewind-site/blob/main/assets/js/data.js"
click node_translations "https://github.com/misted91/minewind-site/tree/main/assets/js/i18n"
click node_i18n "https://github.com/misted91/minewind-site/blob/main/assets/js/i18n/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_page,node_base_style,node_chrome_style,node_responsive_style toneBlue
class node_codex_style,node_codex,node_build_style,node_build,node_browser_storage toneAmber
class node_inventory_style,node_inventory,node_trade_style,node_firebase,node_trade,node_moderation toneMint
class node_essence_data,node_translations,node_i18n toneRose
class node_visitor toneIndigo
```

## Components

### Page and presentation

- [Main page](https://github.com/misted91/minewind-site/blob/main/index.html): `index.html`
- [Base styles](https://github.com/misted91/minewind-site/blob/main/assets/css/base.css): `assets/css/base.css`
- [Site chrome](https://github.com/misted91/minewind-site/blob/main/assets/css/chrome.css): `assets/css/chrome.css`
- [Responsive styles](https://github.com/misted91/minewind-site/blob/main/assets/css/responsive.css): `assets/css/responsive.css`

### Codex and equipment

- [Codex styles](https://github.com/misted91/minewind-site/blob/main/assets/css/codex.css): `assets/css/codex.css`
- [Codex browser](https://github.com/misted91/minewind-site/blob/main/assets/js/codex.js): `assets/js/codex.js`
- [Equipment styles](https://github.com/misted91/minewind-site/blob/main/assets/css/build.css): `assets/css/build.css`
- [Equipment planner](https://github.com/misted91/minewind-site/blob/main/assets/js/build.js): `assets/js/build.js`

### Inventory and trade

- [Inventory styles](https://github.com/misted91/minewind-site/blob/main/assets/css/inventory.css): `assets/css/inventory.css`
- [Essence inventory](https://github.com/misted91/minewind-site/blob/main/assets/js/inventory.js): `assets/js/inventory.js`
- [Trade styles](https://github.com/misted91/minewind-site/blob/main/assets/css/trade.css): `assets/css/trade.css`
- [Firebase initialization](https://github.com/misted91/minewind-site/blob/main/assets/js/firebase-init.js): `assets/js/firebase-init.js`
- [Trade listings](https://github.com/misted91/minewind-site/blob/main/assets/js/trade.js): `assets/js/trade.js`
- [Trade moderation](https://github.com/misted91/minewind-site/blob/main/assets/js/trade-mod.js): `assets/js/trade-mod.js`

### Shared data and language

- [Essence data](https://github.com/misted91/minewind-site/blob/main/assets/js/data.js): `assets/js/data.js`
- [Language strings](https://github.com/misted91/minewind-site/tree/main/assets/js/i18n): `assets/js/i18n`
- [Translation assembly](https://github.com/misted91/minewind-site/blob/main/assets/js/i18n/index.js): `assets/js/i18n/index.js`

### Other components

- **Site visitor**
- **Browser localStorage**

## Connections

- Site visitor → Main page: opens (evidence: `README.md`)
- Main page → Base styles: loads styles (evidence: `README.md`)
- Main page → Site chrome: loads styles (evidence: `README.md`)
- Main page → Codex styles: loads styles (evidence: `README.md`)
- Main page → Equipment styles: loads styles (evidence: `README.md`)
- Main page → Trade styles: loads styles (evidence: `README.md`)
- Main page → Inventory styles: loads styles (evidence: `README.md`)
- Main page → Responsive styles: loads last (evidence: `README.md`)
- Main page → Essence data: loads first (evidence: `README.md`)
- Main page → Language strings: loads languages (evidence: `README.md`)
- Main page → Translation assembly: loads after languages (evidence: `README.md`)
- Main page → Codex browser: loads script (evidence: `README.md`)
- Main page → Equipment planner: loads script (evidence: `README.md`)
- Main page → Essence inventory: loads script (evidence: `README.md`)
- Main page → Firebase initialization: loads script (evidence: `README.md`)
- Main page → Trade listings: loads after Firebase (evidence: `README.md`)
- Main page → Trade moderation: loads after trade (evidence: `README.md`)
- Language strings → Translation assembly: assembles strings (evidence: `README.md`)
- Essence inventory → Browser localStorage: persists inventory (evidence: `README.md`)
