This is a starting template to control Fadecandy on a Raspberry Pi 4B.
There are some predependencies to make the node-canvas work on the Raspberry Pi 4B.
Per the node-canvas wiki, they are as below.
sudo apt-get update
sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
# then we can install the canvas module
npm install canvas
Because this is intended to work as a headless alternative to p5, it needs to be run with CommonJS in mind and also the setupWindow function must be run before importing p5 or else errors will occur about no window context.
This uses pm2 slack integration change the SLACKURL in the pm2:install config inside of package.json
MIT
Big Shoutout to dipamsen for the gist to make node p5 work You can see his explanation here