Shared types and storage helpers for the Thankly SDK. Every other Thankly package depends on this one; you rarely install it directly.
npm install @thankly/sdk-lib
import { createStorageAdapter } from '@thankly/sdk-lib';
// 'local' | 'chrome' | 'browser' — pick the one your runtime actually has.
const storage = createStorageAdapter('local');
It also exports the wire types shared across the SDK (Context, History,
Cart, CatalogProduct, CapabilityWidget, …), so a consumer can type its own
helpers against the same shapes the API returns.
Full API reference: https://docs.thankly.ai/js
Apache-2.0