npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@coveo/ui-kit-sample-headless-commerce-react

v3.55.3

Published

Downloads

655

Readme

Headless Commerce with React

Scaffold template: headless-commerce-react This sample is the scaffold template used by npm create @coveo/ui to bootstrap a Coveo Headless commerce project with React.

A custom commerce interface built with @coveo/headless/commerce controllers and React. It runs against the public searchuisamples organization with no configuration required.

What it shows

  • A commerce search page (search box, facets, sort, pagination) and product listing pages
  • Product recommendations on the home page
  • A cart and a product description page (PDP)
  • Product-click analytics via interactiveProduct.select()

Technology stack

  • React + TypeScript
  • @coveo/headless/commerce: Coveo's headless commerce library
  • Vite: dev server and build
  • Vitest + Playwright: unit and end-to-end tests

Getting started

pnpm install
pnpm dev      # start the dev server (http://localhost:5173)
pnpm build    # production build
pnpm preview  # preview the production build (http://localhost:4173)
pnpm test     # unit tests (Vitest)
pnpm e2e      # end-to-end tests (Playwright)

Using this sample as an MRE

This sample doubles as a minimal reproducible example for troubleshooting.

  • Where to change the configuration: everything lives in src/context/engine.ts. Replace organizationId, accessToken, and the context (language, country, currency, view) with the values that reproduce your issue. The cart and analytics trackingId are set here too.
  • Safe to modify: src/context/engine.ts (configuration), and any component under src/components or page under src/pages to reproduce a specific UI scenario.
  • Scaffolding you can usually ignore: vite.config.js, playwright.config.ts, e2e/, and src/setupTests.ts.
  • Credentials: the accessToken and organizationId in engine.ts are public searchuisamples sample credentials, safe to share with customers or partners. They are not internal credentials.

Reproducing against a specific version

To reproduce an issue against a specific Coveo UI Kit version, install it after scaffolding:

npm install @coveo/headless@<version>

Learn more