
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
@pitwall/acc-node-wrapper
Advanced tools
Assetto Corsa Compitizione SDK and Shared Memory implementation for Node.js.
This package allows you to broadcast ACC data across your local network as well as interact with it on the host computer.
This mode allows you to set up a 'server' on the same machine that is running ACC and then pass the data onto different computers in your local network. If you don't want to process any data on the machine that is running ACC then pass in the forwardOnly option and processing will be skipped.
In this example the host machine would be passing on ALL of the game data to 192.168.178.43:9001 and that computer would be console.logging the data from the PHYSICS shared memory.
// host machine (server)
// should be a windows computer running ACC
import ACCNodeWrapper from "@pitwall/acc-node-wrapper";
const wrapper = new ACCNodeWrapper();
wrapper.initAsServer({
name: "ACC",
address: "localhost",
password: "asd",
cmdPassword: "",
// these are the different addresses on your network to pass the data onto
forwardAddresses: [{ address: "192.168.178.43", port: 9001 }],
});
wrapper.on("PHYSICS_EVENT", (data) => console.log(data));
wrapper.on("REALTIME_CAR_UPDATE", (data) => console.log(data));
// client machine
// in this example the local address of this computer would be 192.168.178.43
import ACCNodeWrapper from "@pitwall/acc-node-wrapper";
const wrapper = new ACCNodeWrapper();
wrapper.initAsClient(9001);
wrapper.on("PHYSICS_EVENT", (data) => console.log(data));
If you want to access both shared memory and broadcast API then this is the recommended way to do this. If you don't want to stream the data to the network just don't pass any network address in.
// host machine (server)
// should be a windows computer running ACC
import ACCNodeWrapper from "@pitwall/acc-node-wrapper";
const wrapper = new ACCNodeWrapper();
wrapper.initAsServer({
name: "ACC",
address: "localhost",
password: "asd",
cmdPassword: "",
});
wrapper.on("PHYSICS_EVENT", (data) => console.log(data));
wrapper.on("REALTIME_CAR_UPDATE", (data) => console.log(data));
This code will work on any machine in your network but does not return any data from shared memory. If you want to run it on a computer not running ACC just change the address to the IP of the computer running ACC
import ACCNodeWrapper from "@pitwall/acc-node-wrapper";
const wrapper = new ACCNodeWrapper();
wrapper.initBroadcastSDK({
name: "ACC",
address: "localhost",
password: "asd",
cmdPassword: "",
port: 9000,
});
wrapper.on("REALTIME_CAR_UPDATE", (data) => console.log(data));
// host machine (server)
// should be a windows computer running ACC
import ACCNodeWrapper from "@pitwall/acc-node-wrapper";
const wrapper = new ACCNodeWrapper();
wrapper.initSharedMemory({
graphicsUpdateInt: 250,
physicsUpdateInt: 250,
staticUpdateInt: 250,
});
wrapper.on("STATIC_EVENT", (data) => console.log(data));
Special Thanks
FynniX This package is a fork from the original acc-node-wrapper It is 'rewritten' in typescript to allow for intellisense of returned data. It also is designed to not fail when installed on an OS other than windows, although it does not provide full functionality when not on windows with ACC installed on it.
It can also broadcast the results of the shared memory across the local network when running in client/server mode. The use case for this was when the computer running ACC was not also running a dashboard like in Pit Pi
Released under the MIT License.
This package is stable and can be used but I will be continuing to build out it's API. You can expect the main APIs not to change in future.
FAQs
ACC SDK and ACC Shared Memory implementation for Node.js.
The npm package @pitwall/acc-node-wrapper receives a total of 11 weekly downloads. As such, @pitwall/acc-node-wrapper popularity was classified as not popular.
We found that @pitwall/acc-node-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.