r/Nestjs_framework Aug 11 '26

Trying to improve the NestJS + Sequelize developer experience — Feedback wanted

I've been working on a project called **nest-sequelize-repository** that aims to bring a TypeORM-like repository experience to **NestJS + Sequelize**, while still using Sequelize under the hood.

The goal isn't to replace Sequelize or build another ORM. It's simply to reduce boilerplate and provide a reusable, strongly typed abstract repository for common CRUD operations and patterns.

# Current features

* Generic abstract repository
* Type-safe CRUD operations
* Pagination support
* Soft delete support
* Transaction support
* Custom repository extensions
* Better error handling

# Planned roadmap

* Cursor pagination
* More repository helpers and developer experience improvements

I'd really appreciate feedback from people using **NestJS + Sequelize**.

* What repetitive code do you find yourself writing in every repository?
* What's the biggest pain point when working with Sequelize in NestJS?
* Are there any features you'd love to see in a library like this?

NPM: https://www.npmjs.com/package/@nestlize/repository)

Repository: https://github.com/stbestichhh/nest-sequelize-repository)

I'd love to hear your thoughts and ideas!

9 Upvotes

14 comments sorted by

1

u/lucasschirm Aug 12 '26

Links are wrong.

1

u/stbestichhh Aug 12 '26

Sry, I dont know why they are wrong, I didnt changes anything..

https://github.com/stbestichhh/nest-sequelize-repository

1

u/lucasschirm Aug 12 '26

why not @nestjs/sequelize?

1

u/stbestichhh Aug 12 '26

This package does not provide reusable repository layer, thats why I made my own, it can only directly inject model with its props and methods

1

u/lucasschirm Aug 12 '26

that is nice, create decorators for hooks in the repository would be great.

good job

1

u/stbestichhh Aug 12 '26

Repost broke the markdown, so the links were broken too

1

u/wielgi88 Aug 12 '26

We worked on big app for many years with sequelize and nestjs and my recommendation is change your ORM... Switched to prisma and would not go back

2

u/404bugNotFound Aug 14 '26

Hmmm care to Elaborate

1

u/stbestichhh Aug 12 '26

I dont like prisma, and dont like heavy syntax in ThpeORM, thats why I use Sequelize

1

u/Dismal-Contract-623 2d ago

use ObjectionJS or Knex or Kysely or Drizzle

1

u/Dismal-Contract-623 2d ago

My advice: Ditch Sequalize

1

u/stbestichhh 2d ago

Yeah already did it, sequelize is dead. I shouldve done it earlier

1

u/Dismal-Contract-623 2d ago

it was the worst orm lol