Storefront SDK
TypeScript SDK, Nuxt layer and Next.js package for building storefronts on the Avvyr Storefront API
The Avvyr Storefront SDK gives you a fully-typed TypeScript client for every Storefront API resource — products, cart, auth, checkout, orders, reviews, and more.
Full B2B support is built in. Customer registration and login (magic link + password), order history, account management, and B2B-specific pricing all work out of the box — no extra configuration required.
Packages
| Package | What it is |
|---|---|
@avvyr/storefront-sdk | Framework-agnostic TypeScript client. Works in any JS runtime. |
@avvyr/storefront-nuxt | Nuxt layer. Adds composables, a server proxy and auth middleware on top of the SDK. Install it, extend it, done. |
@avvyr/storefront-next | Next.js package for the App Router. Adds React hooks, server helpers, a session proxy and the same drop-in components as the Nuxt layer. |
Both framework packages come with a ready-made storefront starter. See Installation.
API reference
Full auto-generated TypeDoc reference → /sdk-reference/
Source
All three packages live in packages/ in the AvvyrBackendApi monorepo alongside the API they call.