> For the complete documentation index, see [llms.txt](https://resmocom.gitbook.io/product/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resmocom.gitbook.io/product/integrations/npm-integration.md).

# NPM Integration

<figure><img src="/files/uSrtd5ioZtWI3LXXM6wo" alt=""><figcaption></figcaption></figure>

Resmo's integration with NPM streamlines resource management, provides auditing capabilities, optimizes package handling, and boosts team collaboration for improved security and efficiency.

### What does Resmo offer to NPM users?

* Collect and query user accounts, teams, and roles within your NPM organization, enhancing operational efficiency.
* Track user activities, package publishing, and downloads, providing crucial data for auditing and analysis.&#x20;
* Analyze package metadata, dependencies, and usage patterns, thereby optimizing package management and identifying potential vulnerabilities or outdated packages.&#x20;
* Receive real-time alerts of changes and security policy violations in your NPM organization.

### How does the integration work?

Resmo employs APIs to execute initial polling and gather pre-existing NPM resources. After this initial data collection, it receives updates and modifications in real-time, using webhooks and consistent polling.

#### Available resources

{% embed url="<https://resources.resmo.com/npm>" %}

### Integration Walkthrough

#### How to install

1. Select NPM from your Integrations page on Resmo.
2. Click the Add Integration button from the bottom right corner of the opening modal.

<figure><img src="/files/jwhogWFCsGQHvgKDgTEP" alt=""><figcaption></figcaption></figure>

3. Head over to your NPM account on a new tab. Click on your Profile -> Access Tokens.
4. Generate a new token.

<figure><img src="/files/7S4nfXciuvrUU3VxfJT1" alt=""><figcaption></figcaption></figure>

* Choose either Granular Access Token or Classic Token option.&#x20;
* Select "Read Only. "
* Select Packages as you like. Then, click Generate.

<figure><img src="/files/9bcpXfNerIGzMzjvRQRY" alt=""><figcaption></figcaption></figure>

* You can view our Organization names from your profile -> Organizations.

<figure><img src="/files/3RyUdSskzoUtS0uykoaU" alt=""><figcaption></figcaption></figure>

5. Copy and paste the generated access token on the related field on your Resmo NPM integration screen.

<figure><img src="/files/99DSYzhz5tHI9BZNvmCu" alt=""><figcaption></figcaption></figure>

6. Hit the Create button.

#### How to uninstall

1. Select NPM from your Integrations page.
2. Navigate to the Connected Integrations tab and select the account you want to remove.
3. You can either disable the integration temporarily and enable it back later or delete it permanently.&#x20;
4. Click the related button (Disable/Delete)from the top right depending on your choice.

<figure><img src="/files/nfSKgjYZ874d4hrrAIJi" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://resmocom.gitbook.io/product/integrations/npm-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
