← Back to Product Feed

Hacker News Show HN: DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs

A 'one-command fix' for common package manager security configurations (min-release-age, ignore-scripts, etc.), simplifying supply chain attack prevention.

17
Traction Score
0
Discussions
Jun 2, 2026
Launch Date
View Origin Link

Product Positioning & Context

AI Executive Synthesis
A 'one-command fix' for common package manager security configurations (min-release-age, ignore-scripts, etc.), simplifying supply chain attack prevention.
DepsGuard addresses a critical, yet often neglected, developer pain point: consistent application of package manager security best practices. The tool automates the configuration of 'min-release-age' and 'ignore-scripts' across multiple ecosystems (NPM, pnpm, yarn, bun, uv), directly mitigating common supply chain attack vectors. Its 'one-command fix' positioning targets developer friction, acknowledging that manual configuration across disparate systems is a barrier to adoption. While not a comprehensive Software Composition Analysis (SCA) solution, DepsGuard provides a foundational layer of defense by preventing the installation of newly published malicious packages within a critical window. The author's background as a co-founder/CTO at an appsec startup lends credibility. This tool offers immediate, tangible value for organizations seeking to enhance their software supply chain security posture with minimal overhead.
I kept seeing every npm/pnpm/yarn/bun/uv supply chain post end with the same advice (set a minimum release age, turn off install scripts), and while I know cooldowns are "controversial", they do work. But even if you convince people that they should set cooldowns, it seems many don't end up following through, not sure why, maybe because it means hand-editing five config files in five formats with five different time units, or perhaps the "it won't happen to me" syndrome (or "I'll do it later, it seems complicated" where it's actually very simple). So I created a tool that checks what you have set and fixes it for you. I looked for an existing one first and couldn't find it. It started as a small weekend project and turned into a small research project on the nuances of cooldowns across package managers. Not a proof of P vs NP, but a small convenience that can save you and your loved ones from the next supply chain attack. I've raised this in a couple of HN threads since (https://news.ycombinator.com/item?id=47878158 and https://news.ycombinator.com/item?id=48156360) but never actually did a Show HN for the tool itself.If you know how to edit your ~/.npmrc, which settings apply to npm vs pnpm, and which one wants minutes vs days vs seconds, you probably don't need this. But if you vibe code and just want a one click fix (or you have a PhD in CS from Stanford, ex-FAANG, started 3 YC companies, now work at Anthropic, and still just want a one click fix), read on.DepsGuard is a single Rust binary, no runtime deps, MIT. Run depsguard and it scans your user-level and repo-level configs, shows a table of what is and isn't set, you pick what to change, hit d for the diff, and apply. It writes a timestamped backup first and depsguard restore rolls it back. depsguard scan is read-only if you just want the report.The settings are the simple ones that work: min-release-age / minimumReleaseAge (npm, pnpm, yarn, bun, and uv all name it differently and use days vs minutes vs seconds, which is half of why doing this by hand is annoying), ignore-scripts, and on newer pnpm block-exotic-subdeps, trust-policy: no-downgrade, and strict-dep-builds. It also handles Renovate and Dependabot cooldowns.The whole thing is a bet on timing. The malicious @bitwarden/cli 2026.4.0 was up ~19 hours and got 334 installs. axios was pulled in ~3h, ua-parser-js in hours, node-ipc in days. A 7-day gate means your installer never resolves any of those, they're gone before the window even opens. It does nothing for the slow ones (event-stream sat 2+ months), and it's not SCA, it won't scan your existing lockfile for known CVEs, that's a different layer.Disclosure: I'm a co-founder and CTO at Arnica (a commercial appsec startup) and built this because putting the same recommendations on each blog post felt like yelling at the clouds. It's free and MIT, no account, no telemetry. I'm also not the only one who had the idea (didn't know at the time), cooldowns.dev does the cooldown part across more ecosystems with a shell helper and is worth a look. DepsGuard covers fewer ecosystems but adds the other settings and the diff/backup/restore flow.If you want to try it: cargo install depsguard, or brew/apt/winget/scoop, all in the README.https://github.com/arnica/depsguard (full settings table and FAQ at depsguard.com)Is this an overkill that could have been a shell script? Probably yes (but I wanted windows support, why not).Did it save someone from a supply chain attack? Also probably yes.Do I know personally someone that without it wouldn't have bothered changing their settings after repeatedly asking, but eventually did it when I gave them depsguard? Absolutely yes.
NPM pnpm yarn bun uv supply chain attack min-release-age ignore-scripts

Related Ecosystem & Alternatives

Discover adjacent products, open-source repositories, and developer tools sharing similar technical architecture.

Deep-Dive FAQs

What is DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs?
DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs is analyzed by our AI as: A 'one-command fix' for common package manager security configurations (min-release-age, ignore-scripts, etc.), simplifying supply chain attack prevention.. It focuses on DepsGuard addresses a critical, yet often neglected, developer pain point: consistent application of package manager security best practices. The t...
Where did DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs originate?
Data for DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs was aggregated directly from the Hacker News community ecosystem, representing raw developer and early-adopter sentiment.
When was DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs publicly launched?
The initial public indexing or launch date for DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs within our tracked developer communities was recorded on June 2, 2026.
How popular is DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs?
DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs has achieved measurable traction, logging over 17 traction score and facilitating 0 recorded discussions or engagements.
Which technical categories define DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs?
Based on metadata extraction, DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs is categorized under topics such as: NPM, pnpm, yarn, bun.
What are some commercial alternatives to DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs?
Our semantic intelligence engine identifies potential commercial alternatives in the SaaS space, such as Teable 3.0, which offers overlapping value propositions.
How does the creator describe DepsGuard – One command to harden NPM/pnpm/yarn/bun/uv configs?
The original author or development team describes the product as follows: "I kept seeing every npm/pnpm/yarn/bun/uv supply chain post end with the same advice (set a minimum release age, turn off install scripts), and while I know cooldowns are "controversial", they do wo..."

Community Voice & Feedback

No active discussions extracted yet.

Discovery Source

Hacker News Hacker News

Aggregated via automated community intelligence tracking.

Tech Stack Dependencies

No direct open-source NPM package mentions detected in the product documentation.

Media Tractions & Mentions

No mainstream media stories specifically mentioning this product name have been intercepted yet.

Deep Research & Science

No direct peer-reviewed scientific literature matched with this product's architecture.