By default, Roblox doesn’t provide API Dump / Reflection Metadata information to us within Roblox. This can be problematic for plugins that need it, as they either have to be manually updated every time one of these changes, or download the information through HttpService, which requires developers to toggle it on in every place they want to use the plugin in.
I decided to write a bot to automatically upload ReflectionMetadata, the API Dump, and class icons to Roblox whenever it updates, as there are a number of cool existing and potential plugins that need this information E.g.:
- @Quenty’s class converter (API dump)
- @SteadyOn’s Instance scanner (class icons)
- Custom Insert Object widget (API dump and class icons)
- Custom Explorer widget (class icons)
- Custom Properties (API dump and Reflection Metadata)
You can now access this information by requiring a public module from the site (InsertService was not an option as it disallows inserting scripts). As per woot3’s suggestion, the API dump and ReflectionMetadata are provided in the exact same format as the official API dump and ReflectionMetadata xml file. You can write your own wrapper to change the format of the data so it’s easier to use, and I may provide a separate module in the future that does this for you out of the box.
local info = require(2247441113) local classIcon20AssetId = info.ClassIcons print(classIcon20AssetId) => 2254548328 local instanceApiInfo = info.ApiDump.Classes print(instanceApiInfo.Superclass) => <<<ROOT>>> local reflectionInfo = info.ReflectionMetadata for _,classInfo in pairs(reflectionInfo.Classes) do print(classInfo.Name) end => BindableFunction, etc