New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@coveo/create-atomic-component-project

Package Overview
Dependencies
Maintainers
5
Versions
1069
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.16
Version published
Weekly downloads
0
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

atomic

FAQs

Package last updated on 08 Apr 2026

Related posts