Skip to main content
Customizer SDK v0.2

Put the Treatink designer in your storefront.

The Treatink Customizer SDK gives your shop a native product personalization modal — photo upload, cutouts, positioning, and pet-name text — plus a typed API client for catalog, artwork, and orders. Publishable keys in the browser, one secret-key call on your server.

import { Treatink } from '@treatink/sdk';

const tk = Treatink.init({
apiKey: 'pk_test_…',
channel: 'petshop.example.com',
});

tk.designer.open({
sku: 'SSGTTBC',
onComplete: (result) => addToCart(result),
});

Native modal designer

A drop-in personalization modal: photo upload, cutout & frame selection, positioning, and pet-name text — rendered in the light DOM with no iframes.

Open the designer

Typed API client

Products, templates, artwork uploads, drafts, and order payloads behind a fully typed surface with a single TreatinkError model.

Browse the types

Fixtures mode

The default: a bundled demo catalog with no backend or keys, so you can build and demo the full flow before touching the live API, then flip mode to live.

See the wire contract

Themeable

Match your storefront with theme tokens mapped to --tk-* CSS variables, derived palettes, and overridable copy strings.

Theme the modal