How maximumadhd/roblox-api-dump-tool works
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: ReflectionDatabase.cs Snapshot DB · IDiffModifier.cs Modifiers · ApiDumpTool.cs Tool UI · Security.cs Metadata Types
Components 20
Entry & UI
Startup, command handling, and the WinForms shell.
Core Pipeline
Snapshot, dump, history, diff, and HTML generation.
- Snapshot DB · Container for a single Roblox API dump version.
Core/ReflectionDatabase.cs - Text Dump · Renders the canonical reflection model into human-readable dump text.
Core/ReflectionDumper.cs - History · Tracks and compares API dump versions over time.
Core/ReflectionHistory.cs - HTML Output · Generates browsable HTML pages for dumps and diffs.
Core/ReflectionHtml.cs - Diff Orchestrator · Coordinates comparison between reflection snapshots.
Core/ReflectionDiffer.cs
Reflection Model
Canonical descriptors and supporting type metadata.
- Class Model · Core class/type descriptors for the reflection schema.
Descriptors/Class.cs - Members · Shared member abstraction and concrete member kinds.
Descriptors/Member.cs - Enums · Enum and enum item descriptors.
Descriptors/Enum.cs - Metadata 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 · Raw diff records and change lists.
Differ/Diff.cs - Change List · Structured collection of detected changes before cleanup.
Differ/DiffChangeList.cs - Modifiers · Post-processing interface for diff cleanup and merging.
Differ/IDiffModifier.cs - Merge Changes · Combines noisy low-level diff events into cleaner changes.
Differ/Modifiers/MergeDiffChanges.cs - Merge Renames · Collapses class rename noise into a single semantic change.
Differ/Modifiers/MergeRenamedClasses.cs - Merge Security · Normalizes security-related change output.
Differ/Modifiers/MergeSecurityChanges.cs
Assets & Build
Bundled resources, styling, and build support files.
- UI Assets · Bundled app resources and generated UI assets.
Properties/Resources.resx - Stylesheet · CSS used by generated HTML pages.
Resources/api-dump.css
Connections 21
- 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.