# rafaellegend/foundry-vtt-ordem-paranormal-rpg architecture

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

- Interactive diagram: https://gitdiagram.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg
- Repository: https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg

## Overview

This repository is an early Foundry VTT system implementation for the Ordem Paranormal tabletop RPG; the README says it is not functional yet. Its visible runtime entry point registers system configuration and a default item sheet during Foundry initialization. The sheet builds its data from the item and system configuration, and chooses a template by item type. The tree also contains localization, styling, system metadata, and a tutorial compendium, but their runtime wiring is not shown in the excerpts.

Main entry points: [`ordemsys.js`](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/ordemsys.js) (System initialization), [`module/sheets/OrdemSysItemSheet.js`](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/module/sheets/OrdemSysItemSheet.js) (Item sheet), [`module/config.js`](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/module/config.js) (System configuration), [`templates/sheets/weapon-sheet.html`](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/templates/sheets/weapon-sheet.html) (Weapon sheet template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["System runtime"]
  node_init["System initialization<br/>[ordemsys.js]"]
  node_config["System configuration<br/>[config.js]"]
end

subgraph group_presentation["Sheet presentation"]
  node_item_sheet["Item sheet"]
  node_weapon_template["Weapon sheet template<br/>[weapon-sheet.html]"]
  node_styles["System styles<br/>[ordemsys.css]"]
end

subgraph group_assets["System assets"]
  node_english_locale["English localization<br/>[en.json]"]
  node_portuguese_locale["Portuguese localization<br/>[pt_br.json]"]
  node_system_manifest["System manifest<br/>[system.json]"]
  node_template_manifest["Template metadata<br/>[template.json]"]
  node_tutorial_compendium[("Tutorial compendium<br/>[tutorial.db]")]
end

node_foundry(("Foundry VTT"))

node_foundry -->|"initializes"| node_init
node_init -->|"sets configuration"| node_config
node_init -->|"registers sheet"| node_item_sheet
node_item_sheet -->|"reads configuration"| node_config
node_item_sheet -.->|"selects by type"| node_weapon_template

click node_init "https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/ordemsys.js"
click node_config "https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/module/config.js"
click node_item_sheet "https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/module/sheets/OrdemSysItemSheet.js"
click node_weapon_template "https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/templates/sheets/weapon-sheet.html"
click node_styles "https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/css/ordemsys.css"
click node_english_locale "https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/lang/en.json"
click node_portuguese_locale "https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/lang/pt_br.json"
click node_system_manifest "https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/system.json"
click node_template_manifest "https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/template.json"
click node_tutorial_compendium "https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/packs/tutorial.db"

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_init,node_config toneBlue
class node_item_sheet,node_weapon_template,node_styles toneAmber
class node_english_locale,node_portuguese_locale,node_system_manifest,node_template_manifest,node_tutorial_compendium toneMint
class node_foundry toneIndigo
```

## Components

### System runtime

- [System initialization](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/ordemsys.js): `ordemsys.js`
- [System configuration](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/module/config.js): `module/config.js`

### Sheet presentation

- [Item sheet](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/module/sheets/OrdemSysItemSheet.js): `module/sheets/OrdemSysItemSheet.js`
- [Weapon sheet template](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/templates/sheets/weapon-sheet.html): `templates/sheets/weapon-sheet.html`
- [System styles](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/css/ordemsys.css): `css/ordemsys.css`

### System assets

- [English localization](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/lang/en.json): `lang/en.json`
- [Portuguese localization](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/lang/pt_br.json): `lang/pt_br.json`
- [System manifest](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/system.json): `system.json`
- [Template metadata](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/template.json): `template.json`
- [Tutorial compendium](https://github.com/rafaellegend/foundry-vtt-ordem-paranormal-rpg/blob/master/packs/tutorial.db): `packs/tutorial.db`

### Other components

- **Foundry VTT**

## Connections

- Foundry VTT → System initialization: initializes (evidence: `README.md`)
- System initialization → System configuration: sets configuration (evidence: `ordemsys.js`)
- System initialization → Item sheet: registers sheet (evidence: `ordemsys.js`)
- Item sheet → System configuration: reads configuration (evidence: `module/sheets/OrdemSysItemSheet.js`)
- Item sheet → Weapon sheet template: selects by type
