This is something that should be done on your server, not in a browser.
They do have libraries for various server languages, so you are not limited to Javascript.
I don't know if you actually need to use a library. I looked briefly, and it wasn't obvious where to find the documentation for, e.g. a rEST interface that is behind all of them.