Skip to main content
The Quickshops TypeScript SDK works in any framework that gives you a server-side execution context — loaders, server components, server actions, or API routes. The pattern is the same everywhere: instantiate the client once with your API key in a server-only module, then call methods in your server boundary and pass only the response data to your UI.
Building with Lovable or v0.dev? Copy the one-prompt from the TypeScript SDK page. For buttons and grids, see React components.
Import useStore / Quickshops from @quickshops/sdk only in server-only modules. Keep API keys server-side. Use @quickshops/sdk/react for client UI.
Prefer useStore() on the server and @quickshops/sdk/react for UI.1. Create the store
lib/quickshops.ts
2. Buy-now Server Action
app/actions.ts
3. Catalog page with Storefront composition
app/page.tsx