NestJS logo

NestJS

A progressive Node.js framework for building efficient and scalable server-side applications by @kammysliwiec.
2.4K
2.9K
+ 1
326

What is NestJS?

Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming). Under the hood, Nest makes use of Express, but also, provides compatibility with a wide range of other libraries, like e.g. Fastify, allowing for easy use of the myriad third-party plugins which are available.
NestJS is a tool in the Frameworks (Full Stack) category of a tech stack.
NestJS is an open source tool with 65.7K GitHub stars and 7.5K GitHub forks. Here’s a link to NestJS's open source repository on GitHub

Who uses NestJS?

Companies
417 companies reportedly use NestJS in their tech stacks, including kevin., Wellhub, and Colavosalon.

Developers
1843 developers on StackShare have stated that they use NestJS.

NestJS Integrations

refine, Memphis, HyperDX, ShortLoop, and Runnable Workflows are some of the popular tools that integrate with NestJS. Here's a list of all 6 tools that integrate with NestJS.
Pros of NestJS
54
Powerful but super friendly to work with
42
Fast development
40
Easy to understand documentation
36
Angular style syntax for the backend
32
NodeJS ecosystem
31
Typescript
27
Its easy to understand since it follows angular syntax
18
Good architecture
13
Integrates with Narwhal Extensions
12
Typescript makes it well integrated in vscode
8
Graphql support easy
7
Agnosticism
5
Easily integrate with others external extensions
1
Official courses
Decisions about NestJS

Here are some stack decisions, common use cases and reviews by companies and developers who chose NestJS in their tech stack.

Ilkin Mammadli
Needs advice
on
MongoDBMongoDBNestJSNestJS
and
PostgreSQLPostgreSQL

Hello everyone! I'm interested in building a Tinder-like application using NestJS with TypeScript. I'm currently exploring database options that can best support my application's needs. Can you recommend a suitable database and ORM for this type of project?

Thank you in advance for your help!

See more
Needs advice
on
LoopBackLoopBackNestJSNestJS
and
Sails.jsSails.js

We have an existing (Apis only) Rails backend, that by default follows the MVC pattern, (at peaks of 700 requests a second). I am tasked with making the same (read-heavy) application in any JavaScript framework. I was advised to follow the MVC structure. So I am considering these 3 ( Sails.js, LoopBack, NestJS). I get that sails is closest to rails, but that's not particularly a priority.

See more
Jan Vlnas
Developer Advocate at Superface · | 12 upvotes · 324.1K views
Shared a protip
on
AppSignalAppSignalNestJSNestJS
at

Our framework of choice for backend at Superface is NestJS. We also use AppSignal for APM and error tracking. While AppSignal provides some basic integration for Node.js, getting the monitoring to work with Nest was a bit tricky. Check out our blog post on Integrating AppSignal APM with NestJS how we made it work.

See more
Needs advice
on
AdonisJSAdonisJS
and
NestJSNestJS

I'm using AdonisJS and NestJS in two projects! both frameworks are good!

See more
Daison Carino
Senior Software Engineer at Incube8 Pte. Ltd · | 4 upvotes · 315.6K views
Needs advice
on
NestJSNestJS
and
Next.jsNext.js

I would choose Next.js / Nuxt.js or SvelteKit as they're implemented to support the backend that manages cookies/sessions/API/reactive components and props.

The good thing about them is that if ever your app grows with a ton of traffic, you can easily migrate your SSR app and use other programming languages such as Golang or Rust to serve the API.

NestJS is only used for the backend side, however, the backend side of this is already offered from these big 3 (Next/Nuxt/SvelteKit), as these 3 major SSR Frameworks were able to connect from RDB / MongoDB / GraphQL / 3rd Party APIs, you name it!

Regarding websocket / service-worker (PWA) / wasm, those big 3 can do it too

TL;DR: NodeJS is so big, don't complicate your life, make a single route to handle the frontend and backend, migrating to performant environment such as Go/Rust can be done over an api call inside those big 3 Next/Nuxt/SvelteKit.

See more
Bhupal Reddy
back end developer at elixir softlab solutions pvt ltd · | 4 upvotes · 311.5K views
Needs advice
on
LoopBackLoopBack
and
NestJSNestJS

which one is best for enterprise applications LoopBack or NestJS?

See more

NestJS's Features

  • Extensible - Gives you true flexibility by allowing use of any other libraries thanks to modular architecture.
  • Versatile - An adaptable ecosystem that is a fully-fledged backbone for all kinds of server-side applications.
  • Progressive - Takes advantage of latest JavaScript features, bringing design patterns and mature solutions to node.js world.

NestJS Alternatives & Comparisons

What are some alternatives to NestJS?
AdonisJS
It is a Node.js Framework which is highly focused on developer ergonomics, stability and confidence.
FeathersJS
Feathers is a real-time, micro-service web framework for NodeJS that gives you control over your data via RESTful resources, sockets and flexible plug-ins.
Koa
Koa aims to be a smaller, more expressive, and more robust foundation for web applications and APIs. Through leveraging generators Koa allows you to ditch callbacks and greatly increase error-handling. Koa does not bundle any middleware.
LoopBack
A highly-extensible, open-source Node.js framework that enables you to create dynamic end-to-end REST APIs with little or no coding. Connect to multiple data sources, write business logic in Node.js, glue on top of your existing services and data, connect using JS, iOS & Android SDKs.
hapi
hapi is a simple to use configuration-centric framework with built-in support for input validation, caching, authentication, and other essential facilities for building web applications and services.
See all alternatives

NestJS's Followers
2897 developers follow NestJS to keep up with related blogs and decisions.