Import
Quickshops from @quickshops/sdk only in server-only modules.
Use @quickshops/starter-templates for storefront types and theme helpers in client code.- Next.js (App Router)
- Astro
- Remix
- TanStack Start
Next.js App Router gives you three natural places to call the SDK: Server Components for read operations, Server Actions for mutations, and Route Handlers for custom API endpoints.1. Create the shared client2. Fetch data in a Server Component3. Mutate cart state in a Server Action
lib/quickshops.ts
app/page.tsx
product-list.tsx
app/actions.ts