import { createStorefrontClient } from '@avvyr/storefront-sdk'
const client = createStorefrontClient({
publicKey: 'sfp_xxx',
privateKey: 'sfs_xxx', // optional, server-side only
baseUrl: 'https://api.avvyr.com',
marketId: '676140c4136218caaf97d79e',
})
const results = await client.products.search({ q: 'stol', limit: 20 })
const cart = await client.cart.create()
await client.cart.addItem(cart.id, { sku: 'CHAIR-001', quantity: 2 })
Create a new Avvyr Storefront API client.