𝗛𝗼𝘄 𝗧𝗼 𝗘𝘃𝗮𝗹𝘂𝗮𝘁𝗲 𝗔𝗻 𝗡𝗣𝗠 𝗣𝗮𝗰𝗸𝗮𝗴𝗲

Running npm install adds stranger's code to your production app. This code accesses your files. It reads your environment variables. It steals your data. You trust a stranger with your infrastructure.

Stars and downloads do not prove a package is safe. Supply chain attacks are common. Attackers hijack popular packages. AI tools suggest fake package names. This is slopsquatting. Verify every package an LLM suggests.

Use this process to pick safe packages.

Ask the first question: do you need this dependency? If the package disappears tomorrow, how hard is it to replace? If the answer is hard, the risk is high. If you need one helper function, write it yourself.

Check the maintenance:

Verify the source:

Check the quality:

If you have five minutes, check these three things:

Source: https://dev.to/gkoos/how-to-evaluate-an-npm-package-2026-edition-e8j