# maximumadhd/roblox-api-dump-tool architecture

> Architecture diagram of the GitHub repository maximumadhd/roblox-api-dump-tool, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-05-31). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/maximumadhd/roblox-api-dump-tool
- Repository: https://github.com/maximumadhd/roblox-api-dump-tool

## Overview

1. This repository is a .NET desktop utility for Roblox API dumps. It can ingest Roblox’s JSON API Dump, turn it into a normalized reflection model, render a human-readable dump, and generate diff logs and browsable HTML pages.

2. The entry layer is small: `Program.cs`, `ApiDumpTool.cs` / `ApiDumpTool.Designer.cs`, and `ArgProcessor.cs`. That suggests a WinForms-style app with command-line argument handling, used both as a UI tool and as a batchable generator.

3. The central domain model lives in `Descriptors/` and `Types/`. These classes represent the reflection schema: `Class`, `Member`, `Property`, `Function`, `Event`, `Enum`, `EnumItem`, `Callback`, plus supporting metadata like security, thread safety, tags, capabilities, serialization, Lua types, and parameters. This is the canonical in-memory representation used across the tool.

4. `Core/ReflectionDatabase.cs` appears to be the main snapshot container for one API dump version. It is the boundary between parsed input and all downstream operations, holding the structured reflection data that other subsystems consume.

5. `Core/ReflectionDumper.cs` converts that database into the readable text dump format shown in the README. This is the “export” path for producing the familiar API dump listing classes, members, defaults, and annotations.

6. `Core/ReflectionDiffer.cs` and `Differ/` implement the comparison pipeline between two snapshots. `Differ/Diff.cs`, `DiffChangeList.cs`, and `IDiffModifier.cs` represent raw change detection and then normalization/post-processing, while modifiers like `MergeDiffChanges`, `MergeRenamedClasses`, and `MergeSecurityChanges` clean up noisy low-level differences into user-friendly change logs.

7. `Core/ReflectionHtml.cs` is the presentation layer for the browser-friendly output. It likely transforms the same reflection database and diff results into static HTML pages, backed by `Resources/api-dump.css` for styling.

8. `Core/ReflectionHistory.cs` suggests version tracking across multiple dumps, so the app can compare current and previous API states and produce “what changed” reports over time. That makes history a distinct concern from single-snapshot parsing.

9. The repo is mostly file-based and offline: the primary input is Roblox dump data, and the outputs are text, HTML, and diff logs. There are no obvious backend services; the important external dependency is the Roblox API dump format itself.

10. The `.bat` files (`MakeClientDiffLog.bat`, `UpdatePages.bat`, `UpdatePages - NoCommit.bat`) indicate scripted generation workflows, likely for publishing diffs/pages from the current tool. The checked-in executable `RobloxAPIDumpTool.exe` and `README` download link show that the tool is intended to be distributed as a standalone artifact.

11. `App.config`, `packages.config`, `FodyWeavers.xml`, and the `.csproj` indicate a classic .NET Framework project with package-managed dependencies and build-time weaving. `Properties/Resources.*` contains bundled assets such as the app logo and generated UI resources.

Main entry points: [`Core/ReflectionDatabase.cs`](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Core/ReflectionDatabase.cs) (Snapshot DB), [`Differ/IDiffModifier.cs`](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/IDiffModifier.cs) (Modifiers), [`ApiDumpTool.cs`](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/ApiDumpTool.cs) (Tool UI), [`Types/Security.cs`](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Types/Security.cs) (Metadata Types)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry & UI"]
  node_program(("Program<br/>startup<br/>[Program.cs]"))
  node_ui["Tool UI<br/>winforms shell<br/>[ApiDumpTool.cs]"]
  node_args["Args<br/>cli parser<br/>[ArgProcessor.cs]"]
end

subgraph group_core["Core Pipeline"]
  node_db[("Snapshot DB<br/>snapshot model")]
  node_dump["Text Dump<br/>exporter"]
  node_hist["History<br/>version tracking"]
  node_html["HTML Output<br/>presentation<br/>[ReflectionHtml.cs]"]
  node_reflect["Diff Orchestrator<br/>diff pipeline"]
end

subgraph group_domain["Reflection Model"]
  node_classdesc["Class Model<br/>descriptor<br/>[Class.cs]"]
  node_memberdesc["Members<br/>descriptor<br/>[Member.cs]"]
  node_enumdesc["Enums<br/>descriptor<br/>[Enum.cs]"]
  node_types["Metadata Types<br/>schema types<br/>[Security.cs]"]
end

subgraph group_diff["Diff Engine"]
  node_diffcore["Change Model<br/>diff data<br/>[Diff.cs]"]
  node_changelist["Change List<br/>diff aggregation<br/>[DiffChangeList.cs]"]
  node_modifier["Modifiers<br/>diff normalization<br/>[IDiffModifier.cs]"]
  node_mergechanges["Merge Changes<br/>modifier"]
  node_mergerenames["Merge Renames<br/>modifier"]
  node_mergesecurity["Merge Security<br/>modifier"]
end

subgraph group_assets["Assets & Build"]
  node_resources["UI Assets<br/>resources<br/>[Resources.resx]"]
  node_css["Stylesheet<br/>static asset<br/>[api-dump.css]"]
end

node_program -->|"launches"| node_ui
node_ui -->|"parses"| node_args
node_args -->|"loads"| node_db
node_db -->|"contains"| node_classdesc
node_db -->|"contains"| node_memberdesc
node_db -->|"contains"| node_enumdesc
node_classdesc -->|"annotated by"| node_types
node_memberdesc -->|"annotated by"| node_types
node_enumdesc -->|"annotated by"| node_types
node_db -->|"exports"| node_dump
node_db -->|"renders"| node_html
node_db -->|"tracks"| node_hist
node_hist -->|"compares"| node_reflect
node_reflect -->|"produces"| node_diffcore
node_diffcore -->|"groups"| node_changelist
node_changelist -->|"normalized by"| node_modifier
node_modifier -->|"implements"| node_mergechanges
node_modifier -->|"implements"| node_mergerenames
node_modifier -->|"implements"| node_mergesecurity
node_html -->|"styled by"| node_css
node_ui -->|"uses"| node_resources

click node_program "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Program.cs"
click node_ui "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/ApiDumpTool.cs"
click node_args "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/ArgProcessor.cs"
click node_db "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Core/ReflectionDatabase.cs"
click node_dump "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Core/ReflectionDumper.cs"
click node_hist "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Core/ReflectionHistory.cs"
click node_html "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Core/ReflectionHtml.cs"
click node_reflect "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Core/ReflectionDiffer.cs"
click node_diffcore "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/Diff.cs"
click node_changelist "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/DiffChangeList.cs"
click node_modifier "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/IDiffModifier.cs"
click node_mergechanges "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/Modifiers/MergeDiffChanges.cs"
click node_mergerenames "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/Modifiers/MergeRenamedClasses.cs"
click node_mergesecurity "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/Modifiers/MergeSecurityChanges.cs"
click node_classdesc "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Descriptors/Class.cs"
click node_memberdesc "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Descriptors/Member.cs"
click node_enumdesc "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Descriptors/Enum.cs"
click node_types "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Types/Security.cs"
click node_resources "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Properties/Resources.resx"
click node_css "https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Resources/api-dump.css"

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_program,node_ui,node_args toneBlue
class node_db,node_dump,node_hist,node_html,node_reflect toneAmber
class node_classdesc,node_memberdesc,node_enumdesc,node_types toneMint
class node_diffcore,node_changelist,node_modifier,node_mergechanges,node_mergerenames,node_mergesecurity toneRose
class node_resources,node_css toneIndigo
```

## Components

### Entry & UI

Startup, command handling, and the WinForms shell.

- [Program](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Program.cs): startup · Application entry point. · `Program.cs`
- [Tool UI](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/ApiDumpTool.cs): winforms shell · Main desktop window and generated designer code. · `ApiDumpTool.cs`
- [Args](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/ArgProcessor.cs): cli parser · Command-line argument processing for batch and UI-driven workflows. · `ArgProcessor.cs`

### Core Pipeline

Snapshot, dump, history, diff, and HTML generation.

- [Snapshot DB](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Core/ReflectionDatabase.cs): snapshot model · Container for a single Roblox API dump version. · `Core/ReflectionDatabase.cs`
- [Text Dump](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Core/ReflectionDumper.cs): exporter · Renders the canonical reflection model into human-readable dump text. · `Core/ReflectionDumper.cs`
- [History](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Core/ReflectionHistory.cs): version tracking · Tracks and compares API dump versions over time. · `Core/ReflectionHistory.cs`
- [HTML Output](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Core/ReflectionHtml.cs): presentation · Generates browsable HTML pages for dumps and diffs. · `Core/ReflectionHtml.cs`
- [Diff Orchestrator](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Core/ReflectionDiffer.cs): diff pipeline · Coordinates comparison between reflection snapshots. · `Core/ReflectionDiffer.cs`

### Reflection Model

Canonical descriptors and supporting type metadata.

- [Class Model](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Descriptors/Class.cs): descriptor · Core class/type descriptors for the reflection schema. · `Descriptors/Class.cs`
- [Members](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Descriptors/Member.cs): descriptor · Shared member abstraction and concrete member kinds. · `Descriptors/Member.cs`
- [Enums](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Descriptors/Enum.cs): descriptor · Enum and enum item descriptors. · `Descriptors/Enum.cs`
- [Metadata Types](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Types/Security.cs): schema types · Supporting metadata such as security, tags, thread safety, parameters, and Lua types. · `Types/Security.cs`

### Diff Engine

Change detection and diff normalization.

- [Change Model](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/Diff.cs): diff data · Raw diff records and change lists. · `Differ/Diff.cs`
- [Change List](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/DiffChangeList.cs): diff aggregation · Structured collection of detected changes before cleanup. · `Differ/DiffChangeList.cs`
- [Modifiers](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/IDiffModifier.cs): diff normalization · Post-processing interface for diff cleanup and merging. · `Differ/IDiffModifier.cs`
- [Merge Changes](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/Modifiers/MergeDiffChanges.cs): modifier · Combines noisy low-level diff events into cleaner changes. · `Differ/Modifiers/MergeDiffChanges.cs`
- [Merge Renames](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/Modifiers/MergeRenamedClasses.cs): modifier · Collapses class rename noise into a single semantic change. · `Differ/Modifiers/MergeRenamedClasses.cs`
- [Merge Security](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Differ/Modifiers/MergeSecurityChanges.cs): modifier · Normalizes security-related change output. · `Differ/Modifiers/MergeSecurityChanges.cs`

### Assets & Build

Bundled resources, styling, and build support files.

- [UI Assets](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Properties/Resources.resx): resources · Bundled app resources and generated UI assets. · `Properties/Resources.resx`
- [Stylesheet](https://github.com/maximumadhd/roblox-api-dump-tool/blob/main/Resources/api-dump.css): static asset · CSS used by generated HTML pages. · `Resources/api-dump.css`

## Connections

- Program → Tool UI: launches · Startup enters the desktop tool shell.
- Tool UI → Args: parses · The UI/workflow accepts command-line options for batch generation.
- Args → Snapshot DB: loads · Arguments select and ingest an API dump into the snapshot model.
- Snapshot DB → Class Model: contains · The snapshot stores canonical reflection classes and related descriptors.
- Snapshot DB → Members: contains · Snapshot data includes members and member kinds.
- Snapshot DB → Enums: contains · Snapshot data includes enumerations.
- Class Model → Metadata Types: annotated by · Descriptors are enriched with metadata types and constraints.
- Members → Metadata Types: annotated by · Member definitions use shared metadata types.
- Enums → Metadata Types: annotated by · Enum entries and values use shared metadata types.
- Snapshot DB → Text Dump: exports · The reflection database is rendered into readable dump text.
- Snapshot DB → HTML Output: renders · The snapshot also feeds browsable HTML output.
- Snapshot DB → History: tracks · History maintains multiple snapshots for version comparison.
- History → Diff Orchestrator: compares · History provides versions for diff generation.
- Diff Orchestrator → Change Model: produces · The orchestrator emits raw change records.
- Change Model → Change List: groups · Individual diffs are collected into change lists.
- Change List → Modifiers: normalized by · Change lists are passed through diff modifiers.
- Modifiers → Merge Changes: implements · One modifier merges noisy raw changes.
- Modifiers → Merge Renames: implements · One modifier merges class rename sequences.
- Modifiers → Merge Security: implements · One modifier merges security-related changes.
- HTML Output → Stylesheet: styled by · Generated pages use the bundled stylesheet.
- Tool UI → UI Assets: uses · The desktop tool relies on bundled app resources.
