npm · Capability
npm Hooks API
The npm Hooks API allows developers to subscribe to notifications about changes in the npm registry. Hooks send HTTP POST payloads to a configured URI whenever a package is changed, enabling developers to build integrations that respond to registry events in real time. Users can add hooks to follow specific packages, track all activity of given npm users, or monitor all packages within an organization or user scope. The API provides endpoints for creating, listing, updating, and deleting hook subscriptions. Note that npm hooks services have been deprecated as of July 2024.
What You Can Do
GET
Listhooks
— List webhooks
/-/npm/v1/hooks
POST
Createhook
— Create a webhook
/-/npm/v1/hooks/hook
GET
Gethook
— Get a webhook
/-/npm/v1/hooks/hook/{id}
PUT
Updatehook
— Update a webhook
/-/npm/v1/hooks/hook/{id}
DELETE
Deletehook
— Delete a webhook
/-/npm/v1/hooks/hook/{id}
MCP Tools
listhooks
List webhooks
read-only
idempotent
createhook
Create a webhook
gethook
Get a webhook
read-only
idempotent
updatehook
Update a webhook
idempotent
deletehook
Delete a webhook
idempotent