To my knowledge, none of us earn a living working on Leo and related projects, which means leveraging pre-existing code saves one the effort of reimplementing that.
Electron may prove to be immensely useful for Leo and related projects such as a desktop application made from LeoVue.
Since I have no experience writing code for node.js or for Electron, I looked up Electron's guide on security, which is worth consideration.