Safe-install – Docker-first install-time hardening for pip and NPM
Dockerizes pip builds to stop credential theft during install.

Brings Bun-style trusted dependencies to npm without switching package managers.
Security-conscious Node.js developers
Bun install --trust · pnpm
https://www.npmjs.com/package/@gkiely/safe-install
It brings a couple of protections I wanted from npm but are not built in.
Similar to Bun’s trusted dependencies, it lets you disable install scripts by default and define a list of dependencies that are allowed to run build/install scripts:
https://bun.com/docs/guides/install/trusted
It also supports blocking exotic sub-dependencies, similar to pnpm’s `blockExoticSubdeps` setting:
https://gajus.com/blog/3-pnpm-settings-to-protect-yourself-f...
I was hoping npm would eventually add something like this, but it does not seem to be happening soon, so I made a small package for it.
Dockerizes pip builds to stop credential theft during install.
Blocks risky npm installs before they run, unlike npm audit.
Local proxy blocking malware installs before they touch disk.
Treats LLMs as package dependencies for reproducible AI project setups.
Blocks malicious packages at install-time before AI agents execute them on your machine.
Docker isolation + tcpdump catches malicious npm installs before they touch your machine.