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/quantic

v3.37.0

Published

A Salesforce Lightning Web Component (LWC) library for building modern UIs interfacing with the Coveo platform

Readme

Coveo Quantic

Using the Library

How to use the Coveo Quantic Library

Install Coveo Quantic as a Salesforce unlocked package

Contributing

Create a Salesforce Developer Organization

  • Sign up
  • Use your @coveo.com email account. The username can be anything.

Setup SFDX CLI

Salesforce cli

Update SFDX CLI Plugins

  • Run sf plugins update

Install VSCode Extension

Optionally install the VSCode Salesforce Extension Pack if you do not want use the equivalent Salesforce cli commands to setup.

Note Make sure you open the quantic project at the root (/packages/quantic/) in vscode in order for the extension to work properly.

Enable Dev Hub in Your Salesforce Organization

  • Connect to your salesforce developer organization login
  • From Setup, enter Dev Hub in the Quick Find box and select Dev Hub.
  • To enable Dev Hub, click Enable

Authorize Your Dev Hub

  • In VS Code, press Command + Shift P, enter sfdx, and select SFDX: Authorize a Dev Hub.
  • You can also run this command from the command line. sf org login web --set-default-dev-hub --alias LWC-Hub
  • Running this command opens a browser to the Salesforce login page. Enter your Salesforce username and password. Authorize only once, not every time you work on your project.

Single Command Run

  • Make sure you are at the root of packages/quantic.

  • Run pnpm run setup:examples.

This command will create two scratch orgs for you:

  • One with Lightning Web Security (LWS) enabled. (Alias: Quantic__LWS_enabled)

  • One with LWS disabled, Locker Service enabled. (Alias: Quantic__LWS_disabled)

Each scratch org will include:

  • All Quantic components
  • The example components
  • An example Quantic community featuring:
    • 🧪 Component playgrounds
    • 💡 Solution examples

To access the links to the created communities, check the generated .env file after the script completes.

Or you can run the individual commands below.

Create a Default Scratch Org

  • Make sure you are in the packages/quantic root folder.
  • Run this command to create the default scratch org. pnpm run scratch:create.
  • In VS Code, press Command + Shift P, enter sfdx, and select SFDX: Create a Default Scratch Org.
  • You can also run this command from the command line. sf org create scratch --set-default --definition-file config/lws-enabled-scratch-def.json --alias Quantic__LWS_enabled
  • Quantic__LWS_enabled is an alias for the scratch org that you can use in other Salesforce CLI commands. You can create any alias that you like.

Deploy the Quantic code

  • Run this command from the command line. sf project deploy start --source-dir force-app/main.

Testing

Deploy the Quantic Examples Communities

Example components are available as Salesforce communities (Digital Experiences), allowing you to experiment with Quantic components in two separate environments: one with Lightning Web Security (LWS) enabled and one with LWS disabled.

To set up both communities in scratch orgs, run:

pnpm run setup:examples

This script creates, configures, and deploys everything required to have fully working examples in two scratch orgs:

  • An org with LWS enabled.
  • An org with LWS disabled.

At the end of the script, the URLs for the two communities are provided, as in the following example:


The 'Quantic Examples' community (LWS enabled) is ready, you can access it at the following URL:
https://your-salesforce-lws-enabled-scratch-org-instance.force.com/examples

The 'Quantic Examples' community (LWS disabled) is ready, you can access it at the following URL:
https://your-salesforce-lws-disabled-scratch-org-instance.force.com/examples

Once the community has been deployed, you can deploy the main or example components to a specific org only when needed by running the corresponding commands:

pnpm run deploy:main Quantic__LWS_enabled
pnpm run deploy:examples Quantic__LWS_enabled

You can replace Quantic__LWS_enabled with your target org alias. For example:

pnpm run deploy:main MyCustomOrg
pnpm run deploy:examples MyCustomOrg

Run Playwright for Quantic Components

Note Before attempting to run Playwright tests, make sure the Quantic Examples community is deployed as described in the previous section in both orgs, the one where LWS is enabled and the one where it is disabled.

Note For more information on how to add tests, please refer to our Quantic Testing Strategy, which provides detailed guidelines on testing Quantic components.

To run Playwright tests, run:

pnpm run e2e:playwright

To run Playwright tests only for the scratch org where LWS is enabled, run:

pnpm run e2e:playwright:lws-enabled

To run Playwright tests only for the scratch org where LWS is disabled, run:

pnpm run e2e:playwright:lws-disabled

Run LWC unit tests for Quantic Components

To run LWC unit tests directly in your console, run:

pnpm run test:unit

To run specific file/components LWC unit tests directly in your console, run:

pnpm run test:unit -p force-app/main/default/lwc/nameOfComponent/

Use Quantic From Source

After you have cloned the repository and have run pnpm install, run the following commands:

  • pnpm run build
  • sf project deploy start --source-dir force-app/main/default

Other Useful Commands

  • sf project deploy start --metadata LightningComponentBundle
  • --metadata LightningComponentBundle can be changed for different types of "resources". To know which name, check the related meta.xml file for each type of resource.
  • Create new web components. In VS Code, press Command + Shift P, enter sfdx, and select SFDX: Create Lightning Web Component.

Learn About LWC

  • lwc.dev
  • Components reference. Make sure you stay in the "Lightning web components section". Aura does not apply. Aura is the older UI library that is being deprecated by Salesforce.
  • Lightning design system. Reference for styling, CSS utilities, icons, and more.