All work

3pm

A stolen npm token should not be enough to publish. With 3pm, M-of-N maintainers co-sign the exact tarball hash before a version ships, and the signatures are checked on-chain.

Why

event-stream, ua-parser-js, node-ipc, xz-utils: in each case, one compromised account or maintainer was enough to ship malicious code to everyone downstream. 3pm makes a release require more than one person.

How a release gets approved

  • The CLI packs the package and hashes the exact tarball with SHA-512.
  • M-of-N maintainers sign that hash as an EIP-712 typed signature.
  • Two Solidity contracts on Base Sepolia verify it: an ERC-721 NameRegistry, and a PackageRegistry that checks ECDSA and EIP-1271 signatures with replay-protection nonces.

What a co-signer sees

Before approving, a co-signer gets the diff, a static scan for risky patterns (eval, child_process, outbound HTTP, environment reads), and a plain-English summary generated locally by Gemma 3 through Ollama, so source code never leaves the machine.

On the install side

  • install checks names against 500+ popular packages for typosquats and verifies tarball hashes on-chain.
  • audit checks package-lock.json against osv.dev and exits non-zero on known CVEs, so it can gate CI.
  • A Chrome extension adds a trust badge to package pages on npmjs.com.