# Install Custom NPM Packages for Advocate

You can install custom NPM packages for use in your Advocate program's microsite or widgets.

#### Install a custom NPS package

{% hint style="success" %}
This feature is only accessible to specific impact.com editions or add-ons. [Contact us](https://app.impact.com/support/portal.ihtml?createTicket=true) to upgrade your account and get access.
{% endhint %}

{% tabs %}
{% tab title="Install custom NPM packages for a microsite" %}
If you want to use custom components to build your microsite, then you can install a custom package.

1. In the left navigation menu, select ![](https://impact-1.gitbook.io/docs/emvxfLrwrlacc4y3y02Y/~gitbook/image?url=https%3A%2F%2F4048883401-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwMLlMoFBtKJa8ptd3zaw%252Fuploads%252Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%252Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg%3Falt%3Dmedia\&width=300\&dpr=3\&quality=100\&sign=71dd50ef\&sv=2) **\[Engage] → Content**.
2. On the *Microsite card*, select **Edit Settings**.
3. Under the *Site Hosting* section, select **+ Add Package** → **Add from NPM**.
4. Enter the package name, *Version*, and *File* path.
5. Select **Add**.

   * Return to the [microsite editor](https://help.impact.com/brand/advocate-program/manage-advocate-participant-experiences/microsite-experiences/microsite-editor-explained) to start adding your custom components to your site.

   <div data-with-frame="true"><figure><img src="https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-e7a6d65e9f6d2b8ab72b7fed8f306a9dccd45290%2Fe0b3136fe6d830ca69fec42738b3e32c715411c3e5adaa4f6c5a8f191183046d.png?alt=media" alt=""><figcaption></figcaption></figure></div>

{% endtab %}

{% tab title="Install custom NPM packages for program widgets" %}
If your program has a custom widget that doesn’t use our components, then you can install a custom package.

1. In the left navigation menu, select ![](https://impact-1.gitbook.io/docs/emvxfLrwrlacc4y3y02Y/~gitbook/image?url=https%3A%2F%2F4048883401-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwMLlMoFBtKJa8ptd3zaw%252Fuploads%252Fgit-blob-230534471fef5f40808e921e41ee44e4a06ded03%252Fe6cb9548999afdc1ed3ce4942e4cb5b45b5cecbd323267aac2a7cd1915fccc09.svg%3Falt%3Dmedia\&width=300\&dpr=3\&quality=100\&sign=71dd50ef\&sv=2) **\[Engage] → Content**.
2. On the widget card, select **Edit widgets**.
3. Under *Program Widgets*, select a widget.

<div data-with-frame="true"><figure><img src="https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-d12dd97bf9d6ddac5c20a1ea5ace7b67457c08ed%2F44562617664627c26dca2d91c6aa783b2bc3e7eaaf0b3abbdeec8001c73893d0.jpg?alt=media" alt=""><figcaption></figcaption></figure></div>

1. In the left navigation menu, select **Packages**.
2. Select ![](https://4048883401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwMLlMoFBtKJa8ptd3zaw%2Fuploads%2Fgit-blob-3ca70a1ff22f0720bfb8c9e284c7d8178e3a547b%2Fb6a126b0775291b814c5a97f83039ef72ba42d6d02b0fe20f4790213ea01961e.svg?alt=media) **Add package**.
3. Select **Add from NPM**.
4. Enter the package name, version, and file path.
5. Select **Add**.
   {% endtab %}
   {% endtabs %}

Learn more about how to [Customize Program Widgets](https://help.impact.com/brand/advocate-program/manage-advocate-participant-experiences/widget-experiences/customize-program-widgets)
