I don't think there is a "proper" way per se. This is how I'm using it:
- install lovefield in app via npm
- create a service (I called it lovefield)
-import lf from "lovefield"
Once you have the "lf" object available in your service, you can use the object's methods to use the client side db.