This is the actual working system.
- html: frontend html and javascript files (symbolically link this to a webserver)
- binding.gyp / package.json: stuff for building the N-API function
- send_zpad_command_napi: C function to bitbang commands out of GPIOs, uses N-API to interface to Node.js
- server.js: Node.js backed server accepting websocket command, sending to C function
HTML Frontend /JavaScript -> Via Websocket -> Node.js Sever -> Via N-API -> C Bitbang GPIO -> Custom Level Shifter PCB