SDK v0.2 · Next.js adapter is live

Headless commerce, without the boilerplate.

One universal Storefront API and a type-safe SDK for building fast, custom storefronts. Products, carts, checkout, payments, and customer accounts — wired up in minutes.

$npm install @usestorekit/sdk

The API is framework-agnostic. SDK adapters:

Next.jsAvailable
ReactComing soon
AstroComing soon
SvelteComing soon

Everything a storefront needs

Skip the plumbing and ship the experience.

End-to-end type safety

Every request and response is typed from the same Zod schemas the API runs on. Autocomplete the whole catalog, cart, and checkout.

Server + browser, one SDK

A server adapter for Next.js (RSC, Server Actions, route handlers) and a browser client with React hooks — sharing one consistent surface.

Secure by default

Your store key stays on the server. The browser talks to a same-origin proxy and rides an httpOnly session cookie — tokens never touch JS.

Payments, built in

Create a checkout, redirect to the provider, and reconcile on return with a single hook. The cart clears itself after a successful payment.

Carts that just work

Guest carts, customer carts, and the merge between them are handled for you — including cookie-backed cart state on the server.

Predictable results

Methods return a { data, error } result instead of throwing, with typed error codes and guards like isRateLimited() and isUnauthorized().

Build your storefront today

Follow the five-minute Next.js quickstart, or browse the interactive API reference and try a request right from your browser.