Introduction
Build fast, custom storefronts on the StoreKit Storefront API and the type-safe @usestorekit/sdk.
StoreKit gives you two things to build a storefront:
- The Storefront API — a universal, framework-agnostic HTTP API for everything a shop needs: products, categories, search, carts, checkout, payments, and customer accounts.
- The SDK (
@usestorekit/sdk) — a type-safe client that wraps the API with autocomplete, sensible defaults, and framework adapters so you write less plumbing.
New here?
Jump straight to the Next.js quickstart and have a storefront talking to the API in about five minutes.
Which one should I use?
Use the SDK if you're building with JavaScript or TypeScript — it's the fastest, safest path and handles auth, sessions, carts, and payments for you.
Use the API directly if you're on another language/runtime, or you want full control. Every SDK method maps 1:1 to an API endpoint, so you can always drop down a level. The interactive API Reference lets you try every endpoint from your browser.
Framework support
The API is universal. The SDK ships adapters per framework:
Next.js — Available
Full server + browser integration: React Server Components, Server Actions, route handlers, and client hooks.
React — Coming soon
A first-class adapter for Vite/CRA React apps is on the way.
Astro — Coming soon
Astro integration is planned.
Svelte — Coming soon
SvelteKit integration is planned.
Until your framework's adapter lands, you can use the framework-agnostic core client today — it works in any JavaScript runtime.