opm install
Install packages with on-chain verification, CVE checks, and signature validation.Usage
opm i, opm add
Verification Pipeline
- CVE check — Queries OSV for known vulnerabilities. CRITICAL CVEs block install.
- On-chain score — Fetches aggregate risk from OPMRegistry. Score ≥ 70 blocks install.
- Signature verification — Verifies ECDSA signature against tarball checksum.
- ChainPatrol — Blocklist fallback for packages not in the registry.
npm install.
ENS Version Resolution
When you specify an ENS name as a version (e.g.express@djpai.eth), OPM:
- Resolves the ENS name to an Ethereum address
- Verifies the author is registered on-chain
- Fetches the safest version from the registry
- Checks for CVEs and auto-bumps to a safe version if needed
- Updates
package.jsonwith the resolved version
No environment variables needed. Defaults for RPC and contract address are built-in.