Install the package from npm and import in your project.
npm install --save @gigantier/js-sdk
To get started, instantiate a new Gigantier client with your credentials.
Note: This requires a Gigantier account.
// ESM;const client =;// CJSconst gigantier = ;const apiClient = gigantier;
Alternatively you can include the
UMD bundle via UNPKG like so:
<script src=""></script><script>const apiClient = gigantier;</script>
Check out the API reference to learn more about authenticating and the available endpoints.
If you have a different host than default, you'll need to specify your API URL when instantiating:
const apiClient =
If you want to roll your own bundle, or make changes to any of the modules in
src, then you'll need to install the package dependencies and run rollup while watching for changes.
npm install npm start
In the case you want to build the dist file, execute:
npm run rollup
You can learn more about the Rollup API and configuration here.
To release a new version, first update version number at
package.json, then execute:
npm installnpm run lintnpm testnpm run rollupnpm publish
You need to run
npm login before
npm publish if you never did it before.