Local development
By default the SDK and embed talk to the production API at https://live.bb.eight-cdn.com/api/headless/v1. Override the base URL to develop against a local or staging backend.
Override the base URL
Section titled “Override the base URL”<KitenzoProvider apiKey="kit_test_…" baseUrl="http://localhost:8123/api/headless/v1"> <App /></KitenzoProvider>const client = new KitenzoClient({ apiKey: 'kit_test_…', baseUrl: 'http://localhost:8123/api/headless/v1',});createBundleEmbed(root, { bundleId: 42, apiKey: 'kit_test_…', shopDomain: 'my-store.myshopify.com', baseUrl: 'http://localhost:8123/api/headless/v1', onAddToCart: (payload) => { /* … */ },});Get a Storefront API token (for cart testing)
Section titled “Get a Storefront API token (for cart testing)”To exercise the cart end-to-end you need a Shopify Storefront API token. Kitenzo already holds the required unauthenticated_* scopes; ask support or your team for a token for your test store.
The headless playground
Section titled “The headless playground”The Kitenzo repo ships a Vite + React playground (headless-playground) that exercises the API and @kitenzo/react exactly as an external consumer would — bundle list, builder, embed mode, vanilla mode and a real Shopify cart via @shopify/hydrogen-react.
VITE_SHOP_DOMAIN=your-store.myshopify.comVITE_STOREFRONT_TOKEN=shpat_xxxxxVITE_KITENZO_API_KEY=kit_test_xxxxx# Optional: override the API URL (defaults to production)# VITE_KITENZO_BASE_URL=http://localhost:8123/api/headless/v1It covers: list → detail → select → configure → cart, in React-component, web-component and vanilla-JS modes. It does not test SSR, the cart transform (which runs at checkout on Shopify), or checkout beyond the redirect.