frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: DepsGuard – one command to harden NPM/pnpm/yarn/bun/uv configs

https://github.com/arnica/depsguard
2•eranation•1h ago
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.

PithTrain – a compact, agent-native MoE training system

https://blog.mlc.ai/2026/06/01/pithtrain-compact-agent-native-moe-training-system
1•ruihangl•1m ago•0 comments

Making Debian or Fedora persistent live images

https://sigwait.org/~alex/blog/2026/05/28/smdBC8.html
1•henry_flower•1m ago•0 comments

Autopoiesis (from Greek αὐτO- (auto) 'self' and ποίησις (poiesis) 'creation')

https://en.wikipedia.org/wiki/Autopoiesis
1•jackbravo•1m ago•0 comments

Pokémon TCG: 30th Celebration – Available September 16 [video]

https://www.youtube.com/watch?v=05w9UVH6zoQ
1•HelloUsername•2m ago•0 comments

How do computers work? (from scratch, no prior knowledge needed) [12 hours long] [video]

https://www.youtube.com/watch?v=rl0jkP9kOMw
1•Imustaskforhelp•2m ago•0 comments

United 767 diverted mid-Atlantic after teenager named Bluetooth speaker BOMB

https://www.airtraveler.club/news/united-767-diverted-bluetooth-bomb-passengers-stranded/
1•raffael_de•3m ago•0 comments

Show HN: AI Sandbox based on FEP now online – no LLM

https://aic-ai-lab.site/login
1•luzifer333•3m ago•0 comments

WordPress malware campaign hides payloads in Steam profiles

https://www.bleepingcomputer.com/news/security/wordpress-malware-campaign-hides-payloads-in-steam...
1•rndsignals•5m ago•0 comments

Apple M1 Chip Deep-Dive [video]

https://www.youtube.com/watch?v=mHEWMiHgyU8
1•zdw•5m ago•0 comments

Nvidia Introduces First PCs Designed for AI Agents

https://www.wsj.com/tech/ai/nvidia-unveils-ai-laptops-rtx-spark-47445bcd
1•01-_-•5m ago•0 comments

Architect MCP and TUI

1•tonycdr•6m ago•0 comments

Hardening VS Code Extensions

https://patches.joao.town/hardening-vscode-extensions/
1•joaopalmeiro•6m ago•0 comments

Qwen3.7-Plus: Multimodal Agent Intelligence

https://qwen.ai/blog?id=qwen3.7-plus
2•meetpateltech•7m ago•0 comments

Crypto Security Pioneer: 'I Now Consider All of DeFi Unsafe'

https://gizmodo.com/crypto-security-pioneer-i-now-consider-all-of-defi-unsafe-2000764097
3•pseudolus•8m ago•0 comments

What five simple habits can do over 35 years

https://en.wikipedia.org/wiki/Caerphilly_Heart_Disease_Study
1•frans•9m ago•1 comments

AI based Software Testing system that works

https://ytest.ai/
1•mchauhanx•12m ago•0 comments

The Attack on Competence

https://deadsimpletech.com/blog/attack-on-competence
3•lproven•13m ago•0 comments

OpenAI's Altman says AI unlikely to lead to 'jobs apocalypse'

https://www.reuters.com/world/asia-pacific/openais-altman-says-ai-unlikely-lead-jobs-apocalypse-2...
1•cdrnsf•13m ago•1 comments

The Finite Work Fallacy – Off-Square

https://offsquare.substack.com/p/the-finite-work-fallacy
1•fkodom•13m ago•0 comments

Superintelligence: The Idea That Eats Smart People (2016)

https://idlewords.com/talks/superintelligence.htm
4•thoughtpeddler•20m ago•0 comments

I Built a Thing

https://github.com/tylrcc/tapeline
2•tylrr•21m ago•0 comments

Stop AI agents from being weaponized through their own memory (OWASP)

https://www.helpnetsecurity.com/2026/06/01/owasp-agent-memory-guard/
2•vgudur297•21m ago•0 comments

Fourth Grade Product Thinking

https://brentfitzgerald.com/posts/fourth-grade-product-thinking/
3•_doctor_love•22m ago•1 comments

Build a Basic AI Agent from Scratch: Tools

https://www.ruxu.dev/articles/ai/build-an-ai-agent-with-tools/
3•ruxudev•23m ago•0 comments

Virtual File Tree VSCode Extension for Developers

https://codeberg.org/hjdesulme/virtual-file-tree
2•hdell49•23m ago•1 comments

NYT Publisher: A.I., Journalism and the Uncertain Future of the Public Square

https://www.nytco.com/press/a-i-journalism-and-the-uncertain-future-of-the-public-square/
2•tysone•23m ago•0 comments

Should you normalize RGB values by 255 or 256?

https://30fps.net/pages/255-vs-256-division/
6•pplanu•26m ago•0 comments

Emergence World: A Laboratory for Evaluating Long-Horizon Agent Autonomy

https://www.emergence.ai/blog/emergence-world-a-laboratory-for-evaluating-long-horizon-agent-auto...
2•amai•28m ago•0 comments

I Hate the Weekends (2017)

https://www.cdahmedeh.net/blog/2017/4/15/why-i-hate-the-weekends
2•downbad_•28m ago•1 comments

I Observed Some Brownian Motion at Home

https://chillphysicsenjoyer.substack.com/p/i-observed-some-brownian-motion-at
2•crescit_eundo•28m ago•0 comments