New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@coveo/create-atomic-component-project

Package Overview
Dependencies
Maintainers
5
Versions
1068
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coveo/create-atomic-component-project

Initialize a Coveo Atomic Library Project

latest
Source
npmnpm
Version
1.5.15
Version published
Weekly downloads
7.7K
31.84%
Maintainers
5
Weekly downloads
 
Created
Source

Atomic Custom Components Project

This is a starter project for building web components for Coveo Atomic using Stencil.

Getting Started

If you used npm init @coveo/atomic-component or npm init @coveo/atomic-result-component, your component should already be in src/components. You can use either of these commands at the root of your project to add another component.

Visit Create a custom component for more information

Testing your components locally

You can test your component locally by adding it to src/pages/index.html. The code of the component should already be included. You just need to add the component tag to the markup of the page.

Using a custom component

There are two strategies we recommend for using custom components.

The first step for both these strategies is to publish to NPM.

You should run npm publish in the directory of the component or use the workspace flag to target it. If you want your component to stay private, we recommend you publish it either to the official npm registry as a private package or to your own npm registry.

Visit Publish your custom component for publish instructions.

If you do not want your component to be listed on the Atomic Custom Component marketplace, change the keywords field in the package.json of your component before publishing.

Unpkg script tag

  • Put a script tag similar to this <script type='module' src='https://unpkg.com/my-component@0.0.1/dist/my-component.esm.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

You cannot use unpkg if your component is private.

Visit Use a published custom component for more information.

Node Modules

  • Run npm install my-component --save
  • Put a script tag similar to this <script type='module' src='node_modules/my-component/dist/my-component.esm.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Keywords

coveo

FAQs

Package last updated on 25 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts