# pg npm Package Install Lifecycle Hooks

> pg 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-17).

Retrieves install lifecycle hook metadata for the npm package 'pg' (PostgreSQL client), useful for integration and upgrade planning.

## Facts

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

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 pg-npm-package-install-lifecycle-hooks-6a09a3ac -d '<json body>'
```

Example prompt: Can you check the install lifecycle hooks for the pg npm package — specifically what preinstall, install, and postinstall scripts it runs — so I can figure out if it's safe to add to our locked-down CI environment?

## When to prefer this

Use this endpoint when you need to inspect what lifecycle scripts (preinstall, install, postinstall) the pg PostgreSQL npm client runs during installation, especially before adding it to a new environment, upgrading versions, or performing a security audit. Prefer this over manually querying the npm registry when you want structured, pre-parsed hook data with integration planning context.

## Known failure modes

- Package name not found in registry — returns error if an invalid package name is supplied
- Version not found — if the specified version does not exist in the npm registry, the call may return an error or empty result
- Registry unavailability — npm registry downtime could cause lookup failures
- Payment failure — x402 payment of $0.01 USDC must succeed before the response is returned

## How this service works

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

## Output

Returns install lifecycle hook metadata from the npm registry for the pg package, including preinstall, install, and postinstall script definitions, along with registry metadata relevant for integration planning and version upgrade decisions.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pg-npm-package-install-lifecycle-hooks-6a09a3ac/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)
