Framework-neutral
Use the same TypeScript APIs from Vue, React, Svelte, server-rendered pages, or plain browser JavaScript.
Load products, persist carts, quote delivery, apply discounts, and complete payments with Sales-authoritative state.
import { createZynoSales } from '@zyno-io/zynosales-ecommerce-sdk';
const storefront = createZynoSales({
publishableKey: 'zs_pk_...'
});
const products = await storefront.catalog.getProducts();
await storefront.cart.restore();
const firstProduct = products[0];
if (firstProduct) {
await storefront.cart.add({ productId: firstProduct.id, qty: 1 });
}Need exact signatures? Use the API reference.