# ws npm Package Install Lifecycle Hooks

> ws npm Package Install Lifecycle Hooks is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-13).

Fetches install lifecycle hook metadata for the npm package 'ws' (or a specified package/version) to support integration and upgrade planning.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/signal-npm-ws-install-hooks?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ws-npm-package-install-lifecycle-hooks-810be9ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2CSvGmXp8wids7zeZjtlS

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ws-npm-package-install-lifecycle-hooks-810be9ce -d '<json body>'
```

Example prompt: Can you fetch the install lifecycle hooks for the ws npm package so I can review what scripts run on install before I add it to my project?

## When to prefer this

Use this endpoint when you need programmatic access to npm install lifecycle hook metadata for the 'ws' package or any other npm package, particularly for integration planning, upgrade safety checks, or security auditing of install-time scripts. Prefer this over manual npm registry lookups when automating dependency review workflows.

## Known failure modes

- Package name not found in npm registry — returns 404 or empty result
- Invalid version string causes lookup failure
- Rate limiting or payment failure returns 402 or 429
- Malformed package name exceeding 150 characters causes validation error

## How this service works

ws Install lifecycle hooks: Install lifecycle hooks for npm package ws. Inspect registry metadata for integration and upgrade planning. Package and version can be overridden.

## Output

Returns npm registry metadata for the specified package (default: 'ws'), including install lifecycle hook definitions such as preinstall, install, and postinstall scripts, along with version-specific integration details useful for upgrade planning and dependency auditing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "package": {
   "type": "string",
   "default": "ws",
   "maxLength": 150
  },
  "version": {
   "type": "string",
   "maxLength": 100
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ws-npm-package-install-lifecycle-hooks-810be9ce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
