Skip to content

Build your own storefront

Any stack, any runtime. Sell from your own pages with the Storefront API, and send shoppers to the store's hosted checkout when it's time to pay.

1 min read
// app/[locale]/page.tsx
import {
  createServerStorefront,
} from "@snizu/storefront/server";
import { cookies } from "next/headers";

export default async function Home({ params }) {
  const { locale } = await params;
  const shop = createServerStorefront({
    publishableKey: process.env.SNIZU_PK,
    locale, // "ar" or "en"
    cookies: await cookies(),
  });
  const { data } = await shop.catalog.products({ limit: 3 });
  return <ProductGrid products={data} />;
}

Packages

  • The client: catalog, cart, customer and store. No dependencies.

    npm i @snizu/storefront
  • A provider and hooks, with optimistic carts.

    npm i @snizu/react
  • The Next.js starter, Arabic and English from the address.

    npm create snizu-storefront

Where to start

All you need is the store's publishable key, from the admin under Settings → API keys. It's made for browsers: it reads what the store publishes and opens carts, nothing more.

Was this page helpful?

Updated 25 Nov 2026