# heryakmal/czn-save-data-build architecture

> Architecture diagram of the GitHub repository heryakmal/czn-save-data-build, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/heryakmal/czn-save-data-build
- Repository: https://github.com/heryakmal/czn-save-data-build

## Overview

Chaos Zero Nightmare Characters Build Guides is a community build-guide website. The documented workflow is to choose a character and then select a recommended build from a dropdown. The sampled runtime shows preset loading, card rendering, deck normalization, and build-stat validation; character-page data and HTML wiring were not sampled, so their internal relationships are not inferred.

Main entry points: [`build.js`](https://github.com/heryakmal/czn-save-data-build/blob/main/build.js) (Preset Loader), [`neutral.js`](https://github.com/heryakmal/czn-save-data-build/blob/main/neutral.js) (Neutral Cards), [`index.html`](https://github.com/heryakmal/czn-save-data-build/blob/main/index.html) (Guide Home), [`beryl.html`](https://github.com/heryakmal/czn-save-data-build/blob/main/beryl.html) (Beryl Guide)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guides["Character Guides"]
  node_home["Guide Home<br/>[index.html]"]
  node_beryl["Beryl Guide<br/>[beryl.html]"]
  node_veronica["Veronica Guide<br/>[veronica.html]"]
  node_kayron["Kayron Guide<br/>[kayron.html]"]
  node_mei["Mei Lin Guide<br/>[mei-lin.html]"]
  node_tiphera["Tiphera Guide<br/>[tiphera.html]"]
  node_mika["Mika Guide<br/>[mika.html]"]
end

subgraph group_runtime["Build Interface"]
  node_preset["Preset Loader<br/>[build.js]"]
  node_cards["Card Renderer<br/>[build.js]"]
  node_validity["Build Validation<br/>[build.js]"]
end

subgraph group_rules["Deck Rules"]
  node_normalizer["Deck Normalizer<br/>[build.js]"]
  node_stats["Build Statistics<br/>[build.js]"]
end

subgraph group_content["Card Content"]
  node_neutral["Neutral Cards<br/>[neutral.js]"]
end

node_player(("Player"))

node_player -->|"opens guides"| node_home
node_player -->|"chooses character"| node_beryl
node_player -->|"chooses character"| node_veronica
node_player -->|"chooses character"| node_kayron
node_player -->|"chooses character"| node_mei
node_player -->|"chooses character"| node_tiphera
node_player -->|"chooses character"| node_mika
node_preset -->|"normalizes cards"| node_normalizer
node_preset -->|"renders cards"| node_cards
node_preset -->|"calculates stats"| node_stats
node_stats -->|"updates status"| node_validity
node_player -->|"selects build"| node_preset
node_neutral -.->|"supplies card data"| node_cards

click node_home "https://github.com/heryakmal/czn-save-data-build/blob/main/index.html"
click node_beryl "https://github.com/heryakmal/czn-save-data-build/blob/main/beryl.html"
click node_veronica "https://github.com/heryakmal/czn-save-data-build/blob/main/veronica.html"
click node_kayron "https://github.com/heryakmal/czn-save-data-build/blob/main/kayron.html"
click node_mei "https://github.com/heryakmal/czn-save-data-build/blob/main/mei-lin.html"
click node_tiphera "https://github.com/heryakmal/czn-save-data-build/blob/main/tiphera.html"
click node_mika "https://github.com/heryakmal/czn-save-data-build/blob/main/mika.html"
click node_neutral "https://github.com/heryakmal/czn-save-data-build/blob/main/neutral.js"
click node_preset "https://github.com/heryakmal/czn-save-data-build/blob/main/build.js"
click node_cards "https://github.com/heryakmal/czn-save-data-build/blob/main/build.js"
click node_normalizer "https://github.com/heryakmal/czn-save-data-build/blob/main/build.js"
click node_stats "https://github.com/heryakmal/czn-save-data-build/blob/main/build.js"
click node_validity "https://github.com/heryakmal/czn-save-data-build/blob/main/build.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_home,node_beryl,node_veronica,node_kayron,node_mei,node_tiphera,node_mika toneBlue
class node_preset,node_cards,node_validity toneAmber
class node_normalizer,node_stats toneMint
class node_neutral toneRose
class node_player toneIndigo
```

## Components

### Character Guides

- [Guide Home](https://github.com/heryakmal/czn-save-data-build/blob/main/index.html): `index.html`
- [Beryl Guide](https://github.com/heryakmal/czn-save-data-build/blob/main/beryl.html): `beryl.html`
- [Veronica Guide](https://github.com/heryakmal/czn-save-data-build/blob/main/veronica.html): `veronica.html`
- [Kayron Guide](https://github.com/heryakmal/czn-save-data-build/blob/main/kayron.html): `kayron.html`
- [Mei Lin Guide](https://github.com/heryakmal/czn-save-data-build/blob/main/mei-lin.html): `mei-lin.html`
- [Tiphera Guide](https://github.com/heryakmal/czn-save-data-build/blob/main/tiphera.html): `tiphera.html`
- [Mika Guide](https://github.com/heryakmal/czn-save-data-build/blob/main/mika.html): `mika.html`

### Build Interface

- [Preset Loader](https://github.com/heryakmal/czn-save-data-build/blob/main/build.js): `build.js`
- [Card Renderer](https://github.com/heryakmal/czn-save-data-build/blob/main/build.js): `build.js`
- [Build Validation](https://github.com/heryakmal/czn-save-data-build/blob/main/build.js): `build.js`

### Deck Rules

- [Deck Normalizer](https://github.com/heryakmal/czn-save-data-build/blob/main/build.js): `build.js`
- [Build Statistics](https://github.com/heryakmal/czn-save-data-build/blob/main/build.js): `build.js`

### Card Content

- [Neutral Cards](https://github.com/heryakmal/czn-save-data-build/blob/main/neutral.js): `neutral.js`

### Other components

- **Player**

## Connections

- Player → Guide Home: opens guides (evidence: `README.md`)
- Player → Beryl Guide: chooses character (evidence: `README.md`)
- Player → Veronica Guide: chooses character (evidence: `README.md`)
- Player → Kayron Guide: chooses character (evidence: `README.md`)
- Player → Mei Lin Guide: chooses character (evidence: `README.md`)
- Player → Tiphera Guide: chooses character (evidence: `README.md`)
- Player → Mika Guide: chooses character (evidence: `README.md`)
- Preset Loader → Deck Normalizer: normalizes cards (evidence: `build.js`)
- Preset Loader → Card Renderer: renders cards (evidence: `build.js`)
- Preset Loader → Build Statistics: calculates stats (evidence: `build.js`)
- Build Statistics → Build Validation: updates status (evidence: `build.js`)
- Player → Preset Loader: selects build (evidence: `README.md`)
- Neutral Cards → Card Renderer: supplies card data
