Skip to content
67

Npm Security Best Practices

Collection of npm package manager Security Best Practices

1.3k stars42 forks5 entriesLast push May 24, 2026 (5 months ago)License Apache-2.0

This page lists names, links and short descriptions. The original list on GitHub is the source and belongs to its authors.

1. Disable Post-Install Scripts >1.2. Bun disable post-install scripts

Bun disables postinstall scripts by default

and maintains its own internal allow-list of packages that are allowed to run postinstall scripts. Bun allows an "escape hatch" to allow postinstall scripts for specific trusted packages via a trustedDependencies field in package.json.

1. Disable Post-Install Scripts >1.3 Run the scripts you need

Use

to create an allowlist of specific positions in your dependency graph where scripts are allowed.

In 2 lists

3. Install with Cooldown >3.2. Snyk automated dependency upgrades with cooldown

Snyk automatically includes a built-in cooldown period

for dependency upgrade Pull Requests. Snyk does not recommend upgrades to versions that are less than 21 days old to avoid:

10. Work in Dev Containers

Development containers

(dev containers) provide an isolated, sandboxed environment that limits the blast radius of supply chain attacks. When malicious npm packages execute during installation or runtime, they are confined to the container environment rather than having access to your entire host system where you may…

15. Consult the Snyk Security Database for package health

Visit the Snyk Security Database and search for the npm package you are evaluating. For example, here is the health…

See category
98

Awesome Privacy

pluja/awesome-privacy

Awesome Privacy - A curated list of services and alternatives that respect your privacy because PRIVACY MATTERS.

Fresh★ 20k535 entriesPushed 2 days ago
98

Awesome-Selfhosted

awesome-selfhosted/awesome-selfhosted

A list of Free Software network services and web applications which can be hosted on your own servers

Fresh★ 338k1320 entriesPushed 8 days ago
94

Awesome Privacy

lissy93/awesome-privacy

🦄 A curated list of privacy & security-focused software and services

Fresh★ 10k472 entriesPushed yesterday
93

Awesome Bug Bounty Tools

vavkamil/awesome-bugbounty-tools

A curated list of various bug bounty tools

Fresh★ 6.5k397 entriesPushed 14 days ago
92

Awesome Claude Video Skills

zhuyansen/awesome-claude-video-skills

Open-source skills and toolkits that let Claude Code, Codex and other coding agents make video. 180 repos by type, each security-graded. English / 中文.

Fresh★ 2.2k506 entriesPushed today
91

Awesome Open Source SaaS Alternatives

Anil-matcha/awesome-open-source-saas-alternatives

Open source alternatives to paid SaaS apps: Notion, Slack, Auth0, Vercel and more. Curated list with licenses and GitHub stars.

Fresh★ 3.5k207 entriesPushed today