Scan your whole stack
Are you using @cartbase/storefront?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.45.5
@cartbase/storefront was last scanned on 28 Nov 2026 at version 0.45.5. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.45.5 LATEST | 28 Nov 2026 | No rules fired |
| 0.45.4 | 27 Nov 2026 | No rules fired |
| 0.45.3 | 25 Nov 2026 | No rules fired |
| 0.45.2 | 23 Nov 2026 | Not shown |
| 0.46.0-builder.3 | 21 Nov 2026 | Not shown |
Findings for v0.45.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.45.5; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The storefront package for the Cartbase commerce platform: a fully-typed API client for every store endpoint, checkout orchestration, a production-grade cart drawer, product and catalog components, and consent-gated tracking, everything a storefront needs between your pages and your store.
npm create cartbase my-store # scaffold with everything prewired
# or add to an existing Next.js app:
npm install @cartbase/storefront
One of four doors, and the docs behind each at https://docs.cartbase.ai
(a scaffold carries them in docs/):
| You are | Start with |
|---|---|
| Building a new storefront from nothing | npx create-cartbase@latest my-store --key pk_…, then the runbook, Build a storefront |
| Bringing an app you already have onto the store | Bring your own storefront: the package into your app, the checklist, the danger zones |
| Running the store from the terminal (products, orders, settings) | npx cartbase@latest init, then the brief it writes, CARTBASE.md; cartbase resources lists every command |
| Building an app for the store | Build an app, and cartbase app create <key> |
Read The rules below before the first edit, whichever door.
Enforced by the platform or costing the store its support; an agent that reads nothing else reads these.
api functions or its hooks. The platform's checkout completion refuses
a client that skipped the platform's filtered listings and a total it
did not compute, so a checkout written against raw endpoints fails at
the moment of money.node_modules is never edited. Pin one version; a change comes from
a newer version, a prop, a slot or a theme token.checkout/use-checkout-buy, checkout/payment-wrapper,
checkout/stripe-wrapper, checkout/payment-button) is locked: never
ejected, never wrapped by code that changes what it sends.cartbase eject <module>, never a copy by hand: the file lands in
src/cartbase/ with a header the deploy reads and its imports pointed
back at the package, and it leaves Cartbase support. The money path
(src/lib/locks.json) is refused.middleware.*, app/api/*, a hosting provider's configuration
file and .env*.Three files, whatever tool built the app.
next.config: add these keys to the config the app already has; never
replace the file (the Tailwind loader, cacheComponents and your own
redirects stay). The package is source-shipped TypeScript, the store API
answers no cross-origin browser call, product pictures live on the Cartbase
media CDN, and the catalogue reads need a cache life:
transpilePackages: ["@cartbase/storefront"],
cacheLife: { catalog: { stale: 300, revalidate: 86400, expire: 604800 } },
images: { remotePatterns: [{ protocol: "https", hostname: "cartbase.cloud" }] },
async rewrites() {
const cartbaseUrl = process.env.NEXT_PUBLIC_CARTBASE_URL || "https://admin.cartbase.ai"
return [{ source: "/api/store/:path*", destination: `${cartbaseUrl}/api/store/:path*` }]
},
The catalogue life is a day because a change never waits for it: Cartbase
marks the store's pages stale within a minute of every save in the admin
and at every Publish, and the page is rebuilt behind its next visit. The
life only bounds how old a page nobody changed can get. Every cached read
carries the tag catalog and names what it returned by id (product:<id>,
collection:<id>, page:<id>, a page of products products), so Cartbase
purges only the pages that show the thing a save changed; the names are
listed in BRING-YOUR-OWN-STOREFRONT.md, step 2.
globals.css: Tailwind 4 is CSS-first, so the theme is two imports; the
package's source must be scanned or the components render unstyled (the
@source path is relative to the CSS file); your brand is token values
below the imports:
@import "tailwindcss";
@import "@cartbase/storefront/theme";
@source "../../node_modules/@cartbase/storefront/src";
@custom-variant dark (&:where(.dark, .dark *));
:root { --primary: oklch(0.45 0.16 150); --radius-base: 0.75rem; }
.env.local: one value wires the app to the store, the publishable
key your Cartbase admin hands out on the Storefront page. On Cartbase
hosting it is injected at build.
NEXT_PUBLIC_CARTBASE_PUBLISHABLE_KEY= # your store's key: names the store, scopes the catalog
NEXT_PUBLIC_CARTBASE_URL= # optional: only to point at a local or staging platform
Then the five files of src/lib/ from the reference storefront (the
scaffold's config.ts, store-client.ts, browser-client.ts,
server-client.ts, catalog.ts), the shell in your root layout, the
checkout page and the order page. The whole route for an app you already
have, step by step with its checklist and its danger zones, is
Bring your own storefront;
a blank app starts at the
runbook. Run
npx cartbase@latest init in the app: it writes the brief your coding
agent reads in every session.
| Import | What you get |
|---|---|
@cartbase/storefront/api |
Typed client for the whole store API, products, carts, checkout, orders, customers, auth, content, search, reviews, and a custom app's public records (api/apps) |
@cartbase/storefront/checkout |
The complete checkout: the orchestration hook, address forms, shipping/payment method lists, Stripe wrapper, carrier pickers |
@cartbase/storefront/checkout/use-checkout-* |
The checkout's nine concerns, each its own import: use-checkout-cart, use-cart-notes, use-checkout-address, use-checkout-delivery, use-checkout-tender, use-checkout-totals, use-checkout-buy (the money path, locked), use-checkout-error-log, use-checkout-feed. useCheckoutOrchestration is their composition; compose your own checkout from the pieces you keep |
@cartbase/storefront/cart-drawer |
Slide-out cart with upsells, tiers, gift options, notes |
@cartbase/storefront/products |
PDP building blocks: gallery, options, prices, actions |
@cartbase/storefront/store |
Listing pages: pagination, sorting, collection/category/search templates, and the search box that shows products and pages while the shopper types (usePredictiveSearch, PredictiveSearch, PredictiveSearchResults) |
@cartbase/storefront/order |
Order confirmation surfaces |
@cartbase/storefront/account |
The customer's side: who is signed in, the sign-in with an emailed code, the account page with the orders and the profile, and Sign out |
@cartbase/storefront/tracking |
Consent banner and Consent Mode v2, every marketing tag the store configured mounted from its own config (Meta Pixel, TikTok, Google Analytics 4 and Google Ads on one tag, Google Tag Manager), and one call per commerce moment that fires all of them |
@cartbase/storefront/locales |
English built in; Spanish and Bulgarian as typed packs. One provider mounts the language for every client component; the server-rendered templates take their area of the pack as a required prop |
@cartbase/storefront/experiments |
The store's A/B tests: ExperimentsProvider once in the layout, useExperiment(key) in any component, getExperimentVariant on the server; the visitor's variant computed with the platform's own assignment, and what each visitor was shown reported once |
@cartbase/storefront/theme |
The design system: token names plus a filled default set of values (Tailwind 4, CSS-first) |
Mount CheckoutClient with the transport alone and the page needs no server
read: the form is in the prerendered HTML and paints with your header, and
the client reads the shopper's cart, the delivery methods and the tenders
from the browser in one round after the paint, through your same-origin
/api/store rewrite. Until the cart lands the summary marks where its
numbers go; a read the network or the platform fails is asked once more
before anything is shown, and a listing that still fails says so in its
own section with a Try again; no cart, an empty cart or one completed
elsewhere shows the empty notice with the way back. A store that reads any of the three on its server
hands it in as the value, or as a promise wrapped with settleFeed() so it
settles into a result and never rejects (checkout/checkout-feed). The cart
is re-read once when the tab comes back into view; nothing here ever
refreshes the page.
useCheckoutOrchestration is the composition of one hook per concern: the
cart and its listings, the checkout's notes on the cart, the address, the
delivery and its live quotes, the tender and its fee, the totals, Place
order, where failures go, and the feed follower. CheckoutClient mounts
the composition; a store with its own layout mounts it too, or imports the
concerns it keeps and replaces the ones it does not. useCheckoutBuy is
the one locked piece: prepare, confirm, complete and the bank-challenge
return, imported and used, never rewritten. Every hook explains itself at
the top of its file, and every one has its own test suite.
The checkout pickup picker loads each carrier's complete eligible catalogue through the store API and always offers three points: the nearest to the address found on the map, else the typed town's, else the postcode's, else any three. Its search reaches every point of the network, in Latin or Cyrillic, whatever town was typed; the mounted locale pack selects Speedy's display language. Offices exclude automated lockers. A picker with nothing to pick reports itself to the platform's checkout log. No carrier credentials or copied catalogue are needed in the storefront. Every shipping option carries the connected adapter's identity, mark, destination mode and pickup scope, so the same picker and logo path work for every carrier without storefront branches.
The merchant configures their pixels in the admin; the storefront mounts what they configured. Nothing per vendor:
<ConsentInit required={consent.enabled} /> // first child of <body>, sets the consent defaults
<StorefrontTags client={client} /> // every configured tag, gated by the above
<TrackInit /> // captures UTMs + ad-click ids on the landing page
consent.enabled is the store's own switch (GET /api/store/consent): a
store that collects consent starts every visitor denied until they choose
on the banner; a store with the banner off starts them granted and the
pixels fire. The prop is required, so a layout cannot leave it out.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.