# hahwul/webhackersweapons architecture

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

- Interactive diagram: https://gitdiagram.com/hahwul/webhackersweapons
- Repository: https://github.com/hahwul/webhackersweapons

## Overview

WebHackersWeapons is a curated catalog of web-security tools, with entries organized by type, category, tags, language, and platform. Readers browse the generated README and tag/language indexes; the central generator reads YAML entries and writes those Markdown views. The repository also includes scripts for converting legacy data and enriching or checking catalog entries. The migration and maintenance scripts are shown as separate utilities; their relationship to one another is not established by the excerpts.

Main entry points: [`weapons`](https://github.com/hahwul/webhackersweapons/tree/main/weapons) (Weapon records), [`scripts/erb.rb`](https://github.com/hahwul/webhackersweapons/blob/main/scripts/erb.rb) (Markdown generator), [`README.md`](https://github.com/hahwul/webhackersweapons/blob/main/README.md) (Main catalog), [`scripts/for_migration/migration.rb`](https://github.com/hahwul/webhackersweapons/blob/main/scripts/for_migration/migration.rb) (Legacy migration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Tool catalog"]
  node_records[("Weapon records")]
end

subgraph group_views["Catalog views"]
  node_generator["Markdown generator<br/>[erb.rb]"]
  node_main_index["Main catalog<br/>[README.md]"]
  node_category_indexes["Tag and language indexes"]
end

subgraph group_maintenance["Catalog maintenance"]
  node_legacy_migration["Legacy migration<br/>[migration.rb]"]
  node_language_fetcher["Language enrichment<br/>[fetch_lang.rb]"]
  node_platform_updater["Platform updater<br/>[apply_platform.rb]"]
  node_validator["Entry validator"]
end

node_reader(("Catalog reader"))

node_records -->|"reads YAML"| node_generator
node_generator -->|"writes Markdown"| node_main_index
node_generator -->|"writes indexes"| node_category_indexes
node_reader -->|"browses catalog"| node_main_index
node_legacy_migration -->|"writes entries"| node_records
node_language_fetcher -->|"updates languages"| node_records
node_platform_updater -->|"updates platforms"| node_records
node_validator -->|"checks entries"| node_records

click node_records "https://github.com/hahwul/webhackersweapons/tree/main/weapons"
click node_generator "https://github.com/hahwul/webhackersweapons/blob/main/scripts/erb.rb"
click node_main_index "https://github.com/hahwul/webhackersweapons/blob/main/README.md"
click node_category_indexes "https://github.com/hahwul/webhackersweapons/tree/main/categorize"
click node_legacy_migration "https://github.com/hahwul/webhackersweapons/blob/main/scripts/for_migration/migration.rb"
click node_language_fetcher "https://github.com/hahwul/webhackersweapons/blob/main/scripts/for_migration/fetch_lang.rb"
click node_platform_updater "https://github.com/hahwul/webhackersweapons/blob/main/scripts/for_migration/apply_platform.rb"
click node_validator "https://github.com/hahwul/webhackersweapons/blob/main/scripts/validate_weapons.rb"

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_records toneBlue
class node_generator,node_main_index,node_category_indexes toneAmber
class node_legacy_migration,node_language_fetcher,node_platform_updater,node_validator toneMint
class node_reader toneIndigo
```

## Components

### Tool catalog

- [Weapon records](https://github.com/hahwul/webhackersweapons/tree/main/weapons): `weapons`

### Catalog views

- [Markdown generator](https://github.com/hahwul/webhackersweapons/blob/main/scripts/erb.rb): `scripts/erb.rb`
- [Main catalog](https://github.com/hahwul/webhackersweapons/blob/main/README.md): `README.md`
- [Tag and language indexes](https://github.com/hahwul/webhackersweapons/tree/main/categorize): `categorize`

### Catalog maintenance

- [Legacy migration](https://github.com/hahwul/webhackersweapons/blob/main/scripts/for_migration/migration.rb): `scripts/for_migration/migration.rb`
- [Language enrichment](https://github.com/hahwul/webhackersweapons/blob/main/scripts/for_migration/fetch_lang.rb): `scripts/for_migration/fetch_lang.rb`
- [Platform updater](https://github.com/hahwul/webhackersweapons/blob/main/scripts/for_migration/apply_platform.rb): `scripts/for_migration/apply_platform.rb`
- [Entry validator](https://github.com/hahwul/webhackersweapons/blob/main/scripts/validate_weapons.rb): `scripts/validate_weapons.rb`

### Other components

- **Catalog reader**

## Connections

- Weapon records → Markdown generator: reads YAML (evidence: `scripts/erb.rb`)
- Markdown generator → Main catalog: writes Markdown (evidence: `scripts/erb.rb`)
- Markdown generator → Tag and language indexes: writes indexes (evidence: `scripts/erb.rb`)
- Catalog reader → Main catalog: browses catalog (evidence: `README.md`)
- Legacy migration → Weapon records: writes entries (evidence: `scripts/for_migration/migration.rb`)
- Language enrichment → Weapon records: updates languages (evidence: `scripts/for_migration/fetch_lang.rb`)
- Platform updater → Weapon records: updates platforms (evidence: `scripts/for_migration/apply_platform.rb`)
- Entry validator → Weapon records: checks entries (evidence: `scripts/validate_weapons.rb`)
