{"_id":"@alca/rocket-league-stats-api","_rev":"2-0b47639c37f85d5f61c5933548070fa0","name":"@alca/rocket-league-stats-api","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@alca/rocket-league-stats-api","version":"0.1.0","keywords":["rocket-league","stats-api","typescript","websocket"],"author":{"name":"Alca","email":"jacob@alca.tv"},"license":"MIT","_id":"@alca/rocket-league-stats-api@0.1.0","maintainers":[{"name":"alca","email":"jfost3@gmail.com"}],"homepage":"https://github.com/alcadesign/rocket-league-stats-api#readme","bugs":{"url":"https://github.com/alcadesign/rocket-league-stats-api/issues"},"dist":{"shasum":"3b8a9273ddfbc8ca81072c925424a181c58112c9","tarball":"https://registry.npmjs.org/@alca/rocket-league-stats-api/-/rocket-league-stats-api-0.1.0.tgz","fileCount":6,"integrity":"sha512-NuqmiqLjZLRMfmUiq34lXjt21vScN/cdrjgC6g+zOLGwNYFJ95ethSAA4MxxShlaXzI0IWvGjjlaDIGxDFiuTg==","signatures":[{"sig":"MEYCIQDeTs6S/OPieW70qVPJ/wVcLM9mFXGiAj+FOanOwffzgQIhAPOK511SEU4Qve1GUZTgGWFnnqt37F2smNtvpepp53HA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32145},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"ba58e099b803f62f5e956cbf0e14c5f9b4840bc0","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"node scripts/build.ts && dts-bundle-generator -o dist/index.d.ts src/index.ts --no-banner --silent"},"_npmUser":{"name":"alca","email":"jfost3@gmail.com"},"repository":{"url":"git+https://github.com/alcadesign/rocket-league-stats-api.git","type":"git"},"_npmVersion":"12.0.2","description":"Connect to the Rocket League's Stats API over WebSocket","directories":{},"_nodeVersion":"26.4.0","allowScripts":{"esbuild@0.28.2":true},"_hasShrinkwrap":false,"devDependencies":{"esbuild":"^0.28.2","typescript":"^6.0.3","dts-bundle-generator":"^9.5.1"},"_npmOperationalInternal":{"tmp":"tmp/rocket-league-stats-api_0.1.0_1788744055414_0.034461310061780326","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@alca/rocket-league-stats-api","version":"0.1.1","description":"Connect to the Rocket League's Stats API over WebSocket","keywords":["rocket-league","stats-api","typescript","websocket"],"license":"MIT","author":{"name":"Alca","email":"jacob@alca.tv"},"homepage":"https://github.com/alcadesign/rocket-league-stats-api#readme","repository":{"type":"git","url":"git+https://github.com/alcadesign/rocket-league-stats-api.git"},"type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"node scripts/build.ts && dts-bundle-generator -o dist/index.d.ts src/index.ts --no-banner --silent"},"devDependencies":{"dts-bundle-generator":"^9.5.1","esbuild":"^0.28.2","typescript":"^6.0.3"},"allowScripts":{"esbuild@0.28.2":true},"gitHead":"fc532f3056e7682509de97e46a00146b331c09ab","_id":"@alca/rocket-league-stats-api@0.1.1","bugs":{"url":"https://github.com/alcadesign/rocket-league-stats-api/issues"},"_nodeVersion":"26.4.0","_npmVersion":"12.0.2","dist":{"integrity":"sha512-clnBqENCdPLcoOAE86h2FFDZtHZxwzdpTH6nbhfo3hEPw+ha8P7UbZ3Zo6FpdEuyubCogvXTktZs9TRuEacT0g==","shasum":"2ed828e408c458d3aa27184cd38fbfafaa6d51c3","tarball":"https://registry.npmjs.org/@alca/rocket-league-stats-api/-/rocket-league-stats-api-0.1.1.tgz","fileCount":6,"unpackedSize":32173,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCWthofsCCuUogsz8UZUilI/ZWHBbQrdshUAGxu0BZfuQIhAMr3BwPHaCwz5KYFDPIq+2Rw4dvHMHNo3RNU1b5q7riJ"}]},"_npmUser":{"name":"alca","email":"jfost3@gmail.com"},"directories":{},"maintainers":[{"name":"alca","email":"jfost3@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rocket-league-stats-api_0.1.1_1788746295405_0.8154926469943728"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-07T01:20:55.192Z","modified":"2026-09-07T01:58:15.676Z","0.1.0":"2026-09-07T01:20:55.569Z","0.1.1":"2026-09-07T01:58:15.540Z"},"bugs":{"url":"https://github.com/alcadesign/rocket-league-stats-api/issues"},"author":{"name":"Alca","email":"jacob@alca.tv"},"license":"MIT","homepage":"https://github.com/alcadesign/rocket-league-stats-api#readme","keywords":["rocket-league","stats-api","typescript","websocket"],"repository":{"type":"git","url":"git+https://github.com/alcadesign/rocket-league-stats-api.git"},"description":"Connect to the Rocket League's Stats API over WebSocket","maintainers":[{"name":"alca","email":"jfost3@gmail.com"}],"readme":"# @alca/rocket-league-stats-api\r\n\r\nConnect to the Rocket League's Stats API over WebSocket.\r\n\r\n# Install\r\n\r\n```bash\r\nnpm i @alca/rocket-league-stats-api\r\n```\r\n\r\n# Usage\r\n\r\n```ts\r\nimport RocketLeagueStatsApiClient from '@alca/rocket-league-stats-api';\r\n\r\nconst client = new RocketLeagueStatsApiClient();\r\n\r\nclient.connect();\r\n\r\nclient.onSocketConnected = () => console.log('Connected!');\r\n\r\nclient.onGoalScored = data => {\r\n\tconsole.log(`${data.Scorer.Name} scored! ${data.Assister ? `(${data.Assister.Name} assisted)` : ''}`);\r\n};\r\n```\r\n\r\n## Configuration\r\n\r\nSee the [configuration section](https://www.rocketleague.com/developer/stats-api#configuration) of the official documentation. The \"WebPort\" port value (`49124` by default) is what is used for the WebSocket connection. The port can be changed but will need to be passed to the client constructor or changed in the options property before connecting.\r\n\r\n# Notes\r\n\r\n## Duplicate StatfeedEvent for local bots and splitscreen\r\n\r\nIf you play an offline Exhibition or play with a splitscreen player, you will receive multiple events to `onStatfeedEvent`. Some care should be taken to throttle duplicate data.","readmeFilename":"README.md"}