One of the things Electron gives you with Node on the backend is the ability to break out into C FFI if you find you need a specific API on your target platform.
I've done this for things like serial device control and the like. You still get the productivity of web apis on the frontend and flexibility on the backend with the caveat that you're going to be building a platform specific version of your native code for each release.