npm · AsyncAPI Specification
npm Hooks Events
Version 1.0.0
The npm Hooks event system delivers HTTP POST payloads to subscriber endpoints whenever changes occur in the npm registry. Hooks can be configured to watch for changes to individual packages, all packages within a scope, or all packages published by a specific npm user. Each payload is signed with a shared secret using HMAC SHA-256, and the signature is included in the x-npm-signature header for verification. Note that npm hooks services have been deprecated as of July 2024.
View Spec
View on GitHub
PackagesJavaScriptNode.jsPackage ManagementRegistrySecurityAsyncAPIWebhooksEvents
Channels
/webhook
Receive an npm registry change event
Receives HTTP POST payloads from the npm registry when a watched entity changes. Each delivery includes an x-npm-signature header containing an HMAC SHA-256 signature of the payload body using the shared secret configured during hook creation.
Messages
PackageChanged
Package Changed
Sent when a package is modified in any way.
PackagePublished
Package Published
Sent when a new version of a package is published to the registry.
PackageUnpublished
Package Unpublished
Sent when a package version is unpublished from the registry.
OwnerChanged
Owner Changed
Sent when the maintainers or owner of a package changes.
DistTagChanged
Dist-Tag Changed
Sent when a distribution tag is added, modified, or removed on a package.
DeprecationChanged
Deprecation Changed
Sent when a package version is deprecated or undeprecated.
StarChanged
Star Changed
Sent when a user stars or unstars a package.
Servers
https
subscriber
{subscriberUrl}
The subscriber's HTTP endpoint that receives webhook payloads. This URL is configured when creating a hook subscription.