NodeJS : 20 Libraries Cheatsheet

NodeJS : 20 Libraries Cheatsheet

That may you can use in your NodeJS project

In this article, we will explore some popular Node.js libraries that can help you build efficient and scalable applications. These libraries are divided into categories based on their functionality.

Library / CategoryDescriptionWebsite/Documentation & how to install
1. Express Web ServersFlexible and minimalist web frameworkhttps://expressjs.com/
npm install express
2. NestJS RESTful APIsTypeScript-based framework for building scalable, enterprise-grade APIshttps://nestjs.com/
npm install --save @nestjs/common @nestjs/core
3. Mongoose Mongo DatabaseObject Modeling Mapper (ODM) for MongoDBhttps://www.mongodb.com/developer/languages/javascript/getting-started-with-mongodb-and-mongoose/
npm install mongoose
4. Sequelize SQL Database DriversORM for various databases (MySQL, PostgreSQL, SQLite, etc.)https://sequelize.org/
npm install sequelize
5. MoleculerJS Microservices FrameworkFast and modern framework for building microserviceshttps://moleculer.services/
npm install moleculer
6. Passport.js AuthenticationMiddleware for authentication strategies (OAuth, JWT, etc.)https://www.passportjs.org/
npm install passport passport-jwt (for JWT example)
7. Express-authorization AuthorizationFlexible authorization middleware for Expresshttps://github.com/ylorenzana/node-express-api-auth
npm install express-authorization
8. Multer File SystemMiddleware for file uploads and parsinghttps://blog.logrocket.com/multer-nodejs-express-upload-file/
npm install multer
9. Joi ValidationSchema-based validation for datahttps://www.npmjs.com/package/joi
npm install joi
10. Jest TestingTesting framework for JavaScript and TypeScripthttps://jestjs.io/
npm install --save-dev jest
11. EJS TemplatingEmbedded JavaScript templating enginehttps://www.npmjs.com/package/ejs
npm install ejs
12. Handlebars TemplatingLogicless templating enginehttps://handlebarsjs.com/
npm install handlebars
13. Nodemailer EmailSend email from Node.js applicationshttps://www.npmjs.com/package/nodemailer
npm install nodemailer
14. PM2 DeploymentProcess manager for Node.js applicationshttps://pm2.io/
npm install -g pm2
15. Winston LoggingLogging library with various transports and formatshttps://www.npmjs.com/package/winston
npm install winston
16. Sharp Image ProcessingHigh-performance image processing libraryhttps://www.npmjs.com/package/sharp
npm install sharp
17. Socket.io WebSocketsReal-time communication libraryhttps://socket.io/
npm install socket.io
18. Bull Background TasksQueueing system for background jobshttps://www.npmjs.com/package/bull
npm install bull
19. Redis CachingIn-memory data store for caching and messaginghttps://redis.io/
(Requires separate installation)
20. Apollo Server GraphQLGraphQL server frameworkhttps://www.apollographql.com/docs/apollo-server/
npm install apollo-server

Did you find this article valuable?

Support The art of Code by becoming a sponsor. Any amount is appreciated!