# hasseroeder/basement architecture

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

- Interactive diagram: https://gitdiagram.com/hasseroeder/basement
- Repository: https://github.com/hasseroeder/basement

## Overview

Basement is an Astro guide for OwO-Bot’s battle mechanics. A reader enters through the site routes, reads structured battle, experience, huntbot, pet, and weapon references, or opens an interactive calculator. Calculator pages load domain data and browser scripts to derive and display results. The sampled weapon flow shows explicit construction of weapons, passives, buffs, stat controls, and rendered descriptions. Pet metadata also comes from an external NeonUtil API; other unsampled page wiring is represented conservatively from the repository structure.

Main entry points: [`src/pages`](https://github.com/hasseroeder/basement/tree/main/src/pages) (Astro Routes), [`astro.config.mjs`](https://github.com/hasseroeder/basement/blob/main/astro.config.mjs) (Markdown Pipeline), [`src/scripts/weapon/calculator/main.js`](https://github.com/hasseroeder/basement/blob/main/src/scripts/weapon/calculator/main.js) (Weapon Calculator), [`src/scripts/pets/calculator`](https://github.com/hasseroeder/basement/tree/main/src/scripts/pets/calculator) (Pet Calculators)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site Presentation"]
  node_site_routes["Astro Routes"]
  node_shared_components["Shared Components"]
  node_markdown_pipeline["Markdown Pipeline<br/>[astro.config.mjs]"]
end

subgraph group_guides["Game Guides"]
  node_battle_guides["Battle Guides"]
  node_experience_guides["Experience Guides"]
  node_huntbot_guides["Huntbot Guides"]
  node_pet_guides["Pet Guides"]
  node_weapon_guides["Weapon Guides"]
end

subgraph group_calculators["Interactive Calculators"]
  node_huntbot_calculator["Huntbot Calculator<br/>[calculator.ts]"]
  node_pet_calculators["Pet Calculators"]
  node_pet_charts["Pet Charts"]
  node_weapon_calculator["Weapon Calculator<br/>[main.js]"]
  node_weapon_model["Weapon Model<br/>[weapon.js]"]
  node_passive_handler["Passive Handler<br/>[passiveHandler.js]"]
  node_buff_handler["Buff Handler<br/>[buffHandler.js]"]
  node_weapon_renderer["Weapon Renderer<br/>[messageHandler.js]"]
end

subgraph group_domain["Domain Data"]
  node_weapon_data[("Weapon Data<br/>[weapons.json]")]
  node_combat_data[("Combat Data")]
  node_huntbot_data[("Huntbot Data")]
  node_pet_data[("Pet Data")]
end

node_reader(("Reader"))
node_neonutil_api[("NeonUtil API")]
node_discord_cdn[("Discord CDN")]

node_reader -->|"visits"| node_site_routes
node_site_routes -->|"renders"| node_shared_components
node_site_routes -->|"processes"| node_markdown_pipeline
node_markdown_pipeline -->|"renders"| node_battle_guides
node_markdown_pipeline -->|"renders"| node_experience_guides
node_markdown_pipeline -->|"renders"| node_huntbot_guides
node_markdown_pipeline -->|"renders"| node_pet_guides
node_markdown_pipeline -->|"renders"| node_weapon_guides
node_site_routes -->|"loads"| node_huntbot_calculator
node_site_routes -->|"loads"| node_pet_calculators
node_site_routes -->|"loads"| node_pet_charts
node_site_routes -->|"loads"| node_weapon_calculator
node_huntbot_calculator -->|"reads"| node_huntbot_data
node_pet_calculators -->|"reads"| node_pet_data
node_pet_charts -->|"reads"| node_pet_data
node_weapon_calculator -->|"reads"| node_weapon_data
node_weapon_calculator -->|"reads"| node_combat_data
node_weapon_calculator -->|"constructs"| node_weapon_model
node_weapon_calculator -->|"creates"| node_passive_handler
node_passive_handler -->|"creates"| node_buff_handler
node_weapon_calculator -->|"renders"| node_weapon_renderer
node_weapon_renderer -.->|"loads assets"| node_discord_cdn
node_pet_calculators -.->|"loads pets"| node_neonutil_api

click node_site_routes "https://github.com/hasseroeder/basement/tree/main/src/pages"
click node_shared_components "https://github.com/hasseroeder/basement/tree/main/src/components"
click node_markdown_pipeline "https://github.com/hasseroeder/basement/blob/main/astro.config.mjs"
click node_battle_guides "https://github.com/hasseroeder/basement/tree/main/src/content/battleSystem"
click node_experience_guides "https://github.com/hasseroeder/basement/tree/main/src/content/exp"
click node_huntbot_guides "https://github.com/hasseroeder/basement/tree/main/src/content/huntbot"
click node_pet_guides "https://github.com/hasseroeder/basement/tree/main/src/content/pets"
click node_weapon_guides "https://github.com/hasseroeder/basement/tree/main/src/content/weapon"
click node_huntbot_calculator "https://github.com/hasseroeder/basement/blob/main/src/scripts/huntbot/calculator/calculator.ts"
click node_pet_calculators "https://github.com/hasseroeder/basement/tree/main/src/scripts/pets/calculator"
click node_pet_charts "https://github.com/hasseroeder/basement/tree/main/src/scripts/pets/triangleCharts"
click node_weapon_calculator "https://github.com/hasseroeder/basement/blob/main/src/scripts/weapon/calculator/main.js"
click node_weapon_model "https://github.com/hasseroeder/basement/blob/main/src/scripts/weapon/calculator/weapon.js"
click node_passive_handler "https://github.com/hasseroeder/basement/blob/main/src/scripts/weapon/calculator/passiveHandler.js"
click node_buff_handler "https://github.com/hasseroeder/basement/blob/main/src/scripts/weapon/calculator/buffHandler.js"
click node_weapon_renderer "https://github.com/hasseroeder/basement/blob/main/src/scripts/weapon/calculator/messageHandler.js"
click node_weapon_data "https://github.com/hasseroeder/basement/blob/main/src/data/weapons.json"
click node_combat_data "https://github.com/hasseroeder/basement/tree/main/src/data"
click node_huntbot_data "https://github.com/hasseroeder/basement/tree/main/src/data/huntbot"
click node_pet_data "https://github.com/hasseroeder/basement/tree/main/src/data/pets"

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_site_routes,node_shared_components,node_markdown_pipeline toneBlue
class node_battle_guides,node_experience_guides,node_huntbot_guides,node_pet_guides,node_weapon_guides,node_neonutil_api,node_discord_cdn toneAmber
class node_huntbot_calculator,node_pet_calculators,node_pet_charts,node_weapon_calculator,node_weapon_model,node_passive_handler,node_buff_handler,node_weapon_renderer toneMint
class node_weapon_data,node_combat_data,node_huntbot_data,node_pet_data toneRose
class node_reader toneIndigo
```

## Components

### Site Presentation

- [Astro Routes](https://github.com/hasseroeder/basement/tree/main/src/pages): `src/pages`
- [Shared Components](https://github.com/hasseroeder/basement/tree/main/src/components): `src/components`
- [Markdown Pipeline](https://github.com/hasseroeder/basement/blob/main/astro.config.mjs): `astro.config.mjs`

### Game Guides

- [Battle Guides](https://github.com/hasseroeder/basement/tree/main/src/content/battleSystem): `src/content/battleSystem`
- [Experience Guides](https://github.com/hasseroeder/basement/tree/main/src/content/exp): `src/content/exp`
- [Huntbot Guides](https://github.com/hasseroeder/basement/tree/main/src/content/huntbot): `src/content/huntbot`
- [Pet Guides](https://github.com/hasseroeder/basement/tree/main/src/content/pets): `src/content/pets`
- [Weapon Guides](https://github.com/hasseroeder/basement/tree/main/src/content/weapon): `src/content/weapon`

### Interactive Calculators

- [Huntbot Calculator](https://github.com/hasseroeder/basement/blob/main/src/scripts/huntbot/calculator/calculator.ts): `src/scripts/huntbot/calculator/calculator.ts`
- [Pet Calculators](https://github.com/hasseroeder/basement/tree/main/src/scripts/pets/calculator): `src/scripts/pets/calculator`
- [Pet Charts](https://github.com/hasseroeder/basement/tree/main/src/scripts/pets/triangleCharts): `src/scripts/pets/triangleCharts`
- [Weapon Calculator](https://github.com/hasseroeder/basement/blob/main/src/scripts/weapon/calculator/main.js): `src/scripts/weapon/calculator/main.js`
- [Weapon Model](https://github.com/hasseroeder/basement/blob/main/src/scripts/weapon/calculator/weapon.js): `src/scripts/weapon/calculator/weapon.js`
- [Passive Handler](https://github.com/hasseroeder/basement/blob/main/src/scripts/weapon/calculator/passiveHandler.js): `src/scripts/weapon/calculator/passiveHandler.js`
- [Buff Handler](https://github.com/hasseroeder/basement/blob/main/src/scripts/weapon/calculator/buffHandler.js): `src/scripts/weapon/calculator/buffHandler.js`
- [Weapon Renderer](https://github.com/hasseroeder/basement/blob/main/src/scripts/weapon/calculator/messageHandler.js): `src/scripts/weapon/calculator/messageHandler.js`

### Domain Data

- [Weapon Data](https://github.com/hasseroeder/basement/blob/main/src/data/weapons.json): `src/data/weapons.json`
- [Combat Data](https://github.com/hasseroeder/basement/tree/main/src/data): `src/data`
- [Huntbot Data](https://github.com/hasseroeder/basement/tree/main/src/data/huntbot): `src/data/huntbot`
- [Pet Data](https://github.com/hasseroeder/basement/tree/main/src/data/pets): `src/data/pets`

### Other components

- **Reader**
- **NeonUtil API**
- **Discord CDN**

## Connections

- Reader → Astro Routes: visits
- Astro Routes → Shared Components: renders
- Astro Routes → Markdown Pipeline: processes
- Markdown Pipeline → Battle Guides: renders
- Markdown Pipeline → Experience Guides: renders
- Markdown Pipeline → Huntbot Guides: renders
- Markdown Pipeline → Pet Guides: renders
- Markdown Pipeline → Weapon Guides: renders
- Astro Routes → Huntbot Calculator: loads
- Astro Routes → Pet Calculators: loads
- Astro Routes → Pet Charts: loads
- Astro Routes → Weapon Calculator: loads
- Huntbot Calculator → Huntbot Data: reads
- Pet Calculators → Pet Data: reads
- Pet Charts → Pet Data: reads
- Weapon Calculator → Weapon Data: reads
- Weapon Calculator → Combat Data: reads
- Weapon Calculator → Weapon Model: constructs
- Weapon Calculator → Passive Handler: creates
- Passive Handler → Buff Handler: creates
- Weapon Calculator → Weapon Renderer: renders
- Weapon Renderer → Discord CDN: loads assets
- Pet Calculators → NeonUtil API: loads pets
