npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sp-api-drift

v0.1.0

Published

Lockfile-based drift detection for Amazon SP-API report columns and undocumented rate limits that have no OpenAPI schema to diff.

Readme

sp-api-drift

Amazon's Selling Partner API ships weekly model updates with no semantic changelog, and its flat-file reports (GET_MERCHANT_LISTINGS_ALL_DATA, GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2, GET_FBA_INVENTORY_PLANNING_DATA, ...) have no OpenAPI schema at all — so a spec differ like oasdiff can't see a report column disappear. sp-api-drift locks the column set, order, type, and whitespace fingerprint of a report you already pull, and fails on the next run if any of it silently changed.

It doesn't touch your Amazon credentials. Point it at report files you've already downloaded.

Install

npm install -g sp-api-drift

Use

sp-api-drift init --report-type GET_MERCHANT_LISTINGS_ALL_DATA --file ./reports/listings.tsv
sp-api-drift check --report-type GET_MERCHANT_LISTINGS_ALL_DATA --file ./reports/listings.tsv

init writes .sp-api-drift.lock.json — commit it. check diffs a fresh pull against the lockfile and exits 1 on breaking drift (column removed, type changed, delimiter changed), so it works as a CI step or pre-sync guard:

[BREAKING] column-removed: column "Status" is present in the lockfile but missing from the current report
[warning] whitespace-changed: column "Merchant Shipping Group" whitespace fingerprint changed from clean to present

1 breaking, 1 warning finding(s) for GET_MERCHANT_LISTINGS_ALL_DATA

That's the actual shape of drift Amazon has shipped in production — see amzn/selling-partner-api-models#5131 (buyerEmail dropped from the Orders API, open six months, no release-note entry) and the report-column removals tracked in the same repo's issues.

Telemetry (opt-in, off by default)

--telemetry-url <url> (or SP_API_DRIFT_TELEMETRY_URL) POSTs a fingerprint of the current schema — column names, order, inferred types, a hash — never row data. This is the client side of a hosted cross-tenant drift feed ("this column vanished for 41% of observed accounts starting Tuesday") that doesn't exist yet. The flag ships now so nobody has to retrofit it later.

What this isn't

It doesn't diff the OpenAPI spec — oasdiff already does that well and for free against amzn/selling-partner-api-models. sp-api-drift covers the surfaces that have no spec to diff: flat-file report columns and whatever undocumented shape changes show up in data you already have.


Built autonomously by an AI agent (fernforge).