nestjs VS typeorm

Compare nestjs vs typeorm and see what are their differences.

nestjs

A collection of badass modules and utilities to help you level up your NestJS applications πŸš€ (by golevelup)

typeorm

TypeORM module for Nest framework (node.js) πŸ‡ (by nestjs)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
nestjs typeorm
4 1
2,041 1,830
3.5% 2.1%
7.9 9.5
10 days ago 6 days ago
TypeScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

nestjs

Posts with mentions or reviews of nestjs. We have used some of these posts to build our list of alternatives and similar projects.
  • Are there any guides for message brokers in a traditional NestJS REST app?
    1 project | /r/Nestjs_framework | 13 Apr 2022
    When you're going to use RabbitMQ I would advise to use the RabbitMQ library at https://github.com/golevelup/nestjs. It's way more flexible than the default RabbitMQ microservice.
  • Providing Providers to Dynamic NestJS Modules
    1 project | dev.to | 27 Jul 2021
    For this, I'm going to be using a package called @golevelup/nestjs-modules to help with the creation of the dynamic module. Instead of having to set up the entire forRoot and forRootAsync methods, we can extend a mixin and let the package take care of the setup for us. everything in this article will work without the package, I just like using it for the sake of simplicity. So, lets dive into setting up our AuthModule to be a dynamic module. First we need to create our injection token for the options
  • How to parse the raw body of a request in a NestJS controller
    1 project | dev.to | 19 Jun 2021
    import { Injectable, NestMiddleware } from '@nestjs/common' import { json } from 'body-parser' /** * Copied this middleware to parse the raw response into a param to use later * from https://github.com/golevelup/nestjs/blob/master/packages/webhooks/src/webhooks.middleware.ts */ @Injectable() export class RawBodyMiddleware implements NestMiddleware { public constructor() {} public use(req: Request, res: Response, next: () => any): any { json({ verify: (req: any, res, buffer) => { if (Buffer.isBuffer(buffer)) { const rawBody = Buffer.from(buffer) req['parsedRawBody'] = rawBody } return true }, })(req, res as any, next) } }
  • What are some good practises for mocking providers in tests
    1 project | /r/Nestjs_framework | 28 Apr 2021
    The easiest thing to do is just mock all of a services methods with jest mock functions. I like to do that with this library: https://github.com/golevelup/nestjs/tree/master/packages/testing

typeorm

Posts with mentions or reviews of typeorm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-06-27.

What are some alternatives?

When comparing nestjs and typeorm you can also consider the following projects:

shopify-api-node - Shopify Admin API Library for Node. Accelerate development with support for authentication, graphql proxy, webhooks [Moved to: https://github.com/Shopify/shopify-api-js]

typescript-clean-architecture - It is my attempt to create Clean Architecture based application in TypeScript.

stompjs - Javascript and Typescript Stomp client for Web browsers and node.js apps

-Building-a-mongodb-migration-system-for-NestJS-with-mongoose - A dev.to article on NestJS, mongoose and database migrations!

ultimate-backend - Multi tenant SaaS starter kit with cqrs graphql microservice architecture, apollo federation, event source and authentication

typeorm-transactional-cls-hooked - A Transactional Method Decorator for typeorm that uses cls-hooked to handle and propagate transactions between different repositories and service methods. Inpired by Spring Trasnactional Annotation and Sequelize CLS

hasura-backend-plus - πŸ”‘Auth and πŸ“¦Storage for Hasura. The quickest way to get Auth and Storage working for your next app based on Hasura.

arangojs - The official ArangoDB JavaScript driver.

amplication - πŸ”₯πŸ”₯πŸ”₯ Open-source backend development platform. Build production-ready services without wasting time on repetitive coding.

nest-e-commerce-boilerplate - Backend for Ecommerce platform using Nest + PostgreSQL + TypeORM

porn-vault - πŸ’‹ Manage your ever-growing porn collection. Using Vue & GraphQL

nestjs-ioredis - IORedis module for Nest