Skip to content

A collection of JSON files including all items, paints, certifications, slots, special editions and series bundled into a tree-shakable, side-effect free, no dependencies package.

License

Notifications You must be signed in to change notification settings

rocketleagueapi/items

Repository files navigation

Rocket League Items Data

GitHub tag (latest by date) License: LGPL--3.0--or--later

A collection of JSON files including all items, paints, certifications, slots, special editions, maps, titles, qualities, series and playlists.

Features

  • Tree-shakable
  • Side-effects free
  • No dependencies

For frontend applications, it is worth checking out Bundle Phobia and viewing the Export Analysis to see the GZipped cost of importing parts of the module.

For example, products makes up the vast majority (~62kB) of the total package size (~72kB). As such, importing all other parts would have a near-negligible effect on build sizes.

Install

Install this package using your package manager of choice.

 npm i @rocketleagueapi/items

or

 yarn add @rocketleagueapi/items

Example Usage

const { products } = require('@rocketleagueapi/items');

// Where 32 is the product ID
const alphaBoost = products[32];
console.log(alphaBoost.paintable) // false

Updating the Dump

Using ItsBrank's CodeRed, we can dump the necessary information to update this module. The information in this module is derived from the game and is extacted using CodeRed. The commands needed to dump the src/raw JSON files can be found in scripts/dump_databases.crsq.

Run these commands and copy the resultant output from your CodeRed Dump folder to src/raw. Note: You will need to convert the ProductDump.json encoding from ANSI to UTF8 before the next step. I usually to do this using Notepad++.

Afterwards, run the parse script:

npm run parse

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 Rocket League API.
This project is LGPL--3.0--or--later licensed.

About

A collection of JSON files including all items, paints, certifications, slots, special editions and series bundled into a tree-shakable, side-effect free, no dependencies package.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •