How to pick the best NPM packages
Tags: javascript, npm
Published: 2022-03-04 15:10:02

---
title: How to pick the best NPM packages
published: true
date: 2022-03-04 13:20:00 UTC
tags: JS,npm,js
canonical_url: https://webdevwithseb.com/2022/03/04/how-to-pick-the-best-npm-packages/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-pick-the-best-npm-packages
---

Picking the best NPM package is no easy task; there are always too many options to choose form:

- React vs Next vs Vue vs Angular vs Svelte vs …
- Express vs Koa vs Fastify vs Nest vs …
- Sequelize vs Prisma vs TypeORM vs Knex vs …

At the end of the day, all we want is to avoid wasting our precious time learning an obsolete package.

I’m going to share 2 tips to help you pick the best NPM packages for your projects every single time.

## **Tip #1: Stick to What’s Popular**

Choosing popular packages is a very smart move in the NPM ecosystem. Doing so has three powerful outcomes:

- Minimizes the risk of learning an obsolete / dead package
- More opportunities for employment / freelance
- Larger ecosystem of plugins / extensions to build on

![](https://i0.wp.com/webdevwithseb.com/wp-content/uploads/2022/03/New-Project-1.jpeg?resize=580%2C397&ssl=1)
_I’m joking. Angular is a mighty fine framework._

My favorite way to measure adoption of a framework is to search it on [Openbase](https://openbase.com/).

Openbase lets you compare NPM packages. You can browse their weekly downloads, Github stars, active contributors, and reviews.

## Tip #2: Stay Within Your Circle of Competence

In a world where [shiny object syndrome](https://en.wikipedia.org/wiki/Shiny_object_syndrome#:~:text=Shiny%20object%20syndrome%20is%20the,something%20new%20takes%20its%20place.) runs rampant, avoiding the magnetic pull of hype is a superpower. Instead, stay [within your circle of competence](https://en.wikipedia.org/wiki/Circle_of_competence) by using familiar packages.

![](https://i0.wp.com/webdevwithseb.com/wp-content/uploads/2022/03/Untitled-March-3-2022-13.59.jpg?resize=580%2C580&ssl=1)

This is helpful for a couple of reasons:

- Keeps you productive
- Raises the odds of success
- [Builds upon your existing knowledge](https://fs.blog/compounding-knowledge/)

In doing so you avoid the cost of learning a new package. If you stick to what you know, you wont have to scan documentation or watch tutorials.

This keeps you productive & eases the burden of shipping a project.

A good way to stay within your circle of competence is to browse related tools to those you use every day.

- If you know [Vue](https://vuejs.org/) **→** check out [Nuxt](https://nuxtjs.org/)
- If you know [React](https://reactjs.org/) **→** check out [Preact](https://preactjs.com/)
- If you know [Postgres](https://en.wikipedia.org/wiki/PostgreSQL) **→** check out [Supabase](https://supabase.com/)

When in doubt, pick packages that build upon your existing knowledge. You’ll rarely regret it.

## **Conclusion**

The NPM ecosystem is an ever-evolving beast. New packages come and go on a monthly basis. This makes picking the right NPM packages hard, when it doesn’t have to be.

The best JS developers defer to picking what’s popular, and staying within their circle of competence.

If you stick to these two principles you’ll decrease the learning curve of new libraries and frameworks. You will be working smarter, not harder, and your knowledge will compound.

Do this long enough, and you’ll pick the best NPM packages for your next project every single time.

# Want more web dev tips? 

Follow me on [twitter](https://twitter.com/_sbmsr) and subscribe to [my web dev newsletter](https://github.us19.list-manage.com/subscribe?u=3122ad8b8bdaf8335e05ec4fa&id=53643b22fa).

---


The post [How to pick the best NPM packages](https://webdevwithseb.com/2022/03/04/how-to-pick-the-best-npm-packages/) first appeared on [💻 Web Dev With Seb](https://webdevwithseb.com).