Risk 01
The prompt is too thin
npx collapses install and execute, then asks yes or no with almost no context. That is the exact moment a pre-execution evidence gate belongs.
▸ The open-source package execution gate
NPX is becoming a shared executable layer for humans and coding agents. Today the prompt is basically yes or no. safe-npx is a proposed open-source guardrail: resolve the exact bytes, show package evidence, surface risk, then decide before remote code runs.
$ safe-npx create-example@latest Package: [email protected] Integrity: sha512-... Published: 3 hours ago Dependencies: 87 resolved nodes Lifecycle scripts: postinstall Policy: ask before execution Recommendation: elevated risk Continue? [y/N]
I
The problem
Theo's core complaint is simple: when npx is about to run remote code, it shows a package name and version, not the facts you need. Recent publisher, release age, package size, lifecycle scripts, obfuscation, typo-squat risk, and audit status should be visible before execution.
Risk 01
npx collapses install and execute, then asks yes or no with almost no context. That is the exact moment a pre-execution evidence gate belongs.
Risk 02
Developers need a readable summary. Coding agents need JSON policy output: allow, ask, or deny, with reasons they can surface to the user.
Risk 03
Names get squatted, releases get compromised, maintainers make mistakes, and versions can be hard to unwind. The audit unit must include registry, package, version, tarball, integrity, and every dependency node.
II
The prototype
The first version should be a local Rust CLI that delegates resolution to npm, inspects the package before execution, and makes the current NPX prompt useful for both humans and agents.
III
Register interest
Register if you want early access, want to review the threat model, or have package-manager, agent, or security workflows this should support.
IV
Sponsor development
Sponsor interest is for security teams, devtool companies, AI coding platforms, package infrastructure maintainers, and individuals who want the open-source CLI, registry audit trail, docs, and security review funded without turning safe-npx into a closed product.