npm and apm, side by side.
You keep bun, npm, pnpm or yarn. apm runs in front of them and passes through any command it doesn’t know.
An undo button
Yank or revoke any version, any time. One command cleans up a stolen token.
A score per version
Out of 100, every lost point tied to a file and line.
Checks before install
The whole dependency tree, before bun or npm touches disk.
Row by row.
When something goes wrong
Hacked version
npmUnpublish only within 72h and with no dependents. Deprecate still installs.
apmYank hides it from new installs. Revoke returns 410 and a critical advisory. Any time.
Stolen token
npmRotate tokens, then hunt down the bad versions by hand.
apm
apm incident --since revokes every token and version since then, with a dry run.Knowing what you install
Safety signal
npm
npm audit lists known CVEs only. Silent on new malware.apmScore out of 100 with file:line evidence and a “not checked” list.
Granularity
npmThird-party scores rate the whole package.
apmEvery version scored. A new
curl | sh or risky dependency drops it.Metadata
npmTrusts the publish request, so install scripts can hide.
apmRead from the tarball’s package.json. A mismatch is refused.
Install check
npmInstalls first, audit afterwards.
apm
apm add and apm x check the whole tree first.Fresh releases
npmNo cooldown by default.
apm24h cooldown:
apm add warns about a version under a day old, --strict refuses it, and /~safe/ leaves it out for any client, with a score floor of 40.Publishing
The flow
npmTwo logins, 7-day tokens, misleading 404 or
ENEEDAUTH.apmFile list and score preview before upload, then a person approves the version with a passkey or 2FA.
Mistakes
npmShips secrets
.npmignore missed and a main that doesn’t exist.apmBlocks secrets and missing main, types or bin. The registry checks again.
Names
Typosquats
npmBlocks punctuation variants only.
apmRefuses one-edit look-alikes of popular packages. Search shows them next to your query.
Dependency confusion
npmUnscoped names are first come, first served.
apmNew packages are scoped to your GitHub login. A bare name always means the npm package.
Compatibility
Bun
npmJust another client.
apmOne
bunfig.toml line makes plain bun install refuse revoked and confirmed-malicious versions and warn about low scores.Coverage
npmEverything on npm.
apmSame packages, proxied from npm and scored on first request.
Where npm still wins.
Scale and trust
npm is the established registry for the JavaScript ecosystem. apm is new, and serves npm’s packages through its proxy.
Trusted publishing and provenance
npm has OIDC and provenance. apm has neither yet.
Account security
Both have passkeys and 2FA. npm’s account system has years of use behind it; apm’s is new.
Hosting your code
apm can’t take a name that already exists on npm.