Skip to content

Popular Packages

Here is a list of commonly used packages that may be helpful

Application

Package Name Usage
express Fast, minimalist node framework
body-parser Body parsing middleware. Parse incoming request bodies in a middleware before your handlers.
cookie-parser Parse cookie header and populate req-cookies keyed by the cookie names
app-root-path Helps you access application's root path from anywhere in the application without resorting to relative paths.
request Simplest way to make HTTP(s) calls
request-promise Add-on to request with Promise support
uuid Simple, fast generation of RFC4122 UUIDs
config Manage application configurations across environments
yup Request validation

Database

Package Name Usage
mysql
knex Batteries included, multi-dialect sql query builder

Logging

Package Name Usage
morgan Web Server log package
bunyan
pino
winston

Development

Package Name Usage
got Node.js - powerful HTTP request library
ky Browser - tiny and elegant HTTP request library

Local Development

Package Name Usage
nodemon A replacement wrapper for node. Automatically restarts the application on file change detection
dotenv Loads environment variables from .env file into process.env
nonce Returns unique and ever increasing timestamps

Advanced

Package Name Usage
cluster Multi-core server manager for Node.js
pm2 Process manager for node.js with built-in load balancer

Interesting packages to check out

https://www.npmjs.com/package/memwatch-next
https://www.npmjs.com/package/heapdump
https://www.npmjs.com/package/autocannon

Last update: April 16, 2024