I've recently written an npm package that provides some basic support for the pHAT BEAT hat (namely the LEDs and buttons) based upon the python library by Pimoroni. I bought a Pirate Radio a little while back and thought it might be nice to have the option of using the provided functionality within some node projects! If anyone would find it useful, I've published it to npm under the name 'phatbeat'! I've tested it on my own device and it seems to work fine but if there are any issues, feel free to log an issue on the related github page!
All the best,