NPM specifies an abbreviated metadata format which is requested when the client sets a header, for packages with many versions the metadata can grow quite large.
npm cli version 4.5.0 introduced a more optimized npm package metadata response payload.
If the server receives a special header, Accept: application/vnd.npm.install-v1+json the server ( Nexus ) can optionally return a smaller package metadata response to the client.
The npm client internal to Nexus which fetches remote metadata on behalf of a proxy repository may also be able to utilize this as well when requesting package metadata from a remote. TBD.
Notice the size of package metadata is greatly reduced by sending this header:
- Outbound NPM proxy repo requests support asking remotes for abbreviated metadata
- Inbound NPM repo requests support responding with abbreviated metadata if asked for it