Advice for developing a library with Elixir and JavaScript parts. API/Documentation/Publishing/Redux

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.

1 Like