Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@usequeek/theme-kit

Latest version: v0.5.16

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: usequeek
0 Stars
0 Forks
64 Versions
7.3K Downloads
TypeScript Repo language

Scan summary

@usequeek/theme-kit was last scanned on 27 Nov 2026 at version 0.5.16. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 64 versions; the latest 5 were published within 4 days (24–27 Nov 2026).
  • Findings: No rules fired in version 0.5.16.
  • Downloads: 7,278 downloads.

Versions

64 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.16 LATEST 27 Nov 2026 No rules fired
0.5.15 24 Nov 2026 No rules fired
0.5.14 24 Nov 2026 No rules fired
0.5.13 24 Nov 2026 Not shown
0.5.12 24 Nov 2026 Not shown

No rules fired in 0.5.16

Findings

Findings for v0.5.16. 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.5.16; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@usequeek/theme-kit

The runtime a Queek storefront theme is built on: hooks for products, cart, auth and search, state stores, the page and block renderer, navigation, shared blocks, and locale strings. A theme is React components and CSS; this kit supplies everything that talks to Queek. See the theme documentation for how themes work end to end.

Requirements

  • Next.js 15 or later (App Router), react and react-dom 19 or later. The kit imports next itself (links, navigation, server request headers), so it runs inside a Next.js app, not in a bare React app.
  • @usequeek/client-sdk ^0.4.0, the Queek customer SDK the auth and checkout hooks call.
  • Node.js 22 or later (the version CI tests on).
  • TypeScript with moduleResolution: bundler and jsx: react-jsx.

Install

npm install @usequeek/theme-kit

The package ships TypeScript source, not a build. Most modules carry a 'use client' directive, and that directive is the whole contract with the React Server Components boundary; bundlers routinely strip or hoist it when a library is pre-compiled, which silently turns a client module into a server one. The consumer transpiles the package instead, so the directives reach the bundler that enforces them:

// next.config.ts
export default { transpilePackages: ['@usequeek/theme-kit'] };

A vitest setup that renders kit components needs the package inlined (server.deps.inline: ['@usequeek/theme-kit']) so the shipped .tsx source is transformed like first-party code.

Quickstart

A product list that loads, handles a failed request, links to each product and adds to the cart:

'use client';

import { useCart } from '@usequeek/theme-kit/hooks/use-cart';
import { useHref } from '@usequeek/theme-kit/hooks/use-href';
import { useProducts } from '@usequeek/theme-kit/hooks/use-products';
import { Link } from '@usequeek/theme-kit/navigation';
import { formatMoney } from '@usequeek/theme-kit/utils/format';

export function PopularProducts() {
  const { products, isLoading, error } = useProducts({ limit: 4, sort: 'popular' });
  const { addProduct } = useCart();
  const href = useHref();

  if (isLoading) return <p>Loading…</p>;
  if (error) return <p>We could not load products. Please try again.</p>;

  return (
    <ul>
      {products.map((product) => (
        <li key={product.id}>
          <Link href={href(`/products/${product.slug}`)}>{product.title}</Link>
          <span>{formatMoney(product.pricing.sale_amount, product.currency)}</span>
          <button type="button" onClick={() => addProduct(product)}>
            Add to cart
          </button>
        </li>
      ))}
    </ul>
  );
}

The storefront mounts StorefrontProvider for every theme, so a theme never renders it. Hooks called outside it throw an error that says so. In a test or a script, wrap the component yourself:

<StorefrontProvider vendor={vendor} config={config} menus={[]}>
  <PopularProducts />
</StorefrontProvider>

Use

import { useCart } from '@usequeek/theme-kit/hooks/use-cart';
import type { ThemeModule } from '@usequeek/theme-kit/types/theme';

Import the module you need by its deep path. The barrels (. and ./client) declare the public surface, meaning what a theme is allowed to build against, but importing through them pulls every client module into one chunk and can break an app's build.

There is no exports map: with source-shipped .ts/.tsx, an extensionless wildcard target does not resolve, so subpaths resolve off the filesystem under moduleResolution: bundler. The package therefore has no subpath encapsulation; what a theme may import is the surface the barrels declare, checked by tests/public-surface.test.ts.

Theme CSS ships with the package: @usequeek/theme-kit/shared-blocks/core-blocks.css (framework-owned blocks), plus per-component CSS next to its component (components/variant-picker.css, apps/apps.css).

Hooks

The hooks that fetch (products, shop, categories, posts, reviews, questions, related products, product detail) report failure through an error field (an Error, or null). They never throw and never leave an unhandled rejection, and they keep the data already on screen. They return isLoading, except useProductDetail, which returns loadingDetail. In preview, hooks read previewData from the provider and make no request.

Hook Module Returns
useProducts(options?) hooks/use-products A product list: { products, isLoading, error }
useProductBySlug(slug) hooks/use-products One product by slug: { product, isLoading, error }
useProductDetail(listProduct, isOpen, vendorSlug?, locale?) hooks/use-product-detail A list product completed with variants and add-ons
useRelatedProducts(slug, limit?, { fallback }?) hooks/use-related-products Related products; fallback (e.g. { sort: 'popular', limit: 9 }) is read only when none come back
useProductSections({ enabled }?) hooks/use-product-sections The catalogue in sections (render SearchResultsLoading from components/search-loading while it loads); enabled: false (a closed search sheet) reads nothing until it turns true
logoSrc(url, variants) utils/image-srcset The smallest copy of a store logo tall enough for a 120 px logo box on a 3x screen (LOGO_MAX_CSS_HEIGHT); a theme that draws a taller logo must raise it
useShop(options?) + useShopParams() hooks/use-shop, hooks/use-shop-params The shop catalogue page and its URL state
useCollectionParams() hooks/use-collection-params Search, sort and page state for a collection page
useCategories(options?) hooks/use-categories Categories, flattened
usePosts(options?) hooks/use-posts Blog posts
useReviews(block) hooks/use-reviews Reviews and the rating summary
useProductQuestions(block) hooks/use-product-questions Product questions and answers
useCart() / useShopCart(shopId) hooks/use-cart, hooks/use-shop-cart The cart and its actions; one shop's lines and totals
useAddAppBlockLines(shopId) hooks/use-add-app-block-lines Adds the products of an add-to-cart app block: { addLines, pending }
useAuth() hooks/use-auth The signed-in customer and sign-in modal controls
useVariantSelection(product, preferredVariantPId?) hooks/use-variant-selection Option selection state and the add-to-cart gate; opens on a linked ?variant=
useSearch(query, products, collections) hooks/use-search Instant search over data you hold
useFooterInView(active?) hooks/use-footer-in-view True while the page's own <footer> is on screen; a card pinned to the bottom hides while it is true
useHref() hooks/use-href Builds a store-relative link
useLocales() hooks/use-locales The store's languages and the active one
useStorefront() / useStorefrontLocale() / useThemeStrings() provider The store, the request locale, the bound t
useProductCount() provider (count) => number \| null: the product count to print, null unless the store turned counts on (config.display.show_product_counts, off by default). Print every product count through it and render nothing for null
Image loading

ProductMediaFrame (and buildMediaFrames, which marks MediaFrame.lazy on every frame after the first) renders a product gallery's later frames, thumbnails and avatar-sized frames with loading="lazy". Whatever a product page shows first (the first frame, a selected variant's photo, a modal hero) stays eager, without fetchPriority="high" (measured: it made LCP later). logoSrc renders the smallest logo copy that still holds every pixel a 120 px logo box shows on a 3x screen (LOGO_MAX_CSS_HEIGHT).

Cart pricing

useShopCart(shopId) and CartPanelController also return pricing: what the server charges for exactly the lines on screen (quantity-break and spend-gate discounts included), or null. Amounts are decimal strings as the server sent them; print them with formatWireMoney(amount, currency) (from utils/format) and never compute a discount in a theme. When pricing is null, print unit_price x quantity as before.

const { items, total, pricing } = useShopCart(vendor.id);

items.map((item) => {
  const line = cartLinePricing(pricing, item.id); // from utils/cart-pricing
  return line ? (
    <Fragment key={item.id}>
      {line.list_line_total ? <del>{formatWireMoney(line.list_line_total, currency)}</del> : null}
      <ins>{formatWireMoney(line.line_total, currency)}</ins>
    </Fragment>
  ) : (
    formatMoney(item.unit_price * item.quantity, currency)
  );
});

formatWireMoney hands the string to Intl untouched and follows the same rule as formatMoney: a whole amount prints without decimals (₦4,500), any other amount prints all of the currency's minor-unit digits (US$11.50, KWD 1.250, never US$11.5), a zero-decimal currency never prints decimals, and an amount with more digits than the currency has is rounded by Intl. It returns an empty string for anything that is not a plain decimal (a leading - is allowed). The storefront app's own formatWireMoney (numbers, em dash for a missing amount) prints through these two.

The host app supplies the server pricing once, above every theme, with <CartServerPricingProvider value={pricing}> (hooks/use-cart-server-pricing).

Add-to-cart app blocks

An add-to-cart app block puts the products its app named into the cart with one press. The storefront reads the block's lines (type AppBlockAddToCartRead, from types/app-block), then calls useAddAppBlockLines(shopId) and prints ONE notice from the result. No app code runs, the app never writes to the cart, and no price is touched: each line is priced like the same product added from its page.

const { addLines, pending } = useAddAppBlockLines(vendor.id);

async function onPress(): Promise<void> {
  const result = await addLines(read.lines);
  if (result.complete) {
    notify('added');
  } else {
    // result.outcomes: one { index, status, title, ... } per line, in order
    notifyNotAdded(result.outcomes.filter((outcome) => outcome.status !== 'added'));
  }
}

Each line ends as added, customise (any required add-on group, pack groups included, or required line text: the shopper must choose on the product page), variant_required, unavailable (gone, inactive, in_stock false, another store; the quantity is never compared with stock, which checkout enforces), failed (the product could not be read; retry can help) or over_limit (past the 20th line). A line that is not added never stops the others. Say "added" only when complete is true. The statuses are what the kit can know from the product as read; it cannot see the host's cart write, so the host keeps handling that write's own answers.

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @usequeek/theme-kit

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229