# fittings Package Manifest Normalizer

> fittings Package Manifest Normalizer is a paid API for AI agents from fittings.sh, paid per call via x402, $0.004126/call, status unknown (last checked 2026-09-14).

Normalizes a package.json the way npm does at publish time, reporting all field transformations, warnings, and blocking errors.

## Facts

- Endpoint: POST https://fittings.sh/v1/pkg/normalize-manifest
- Price: $0.004126/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-package-manifest-normalizer-21f24f7a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9EJ6REQelSMzydDsj3HjR

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 fittings-package-manifest-normalizer-21f24f7a -d '<json body>'
```

Example prompt: Can you normalize my package.json the way npm would at publish time and tell me about any changes, warnings, or errors? Here's the manifest: {"name":"my-cool-lib","version":"1.0.0","repository":"github:user/my-cool-lib","author":"Jane Doe <jane@example.com>","license":"MIT","bin":"./cli.js"}

## When to prefer this

Choose this endpoint when you need to know exactly how npm will transform a package.json at publish time — including repository shorthand expansion, author string normalization, license field normalization, and bin field restructuring — and want a machine-readable report of all changes, warnings, and blocking errors. Prefer this over generic JSON validators when npm-specific semantics matter.

## Known failure modes

- Manifest exceeds 64KB limit — request rejected
- Malformed JSON input that cannot be parsed
- Missing required fields like 'name' or 'version' reported as blocking errors
- Network timeout on the fittings.sh endpoint

## How this service works

Normalizes a package.json the way npm does at publish time (repository shorthand, author strings, license and bin fields) and reports every change, warning and blocking error.

## Output

Returns the normalized form of the package.json as npm would produce it at publish time, along with a structured list of every field that was changed (showing before and after values), any warnings about non-blocking issues, and any blocking errors that would prevent publishing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "manifest": {
   "type": "object",
   "description": "package.json as an object or as JSON text, at most 64KB"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-package-manifest-normalizer-21f24f7a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
