Skip to content

The npm packages

Everything snizu publishes on npm, under @snizu and two plain names. They go out together at one version, typed, as ES modules for Node 22 and every modern runtime.

npmTypeScript1 min read

The packages

  • The Storefront API client: catalog, cart, customer and store, and the hosted checkout. No dependencies.

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

    npm i @snizu/react
  • A whole shop on Next.js, Arabic and English from the address.

    npm create snizu-storefront
  • Embedded app pages in the admin and checkout blocks in the hosted checkout.

    npm i @snizu/app-bridge
  • The snizu command: apps, themes, functions and development stores.

    npm i -g @snizu/cli
  • snizu2.0.0

    npx snizu: runs @snizu/cli at the same version, without installing it.

    npx snizu --help

One version for all

Every package goes out at the same version, and each one that needs another asks for exactly that release: @snizu/react for ^2.0.0 of the client, the starter for ^2.0.0 of both, and snizu for 2.0.0 of the CLI. Upgrade them together and they always work together.

Each package sends the API version it was built for, 2026-10, as shop-api-version, and its types come from that version of the API. Upgrading the package is what moves your code to a newer API version.

What they run on

  • Node.js 22 or newer, and browsers, Deno, Bun and edge runtimes for the client and App Bridge, which only use fetch and postMessage.
  • ES modules, with types inside. require() works from CommonJS too, on the Node versions that load ES modules that way (22.12 and newer):
server.cjs
const { createStorefront } = require("@snizu/storefront");
  • TypeScript without @types: every request and answer is typed from the API's own OpenAPI document, under moduleResolution bundler, node16 and nodenext.

Where they come from

They're MIT licensed and published by the snizu organization on npm. Each package's page on npmjs.com is its README, with every command or method; these docs go further with guides.

Was this page helpful?

Updated 25 Nov 2026