You could take a look at how phoenix handles their js dependency.
- It’s on npm, published out if the elixir repo
- It has it’s javascript docs on hexdocs.pm
As for the API:
I’d expect a callback driven interface. Promises are better for async results for a single action/task.






















