A powerful, 100% type-safe TypeScript SDK for the CommerceEngine Storefront API. Built with modern JavaScript patterns, automatic token management, and comprehensive error handling.
Every method is fully typed with complete IntelliSense support:
Copy
// TypeScript knows all available parametersconst { data } = await sdk.catalog.listProducts({ query: { page: 1, // β number limit: 20, // β number category_id: "01XYCBSBZZZZBXBDH", // β string // TypeScript will auto-complete all valid options }});// Response data is also fully typedconsole.log(data?.products[0].name); // β stringconsole.log(data?.products[0].variants); // β Variant[]console.log(data?.pagination.total_count); // β number
The SDK automatically handles API best practices like token refresh, automatic retries on authentication failure, and proper error handling. You can focus on building your application logic while the SDK manages the infrastructure concerns.