Welcome to the forum @semuelle!
For now, yes. We haven't optimized for use with Embark yet, though we would love to! The fact that the web3
instance is only available in a callback makes it kind of hard.
One obvious thing that needs to be improved is the fact that configure
needs to be called before any of the helpers are imported. This is the reason why you had to do the ugly global mutable helpers
variable.
The reason we made it so is that when the helpers are imported, if configure
wasn't called beforehand the library will default to using a global web3
instance and once the web3 instance is set it cannot be changed. It's difficult to fix that correctly but there are a few options.
Would love to hear your thoughts on what else could be improved for use with Embark.
Also, we'd love to know a bit about about you and what you're working on in Introduce yourself here!