What actually runs at npm install time

npm v12 turned install scripts off by default, so you now approve them one at a time. This is what that approval queue actually looks like across the registry, measured every day.

Sample of 3,639 packages, 1,000 of them scoped, resolved at 100% coverage. Rebuilt 2026-11-17 by npm-script-lens, run unmodified. Raw output: census.json.

34run an install script, of 3,639
0.93%of the sample
24score HIGH
255.5Ma week · esbuild

Sticking to popular packages does not help

0.0%0.7%1.4%Top 100: 1 of 100 (1.00%), floor 101.9M/week1.00%Top 1001 of 100 · ≥101.9M/wkTop 500: 3 of 500 (0.60%), floor 11.6M/week0.60%Top 5003 of 500 · ≥11.6M/wkTop 1,000: 5 of 1,000 (0.50%), floor 2.2M/week0.50%Top 1,0005 of 1,000 · ≥2.2M/wkTop 2,000: 17 of 2,000 (0.85%), floor 182.3K/week0.85%Top 2,00017 of 2,000 · ≥182.3K/wkFull sample: 34 of 3,639 (0.93%), floor 4/week0.93%Full sample34 of 3,639 · ≥4/wk
Share of each cumulative top-N cut that runs an install script. If install scripts clustered in the unmaintained tail, the left-hand columns would be shorter. They are not.
Show the numbers
SampleDownload floorRun an install scriptShareHIGH or MEDIUM
Top 100101.9M/week1 of 1001.00%1
Top 50011.6M/week3 of 5000.60%3
Top 1,0002.2M/week5 of 1,0000.50%4
Top 2,000182.3K/week17 of 2,0000.85%12
Full sample4/week34 of 3,6390.93%25

The approval queue

Every package in the sample that runs something, ordered by weekly downloads. None of this is an accusation: these are well-known packages fetching a prebuilt binary or building a native addon. They are simply the ones you are now asked to approve, and "what does it actually do" is a per-package question.

PackageDownloads/wkScript CommandRiskSignals
esbuild 0.28.2255.5Mpostinstallnode install.jsHIGHenv, exec, fs, net
@sentry/cli 3.8.223.6Mpostinstallnode ./scripts/install.jsHIGHenv, exec, fs, net
workerd 1.20261110.119.0Mpostinstallnode install.jsHIGHenv, exec, fs, net
vue-demi 0.14.108.0Mpostinstallnode -e "try{require('./scripts/postinstall.js')}catch(e){}"LOWfs
bufferutil 4.2.06.8Minstallnode-gyp-buildHIGHbin, env, exec
mongodb-memory-server 11.3.02.1Mpostinstallnode ./postinstall.jsSAFEnone
node 27.0.0-alpha.0.1.01.4Mpreinstallnode installArchSpecificPackageSAFEnone
tree-sitter-json 0.24.81.1Minstallnode-gyp-buildHIGHbin, env, exec
tree-sitter-cli 0.27.2839.0Kinstallnode install.jsMEDIUMenv, fs, net
oracledb 26.0.0806.3Kinstallnode package/install.jsHIGHobf
@pulumi/docker-build 0.0.23806.2Kinstallnode scripts/install-pulumi-plugin.js resource docker-build 0.0.23HIGHexec
tree-sitter-typescript 0.23.2750.2Kinstallnode-gyp-buildHIGHbin, env, exec
stream-chat 10.0.2496.2Kpostinstallnode -e "require('fs').existsSync('scripts/install-husky.mjs') && import('./scripts/install-husky.mjs')"SAFEnone
@azure/msal-node-extensions 5.6.2391.3Kinstallexit 0SAFEnone
redis-memory-server 0.17.2297.2Kpostinstallnode ./scripts/postinstallHIGHenv, exec, fs, net
tree-sitter-css 0.25.0254.7Kinstallnode-gyp-buildHIGHbin, env, exec
react-native-enriched-markdown 1.1.1214.0Kpostinstallnode postinstall.mjsHIGHenv, exec, exec-local, fs, net
classic-level 3.0.0171.7Kinstallnode-gyp-buildHIGHbin, env, exec
@microsoft/m365agentstoolkit-cli 1.1.19158.2Kpostinstallnode deletePS1.jsHIGHexec
@tree-sitter-grammars/tree-sitter-markdown 0.3.2148.7Kinstallnode-gyp-buildHIGHbin, env, exec
nodent-runtime 3.2.1113.4Kinstallnode build.jsHIGHfs, obf
node-jq 6.3.1102.9Kpreinstallnpm run install-binaryHIGHenv, exec, net
@lightdash/cli 3.275.396.8Kpreinstallbash track.sh started || echo 'skipping preinstall'HIGHexec
@lightdash/cli 3.275.396.8Kpostinstallbash track.sh completed || echo 'skipping postinstall'HIGHexec
rete 2.0.694.7Kpostinstallnode postinstall.jsSAFEnone
zenstack 2.22.365.8Kpostinstallnode bin/post-install.jsLOWenv
tree-sitter-yaml 0.5.058.2Kinstallnode-gyp rebuildHIGHexec, gyp
playwright-ws-trace 1.1.222.8Kpostinstallnode scripts/postinstall.jsLOWenv, fs
swc-plugin-import-meta-env 1.16.2021.9Kpreinstallnpx only-allow pnpmHIGHexec, net
bcrypto 5.5.217.3Kinstallnode-gyp rebuildHIGHexec, gyp
arib-b25-stream-test 0.2.916.8Kpreinstallmake clean && make && mkdir bin && cp src/b25 bin/HIGHexec
qdd-framework 2.9.1115.4Kpostinstallnode install.jsHIGHenv, exec, fs, net
@meteorjs/swc-core 1.16.28.0Kpostinstallnode install.jsHIGHenv, exec, fs
better-auth-studio 1.1.56.3Kpostinstallnode scripts/postinstall.jsSAFEnone
@qooxdoo/framework 7.9.34.1Kpreinstallnode ./addGitHookHIGHenv, exec, fs

What they reach for

execexec: 6161fsfs: 1919envenv: 1818netnet: 1717binbin: 66gypgyp: 44obfobf: 22exec-localexec-local: 22
Capability classes seen across the scripted packages. Capability, not intent: exec means the script spawns a process, which is exactly what a native build does.