Too Long; Didn't Read
API client is small, scalable, and works both in the browser and in Node.js. We'll go through five steps and come out with a clear plan on how to implement your own client. The best choice for a web project is Webpack, but our library is fairly small and simple, so I've chosen Rollup as base bundler together with Microbundle together with Typescript Mixins for easy setup. To make testing easier we can utilize the Nock library that conveniently mocks HTTP server for us.