finds.dev← search

// the find

brocoders/nestjs-boilerplate

★ 4,334 · TypeScript · MIT · updated Jun 2026

NestJS boilerplate. Auth, TypeORM, Mongoose, Postgres, MongoDB, Mailing, I18N, Docker.

A production-ready NestJS REST API starter with auth (local + social), dual ORM support (TypeORM/Mongoose), i18n, file uploads, and Docker. Aimed at teams that want to skip the first two weeks of project setup and get to business logic. Maintained by a Ukrainian dev shop (Brocoders) and actively updated.

The hygen code generation is genuinely useful — `npm run generate:resource` scaffolds a complete CRUD module with domain objects, DTOs, persistence mappers, and repository abstractions for both Postgres and MongoDB simultaneously, which is a real time saver. The domain/persistence separation (domain objects never leak ORM decorators) is an architectural choice that pays off when you need to switch databases or write unit tests. Renovate bot is enabled and PRs are flowing, so dependencies aren't left to rot. The e2e test suite runs against real Docker containers, not mocks, which means the CI actually catches integration failures.

Supporting both TypeORM and Mongoose in parallel doubles the maintenance surface — every new feature needs two implementations, and in practice most projects pick one and the other atrophies. The social auth providers (Apple, Facebook, Google) are wired in at the framework level, so removing one you don't need requires hunting through multiple files rather than toggling a flag. There's no rate limiting or brute-force protection on the auth endpoints out of the box, which is a real gap for anything exposed to the internet. The hygen templates generate a lot of files for simple resources, and the mapper pattern they use (separate toDomain/toPersistence mappers per DB adapter) can feel like a lot of boilerplate ceremony for simple CRUD that doesn't need the abstraction.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →