I also wanted to point out that Polar is Open Source.
https://github.com/burtonator/polar-bookshelf
If you'd like to look at the code.
We have a unique build environment so DM me on Discord if you want to build it... You just have to use lerna and our npm repo but should work well.