To keep a small footprint in your application, the Trust Stack SDK is split into modules. Each module is a separate package and can be imported individually.This means you can install only what is important to your application.
Copy
npm install @truststack/canvas# or yarn add @truststack/canvas# or pnpm add @truststack/canvas
If you call configure on any module, it will set those attributes for all modules.
Copy
import { AdminClient } from '@truststack/admin';AdminClient.configure({ accessKey: 'my-access-key' });...import { CanvasClient } from '@truststack/canvas';// This will use the access key set aboveconst client = new CanvasClient();client.createCanvasTemplate({ ... });