The package is on public npm under the MIT license, so you don’t need any .npmrc, registry or token setup.
If a project or home .npmrc maps the @quickbutik scope to another registry, that mapping hides the public package and the install fails with Cannot find module '@quickbutik/kit'. Remove the scope mapping.
Requirements
Node 18 or newer on the server, because the kit needs a global fetch.
React is an optional peer dependency (^18.2 || ^19), needed only for @quickbutik/kit/react. Some features (<ProductProvider slug>, the promise form, tag hoisting in <SEO />) need React 19.
Everything except React and the elements: client, types, storage and cookie helpers, SEO builder, variant matrix, ProductController, image and money helpers, currency helpers, the consent store and the analytics hub
Yes
@quickbutik/kit/sdk
Just the client, its types, the error classes and key/scope/config helpers
Yes
@quickbutik/kit/react
Hooks and headless components. Carries a "use client" directive
Client only
@quickbutik/kit/elements
configure(), defineElements() and the <qb-*> element classes
Browser only. Importing it in Node throws HTMLElement is not defined
@quickbutik/kit/global
The script-tag bundle (window.Quickbutik)
Browser only
// Everything except React: server and browserimport { createShopkitClient, buildSeo, createRequestCookieStorage } from "@quickbutik/kit"// Just the client and its types: a Node script, an Astro endpoint, a Workerimport { createShopkitClient } from "@quickbutik/kit/sdk"// Hooks and headless components (client only)import { ShopkitProvider, useCart, ProductProvider } from "@quickbutik/kit/react"// The same composition as custom elements, for a project that is not Reactimport { configure, defineElements } from "@quickbutik/kit/elements"
In a framework with server components (Next.js App Router), keep /react below a "use client" boundary and fetch catalog data on the server with the plain client from @quickbutik/kit.
dist/quickbutik-kit.global.js (also the package’s unpkg and jsdelivr entry, and @quickbutik/kit/global)
CDN
https://cdn.jsdelivr.net/npm/@quickbutik/kit@<version>/dist/quickbutik-kit.global.js or https://unpkg.com/@quickbutik/kit@<version>
Size (1.10.0)
About 191 KB minified, about 55 KB gzipped. One request, no dependencies
Global
window.Quickbutik
Target
ES2020, so it runs in every browser that supports custom elements
Pin an exact version in a script tag (@1.10.0, not @1 or no version at all) and bump it on purpose. To self-host, copy the file out of node_modules/@quickbutik/kit/dist/ and serve it from your own origin.
Use defer to keep the script off the critical path. The full list of data-* attributes is in the script tag reference.
Never put a qb_pat_… personal access token in any of these. The kit rejects one with a ShopkitConfigError, but a public env var would still ship it to every visitor.
Leave apiUrl and checkoutUrl unset in production. They default to https://commerce.quickbutik.com and https://pay.quickbutik.com.
Upgrading to 1.8.0 changes two defaults. Every storefront built on <ShopkitProvider>, configure(), <qb-shop> or the script tag now shows a cookie banner and, once the shopper agrees, loads the shop’s analytics; opt out with consent: false in the config (data-consent="false"). And configure({ currency }) / data-currency, which used to be formatting settings only, are now sent with every request as the currency the page browses in. For the shop’s own currency the platform answers exactly as before.
The full history is in the package’s CHANGELOG.md on npm.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Quickbutik Developers","colors":{"primary":"#5754f9","light":"#5754f9","dark":"#5754f9"},"logo":{"light":"https://mintcdn.com/quickbutik/wZjxa2oQAPnz_31l/logo.svg?fit=max\u0026auto=format\u0026n=wZjxa2oQAPnz_31l\u0026q=85\u0026s=8623e173bd73f9c85e937bc3039de7de","dark":"https://mintcdn.com/quickbutik/wZjxa2oQAPnz_31l/logo.svg?fit=max\u0026auto=format\u0026n=wZjxa2oQAPnz_31l\u0026q=85\u0026s=8623e173bd73f9c85e937bc3039de7de"},"favicon":"https://mintcdn.com/quickbutik/JplMtZ7XkqvGH0jM/new-favicon.png?fit=max\u0026auto=format\u0026n=JplMtZ7XkqvGH0jM\u0026q=85\u0026s=65d076f670c0645b4c3f90fa250ebc80","appearance":{"default":"light"},"background":{"color":{"light":"#f1f2ff"}},"navbar":{"links":[{"href":"https://help.quickbutik.com/","label":"Helpcenter"},{"href":"https://quickbutik.com/sv/support","label":"Support"}]},"fonts":{"heading":{"family":"DM Sans"},"body":{"family":"DM Sans"}},"integrations":{"ga4":{"measurementId":"G-2L6XH20LK0"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Quickbutik","icon":"globe","href":"https://quickbutik.com/sv"},{"anchor":"Support","icon":"headset","href":"https://quickbutik.com/sv/support"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"quickbutik","hasAudioNarration":false,"actualSubdomain":"quickbutik","customDomains":["quickbutik.dev"],"gitSource":{"type":"github","owner":"quickbutik","repo":"documentation","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae470cfc4061e91428d7d41","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"default","tag":"Storefront Kit","count":37},{"language":"default","tag":"API \u0026 Webhooks","count":29},{"language":"default","tag":"Theme Development","count":18},{"language":"default","tag":"Getting Started","count":11},{"language":"default","tag":"Concepts","count":11},{"language":"default","tag":"API Reference","count":10},{"language":"default","tag":"Global Objects","count":6},{"language":"default","tag":"Page Objects","count":5},{"language":"default","tag":"Products","count":5},{"language":"default","tag":"React","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"kit/installation","slug":"/kit/installation","pageMetadata":{"title":"Installation","description":"Install @quickbutik/kit from npm or load it from a CDN, and choose the right entry point.","href":"/kit/installation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Install @quickbutik/kit from npm or load it from a CDN, and choose the right entry point.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`install-from-npm`,children:`Install from npm`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`npm`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @quickbutik/kit`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`pnpm`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pnpm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @quickbutik/kit`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`yarn`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`yarn`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @quickbutik/kit`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`bun`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`bun`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @quickbutik/kit`})]}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`The package is on `,_jsx(_components.strong,{children:`public npm`}),` under the MIT license, so you don’t need any `,_jsx(_components.code,{children:`.npmrc`}),`, registry or token setup.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`If a project or home `,_jsx(_components.code,{children:`.npmrc`}),` maps the `,_jsx(_components.code,{children:`@quickbutik`}),` scope to another registry, that mapping hides the public package and the install fails with `,_jsx(_components.code,{children:`Cannot find module '@quickbutik/kit'`}),`. Remove the scope mapping.`]})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Requirements`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Node 18 or newer`}),` on the server, because the kit needs a global `,_jsx(_components.code,{children:`fetch`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`React`}),` is an `,_jsx(_components.em,{children:`optional`}),` peer dependency (`,_jsx(_components.code,{children:`^18.2 || ^19`}),`), needed only for `,_jsx(_components.code,{children:`@quickbutik/kit/react`}),`. Some features (`,_jsx(_components.code,{children:`\u003cProductProvider slug>`}),`, the promise form, tag hoisting in `,_jsx(_components.code,{children:`\u003cSEO />`}),`) need React 19.`]}),`\n`,_jsxs(_components.li,{children:[`The SDK itself has `,_jsx(_components.strong,{children:`zero runtime dependencies`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`entry-points`,children:`Entry points`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Import`}),_jsx(_components.th,{children:`Contents`}),_jsx(_components.th,{children:`Server-safe`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`@quickbutik/kit`})}),_jsxs(_components.td,{children:[`Everything except React and the elements: client, types, storage and cookie helpers, SEO builder, variant matrix, `,_jsx(_components.code,{children:`ProductController`}),`, image and money helpers, currency helpers, the consent store and the analytics hub`]}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`@quickbutik/kit/sdk`})}),_jsx(_components.td,{children:`Just the client, its types, the error classes and key/scope/config helpers`}),_jsx(_components.td,{children:`Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`@quickbutik/kit/react`})}),_jsxs(_components.td,{children:[`Hooks and headless components. Carries a `,_jsx(_components.code,{children:`\"use client\"`}),` directive`]}),_jsx(_components.td,{children:`Client only`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`@quickbutik/kit/elements`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`configure()`}),`, `,_jsx(_components.code,{children:`defineElements()`}),` and the `,_jsx(_components.code,{children:`\u003cqb-*>`}),` element classes`]}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Browser only`}),`. Importing it in Node throws `,_jsx(_components.code,{children:`HTMLElement is not defined`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`@quickbutik/kit/global`})}),_jsxs(_components.td,{children:[`The script-tag bundle (`,_jsx(_components.code,{children:`window.Quickbutik`}),`)`]}),_jsx(_components.td,{children:`Browser only`})]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Everything except React: server and browser`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`createShopkitClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`buildSeo`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`createRequestCookieStorage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@quickbutik/kit\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Just the client and its types: a Node script, an Astro endpoint, a Worker`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`createShopkitClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@quickbutik/kit/sdk\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Hooks and headless components (client only)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ShopkitProvider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`useCart`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ProductProvider`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@quickbutik/kit/react\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// The same composition as custom elements, for a project that is not React`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`configure`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`defineElements`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@quickbutik/kit/elements\"`})]}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`In a framework with server components (Next.js App Router), keep `,_jsx(_components.code,{children:`/react`}),` below a `,_jsx(_components.code,{children:`\"use client\"`}),` boundary and fetch catalog data on the server with the plain client from `,_jsx(_components.code,{children:`@quickbutik/kit`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`load-from-a-cdn-no-build-step`,children:`Load from a CDN (no build step)`}),`\n`,_jsx(_components.p,{children:`For a page with no npm and no bundler, load the self-contained script-tag build:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` defer`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://cdn.jsdelivr.net/npm/@quickbutik/kit@1.10.0/dist/quickbutik-kit.global.js\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` data-publishable-key`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"qb_pk_…\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` data-currency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SEK\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` data-locale`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sv-SE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`File`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`dist/quickbutik-kit.global.js`}),` (also the package’s `,_jsx(_components.code,{children:`unpkg`}),` and `,_jsx(_components.code,{children:`jsdelivr`}),` entry, and `,_jsx(_components.code,{children:`@quickbutik/kit/global`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`CDN`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`https://cdn.jsdelivr.net/npm/@quickbutik/kit@\u003cversion>/dist/quickbutik-kit.global.js`}),` or `,_jsx(_components.code,{children:`https://unpkg.com/@quickbutik/kit@\u003cversion>`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Size (1.10.0)`}),_jsx(_components.td,{children:`About 191 KB minified, about 55 KB gzipped. One request, no dependencies`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Global`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`window.Quickbutik`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Target`}),_jsx(_components.td,{children:`ES2020, so it runs in every browser that supports custom elements`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Pin an exact version`}),` in a script tag (`,_jsx(_components.code,{children:`@1.10.0`}),`, not `,_jsx(_components.code,{children:`@1`}),` or no version at all) and bump it on purpose. To self-host, copy the file out of `,_jsx(_components.code,{children:`node_modules/@quickbutik/kit/dist/`}),` and serve it from your own origin.`]})}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`defer`}),` to keep the script off the critical path. The full list of `,_jsx(_components.code,{children:`data-*`}),` attributes is in the `,_jsx(_components.a,{href:`/kit/reference/script-tag`,children:`script tag reference`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`environment-variables`,children:`Environment variables`}),`\n`,_jsxs(_components.p,{children:[`The publishable key is public by design, so it belongs in the env var your framework exposes to the browser. Keep the `,_jsx(_components.code,{children:`.env`}),` file out of git anyway.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Stack`}),_jsx(_components.th,{children:`Variable`}),_jsx(_components.th,{children:`Read as`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Next.js`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`NEXT_PUBLIC_QUICKBUTIK_PUBLISHABLE_KEY`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`process.env.NEXT_PUBLIC_QUICKBUTIK_PUBLISHABLE_KEY`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Vite (React, Vue, Svelte, vanilla)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`VITE_QUICKBUTIK_PUBLISHABLE_KEY`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`import.meta.env.VITE_QUICKBUTIK_PUBLISHABLE_KEY`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Astro`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`PUBLIC_QUICKBUTIK_PUBLISHABLE_KEY`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`import.meta.env.PUBLIC_QUICKBUTIK_PUBLISHABLE_KEY`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Server only (Node, Workers, Hono)`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`QUICKBUTIK_PUBLISHABLE_KEY`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`process.env`}),` / the Worker’s env binding`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Script tag`}),_jsx(_components.td,{children:`none`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`data-publishable-key`}),` on the tag`]})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Never put a `,_jsx(_components.code,{children:`qb_pat_…`}),` personal access token in any of these. The kit rejects one with a `,_jsx(_components.code,{children:`ShopkitConfigError`}),`, but a public env var would still ship it to every visitor.`]})}),`\n`,_jsxs(_components.p,{children:[`Leave `,_jsx(_components.code,{children:`apiUrl`}),` and `,_jsx(_components.code,{children:`checkoutUrl`}),` unset in production. They default to `,_jsx(_components.code,{children:`https://commerce.quickbutik.com`}),` and `,_jsx(_components.code,{children:`https://pay.quickbutik.com`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`versions`,children:`Versions`}),`\n`,_jsxs(_components.p,{children:[`The current version is `,_jsx(_components.strong,{children:`1.10.0`}),`. Install it unpinned from npm and pin it exactly in a script tag. These features need a minimum version:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Feature`}),_jsx(_components.th,{children:`Since`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Inline (embedded) checkout: `,_jsx(_components.code,{children:`\u003cqb-checkout>`}),`, `,_jsx(_components.code,{children:`checkout.mount()`}),`, `,_jsx(_components.code,{children:`\u003cCheckout>`})]}),_jsxs(_components.td,{children:[`1.1.0. Older builds never register `,_jsx(_components.code,{children:`\u003cqb-checkout>`}),`, so it renders nothing`]})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`theme`}),` (light/dark) on `,_jsx(_components.code,{children:`checkout.start()`}),`, `,_jsx(_components.code,{children:`createSession()`}),` and `,_jsx(_components.code,{children:`mount()`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.2.0`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`theme`}),` attribute/prop on `,_jsx(_components.code,{children:`\u003cqb-checkout>`}),`, `,_jsx(_components.code,{children:`\u003cqb-checkout-button>`}),` and `,_jsx(_components.code,{children:`\u003cCheckout>`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.2.1`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Campaign storefronts on the cart and checkout, `,_jsx(_components.code,{children:`successMode: \"inline\"`}),`, a single shared build across entry points`]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.3.0`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`Buy now (`,_jsx(_components.code,{children:`buyNow`}),`, `,_jsx(_components.code,{children:`\u003cqb-buy-now>`}),`), `,_jsx(_components.code,{children:`storefrontId`}),`, campaign-priced product reads, `,_jsx(_components.code,{children:`cart.clear()`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.4.0`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`variant.imageId`}),`, `,_jsx(_components.code,{children:`product.sections`}),`, `,_jsx(_components.code,{children:`product.relatedProducts`}),` in the types`]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.5.0`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`Category.ancestors`}),` typed as `,_jsx(_components.code,{children:`CategoryAncestor[]`}),` (`,_jsx(_components.code,{children:`{ id, name, slug }`}),`)`]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.6.0`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`buildSeo({ category })`}),` names breadcrumb parents from `,_jsx(_components.code,{children:`Category.ancestors`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.7.0`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.a,{href:`/kit/concepts/consent-and-analytics`,children:`Cookie consent and analytics`}),`, `,_jsx(_components.strong,{children:`on by default`}),`: the banner, Consent Mode, the shop’s GA4 / GTM / Meta pixel, commerce events and the purchase`]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.8.0`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.a,{href:`/kit/concepts/currencies`,children:`Currencies`}),`: `,_jsx(_components.code,{children:`currency`}),` / `,_jsx(_components.code,{children:`setCurrency()`}),`, `,_jsx(_components.code,{children:`useCurrency()`}),`, `,_jsx(_components.code,{children:`\u003cqb-currency-select>`}),`, `,_jsx(_components.code,{children:`product.currency`}),`, `,_jsx(_components.code,{children:`cart.presentment`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.8.0`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.a,{href:`/kit/concepts/customer-accounts`,children:`Customer accounts`}),`: `,_jsx(_components.code,{children:`customers.*`}),`, `,_jsx(_components.code,{children:`useCustomer()`}),`, `,_jsx(_components.code,{children:`useCustomerClub()`}),`, group prices, `,_jsx(_components.code,{children:`ShopkitAuthError`}),`, the `,_jsx(_components.code,{children:`customer:session`}),` scope, `,_jsx(_components.code,{children:`price.source`}),` / `,_jsx(_components.code,{children:`price.hidden`}),`, `,_jsx(_components.code,{children:`page.meta.pricing`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.9.0`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.a,{href:`/kit/concepts/customer-accounts#registration`,children:`Customer registration and password reset`}),`: `,_jsx(_components.code,{children:`customers.register()`}),`, `,_jsx(_components.code,{children:`requestPasswordReset()`}),`, `,_jsx(_components.code,{children:`resetPassword()`}),`, the same on `,_jsx(_components.code,{children:`useCustomer()`})]}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.10.0`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Upgrading to 1.8.0 changes two defaults.`}),` Every storefront built on `,_jsx(_components.code,{children:`\u003cShopkitProvider>`}),`, `,_jsx(_components.code,{children:`configure()`}),`, `,_jsx(_components.code,{children:`\u003cqb-shop>`}),` or the script tag now shows a cookie banner and, once the shopper agrees, loads the shop’s analytics; opt out with `,_jsx(_components.code,{children:`consent: false`}),` in the config (`,_jsx(_components.code,{children:`data-consent=\"false\"`}),`). And `,_jsx(_components.code,{children:`configure({ currency })`}),` / `,_jsx(_components.code,{children:`data-currency`}),`, which used to be formatting settings only, are now sent with every request as the currency the page browses in. For the shop’s own currency the platform answers exactly as before.`]})}),`\n`,_jsxs(_components.p,{children:[`The full history is in the package’s `,_jsx(_components.code,{children:`CHANGELOG.md`}),` on npm.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Installation","description":"Install @quickbutik/kit from npm or load it from a CDN, and choose the right entry point.","href":"/kit/installation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Install from npm","slug":"install-from-npm","depth":2,"children":[]},{"title":"Entry points","slug":"entry-points","depth":2,"children":[]},{"title":"Load from a CDN (no build step)","slug":"load-from-a-cdn-no-build-step","depth":2,"children":[]},{"title":"Environment variables","slug":"environment-variables","depth":2,"children":[]},{"title":"Versions","slug":"versions","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"quickbutik","siteName":"Quickbutik Developers","title":"Installation - Quickbutik Developers","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-15T11:38:56.979Z","originalFileLocation":"kit/installation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Install @quickbutik/kit from npm or load it from a CDN, and choose the right entry point.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Quickbutik Developers\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/quickbutik/qIyEIo8_UqlkEfOo/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/quickbutik/qIyEIo8_UqlkEfOo/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/quickbutik/qIyEIo8_UqlkEfOo/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/quickbutik/qIyEIo8_UqlkEfOo/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/quickbutik/qIyEIo8_UqlkEfOo/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/quickbutik/qIyEIo8_UqlkEfOo/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/quickbutik/qIyEIo8_UqlkEfOo/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/quickbutik/qIyEIo8_UqlkEfOo/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/quickbutik/qIyEIo8_UqlkEfOo/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Installation - Quickbutik Developers\">\u003cmeta data-mint-head property=\"og:description\" content=\"Install @quickbutik/kit from npm or load it from a CDN, and choose the right entry point.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Quickbutik Developers\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://quickbutik.dev/kit/installation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://quickbutik.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Installation\u0026amp;description=Install+%40quickbutik%2Fkit+from+npm+or+load+it+from+a+CDN%2C+and+choose+the+right+entry+point.\u0026amp;theme=89e8182f417817553aff8919\u0026amp;signature=056ce47706265d3761ec362fa9803f1b8ec3bc18ce82fd4c66cedef57ef65505\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Installation - Quickbutik Developers\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Install @quickbutik/kit from npm or load it from a CDN, and choose the right entry point.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://quickbutik.mintlify.site/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=Installation\u0026amp;description=Install+%40quickbutik%2Fkit+from+npm+or+load+it+from+a+CDN%2C+and+choose+the+right+entry+point.\u0026amp;theme=89e8182f417817553aff8919\u0026amp;signature=056ce47706265d3761ec362fa9803f1b8ec3bc18ce82fd4c66cedef57ef65505\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/quickbutik/qIyEIo8_UqlkEfOo/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Quickbutik Developers\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5754f9\">\u003clink data-mint-head rel=\"canonical\" href=\"https://quickbutik.dev/kit/installation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/kit/installation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://quickbutik.dev/#organization\",\"name\":\"Quickbutik Developers\",\"url\":\"https://quickbutik.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/quickbutik/wZjxa2oQAPnz_31l/logo.svg?fit=max\u0026auto=format\u0026n=wZjxa2oQAPnz_31l\u0026q=85\u0026s=8623e173bd73f9c85e937bc3039de7de\"}},{\"@type\":\"WebSite\",\"@id\":\"https://quickbutik.dev#website\",\"name\":\"Quickbutik Developers\",\"url\":\"https://quickbutik.dev\",\"publisher\":{\"@id\":\"https://quickbutik.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://quickbutik.dev/kit/installation#webpage\",\"url\":\"https://quickbutik.dev/kit/installation\",\"name\":\"Installation\",\"description\":\"Install @quickbutik/kit from npm or load it from a CDN, and choose the right entry point.\",\"dateModified\":\"2026-10-15T11:38:56.979Z\",\"isPartOf\":{\"@id\":\"https://quickbutik.dev#website\"},\"breadcrumb\":{\"@id\":\"https://quickbutik.dev/kit/installation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://quickbutik.dev/kit/installation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting Started\",\"item\":\"https://quickbutik.dev/kit/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installation\",\"item\":\"https://quickbutik.dev/kit/installation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://quickbutik.dev/kit/installation#article\",\"headline\":\"Installation\",\"name\":\"Installation\",\"description\":\"Install @quickbutik/kit from npm or load it from a CDN, and choose the right entry point.\",\"url\":\"https://quickbutik.dev/kit/installation\",\"mainEntityOfPage\":{\"@id\":\"https://quickbutik.dev/kit/installation#webpage\"},\"dateModified\":\"2026-10-15T11:38:56.979Z\",\"publisher\":{\"@id\":\"https://quickbutik.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://quickbutik.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Quickbutik Developers\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Quickbutik Developers","nav":{"global":{"anchors":[{"anchor":"Quickbutik","icon":"globe","href":"https://quickbutik.com/sv"},{"anchor":"Support","icon":"headset","href":"https://quickbutik.com/sv/support"}]},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":""}]},{"tab":"Theme Development","pages":[{"title":"Theme Development","href":"/theme-development/introduction"}]},{"tab":"Storefront Kit","groups":[{"group":"Getting Started","pages":[{"title":"Quickbutik Kit","sidebarTitle":"Introduction","href":"/kit/introduction"},{"title":"Quickstart","href":"/kit/quickstart"},{"title":"Create a shop without an account","sidebarTitle":"Create a shop","description":"One unauthenticated request gives you a real Quickbutik shop with a catalog, a cart and a hosted checkout. Build on it, then hand it over to the merchant by email.","href":"/kit/create-a-shop"},{"title":"Installation","href":"/kit/installation"},{"title":"Publishable keys","description":"The qb_pk_ key that drives a storefront: where to find it, what it can do, and how to keep the merchant token out of the browser.","href":"/kit/publishable-keys"}]},{"group":"Vanilla JavaScript","pages":[{"title":"Vanilla JS setup","sidebarTitle":"Setup","href":"/kit/vanilla/setup"},{"title":"Build a storefront in plain JavaScript","sidebarTitle":"Build a storefront","href":"/kit/vanilla/storefront"},{"title":"Server-side rendering","sidebarTitle":"Server-side","href":"/kit/vanilla/server-side"}]},{"group":"React","pages":[{"title":"React setup","sidebarTitle":"Setup","href":"/kit/react/setup"},{"title":"Catalog and products","href":"/kit/react/catalog-and-products"},{"title":"Cart and checkout","href":"/kit/react/cart-and-checkout"},{"title":"Next.js App Router","sidebarTitle":"Next.js","href":"/kit/react/nextjs"}]},{"group":"Web Components","pages":[{"title":"Web components setup","sidebarTitle":"Setup","href":"/kit/web-components/setup"},{"title":"Templates, bindings and actions","sidebarTitle":"Templates and bindings","href":"/kit/web-components/templates"},{"title":"Build a storefront with web components","sidebarTitle":"Build the storefront","href":"/kit/web-components/storefront"},{"title":"Scripting the elements","sidebarTitle":"Scripting","href":"/kit/web-components/scripting"}]},{"group":"Concepts","pages":[{"title":"Checkout and the return leg","sidebarTitle":"Checkout","href":"/kit/concepts/checkout"},{"title":"Embedded checkout","href":"/kit/concepts/embedded-checkout"},{"title":"Storage and server rendering","sidebarTitle":"Storage \u0026 SSR","href":"/kit/concepts/storage-and-ssr"},{"title":"Images, money and product content","sidebarTitle":"Images \u0026 money","href":"/kit/concepts/images"},{"title":"Currencies","href":"/kit/concepts/currencies"},{"title":"Customer accounts","href":"/kit/concepts/customer-accounts"},{"title":"SEO and structured data","sidebarTitle":"SEO","href":"/kit/concepts/seo"},{"title":"Consent and analytics","href":"/kit/concepts/consent-and-analytics"},{"title":"Campaign storefronts","href":"/kit/concepts/campaign-storefronts"},{"title":"Testing and going live","sidebarTitle":"Going live","href":"/kit/concepts/going-live"},{"title":"Troubleshooting","href":"/kit/troubleshooting"}]},{"group":"API Reference","pages":[{"title":"Client","href":"/kit/reference/client"},{"title":"Products, categories \u0026 shop","sidebarTitle":"Products \u0026 categories","href":"/kit/reference/products"},{"title":"Cart","href":"/kit/reference/cart"},{"title":"Checkout","href":"/kit/reference/checkout"},{"title":"Utilities","href":"/kit/reference/utilities"},{"title":"Errors \u0026 scopes","href":"/kit/reference/errors"},{"title":"Types","href":"/kit/reference/types"},{"title":"React","href":"/kit/reference/react"},{"title":"Web components","href":"/kit/reference/elements"},{"title":"Script tag","href":"/kit/reference/script-tag"},{"group":"Type reference (generated)","pages":[{"title":"@quickbutik/kit","sidebarTitle":"Core \u0026 SDK","href":"/kit/api/core"},{"title":"@quickbutik/kit/react","sidebarTitle":"React","href":"/kit/api/react"},{"title":"@quickbutik/kit/elements","sidebarTitle":"Web components","href":"/kit/api/elements"}]}]}]},{"tab":"API \u0026 Webhooks","pages":[{"title":"API \u0026 Webhooks","href":"/api-v1/introduction"}]}]},"basePath":"","title":"Installation - Quickbutik Developers","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":[],"chunks":[]}