# knex NPM Install Lifecycle Hooks

> knex NPM 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 from the npm registry for the knex package to support integration and upgrade planning.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/signal-npm-knex-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/knex-npm-install-lifecycle-hooks-6a3ff740
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dHnluWNYCwGJ2bM9L5yFv

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 knex-npm-install-lifecycle-hooks-6a3ff740 -d '<json body>'
```

Example prompt: Can you check the npm install lifecycle hooks for the knex package — specifically what preinstall or postinstall scripts it defines — so I can review them before adding it as a dependency?

## When to prefer this

Use this endpoint when you need to programmatically inspect the lifecycle hooks of the knex npm package before integrating or upgrading, particularly in automated dependency auditing, CI/CD pipelines, or agent-driven package compliance workflows. Prefer this over manually querying the npm registry when you want a structured, pay-per-call API response without managing registry authentication.

## Known failure modes

- Package version not found in registry — returns error if specified version does not exist
- npm registry unavailable — upstream timeout or connectivity issue
- Invalid package name or version string — validation error returned
- Rate limiting from npm registry — upstream throttling

## How this service works

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

## Output

Returns npm registry metadata for the knex package including any defined install lifecycle hooks (preinstall, install, postinstall scripts), version information, and related integration metadata useful for planning upgrades or auditing dependencies.

## Request schema (JSON Schema)

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

## More

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