Skip to main content
This SDK is for custom browser/headless storefronts. Hosted Shoppex themes use ThemeDocuments and the platform commerce runtime. Start at Theme Development for hosted theme work.
Fastest way to get started — one script tag, no build step. Use npm instead if you have a bundler and want TypeScript types.
For ESM imports without npm, load the module build directly:
Use @shoppexio/storefront for browser/headless storefront code. Use @shoppexio/sdk only from trusted backend code.

npm / yarn / pnpm

Install the SDK as a dependency:
Then import and use:

Initialization

After loading the SDK, initialize it with your store slug:
string
required
Your store’s unique identifier. Find this in your Shoppex dashboard under Settings.
string
default:"en"
Default language for the SDK. Affects price formatting and checkout language.
string
Override the store’s default currency. Must be a valid ISO 4217 currency code.

Verify Installation

Check if the SDK is loaded and initialized:

TypeScript Support

The SDK includes TypeScript definitions. Import types directly:

Browser Support

The SDK supports all modern browsers:
Internet Explorer is not supported. The SDK uses modern JavaScript features like Promises, async/await, and ES6+ syntax.

Next Steps

Quick Start

Fetch products and build a cart in under 5 minutes.

Store API

Load store metadata, products, and groups.