The code has been stripped to main components, you would need the following to get it working
- http server for displaying stats or comment that out
- oauth or whatever other custom logic for login in ws.js
- preferably get rid of protobufjs and use plain json instead for better customization