Behio Storefront SDK
Optional developer tools for building custom storefronts on the Behio commerce platform
Build custom e-commerce storefronts with the Behio Storefront SDK. Full TypeScript support, React hooks, and a powerful client API.
Who this documentation is for
This documentation is for developers choosing to build a custom storefront or integration with the optional @behio/storefront-sdk package. The SDK is not required to start or run a Behio store.
Behio is a business platform with ready-made store templates, a web admin for products and orders, invoicing, inventory and Tom, an AI assistant. Merchants can use familiar forms and controls, ask AI for help or delegate supported tasks. Everyday store management requires no programming; the Behio team can help with setup and custom changes.
Looking for a store rather than SDK documentation? See Behio for merchants, store templates and pricing. Český přehled: Proč Behio.
Quick Start
npm install @behio/storefront-sdkimport { BehioStorefront } from '@behio/storefront-sdk';
const client = new BehioStorefront({
apiKey: 'pk_live_your_key',
});
// Fetch products
const products = await client.catalog.getProducts({ limit: 12 });Why use the SDK?
- Headless: bring your own frontend (Next.js, Remix, Astro, mobile)
- TypeScript-first: full type safety, IntelliSense everywhere
- React hooks:
useProducts,useCart,useCheckoutand more - Auto token refresh: seamless JWT rotation with event hooks
- Rate limit aware: built-in rate limit tracking and warnings
- Interceptors: request/response middleware for logging, analytics