# nestjs-boilerplate (oNo500)

A NestJS + Next.js monorepo starter with enterprise-grade auth and audit logging

https://topboilerplates.com/nestjs-boilerplate-ono500

Framework: NestJS | Pricing: Free | GitHub stars: 87

## Verdict

Best for: Teams that want a NestJS backend with Next.js frontend and enterprise-grade concerns (audit logging, idempotency, RBAC) handled up front.

Skip if: You want a simpler starter without the enterprise-grade infrastructure - the audit logging and optimistic locking add real complexity.

## Description

A free, open-source Turborepo monorepo pairing a NestJS 11 backend with a Next.js 16 + React 19 frontend, using Postgres, Redis, and Drizzle ORM. It ships JWT and OAuth (Google/GitHub) authentication with RBAC, end-to-end type safety from database to frontend, idempotency keys, optimistic locking via ETag, domain-event-driven audit logging, OpenAPI docs, and structured logging with PII redaction.

## Pros and cons

+ Enterprise-grade concerns rarely found in starters: idempotency keys, optimistic locking, domain-event audit logging

+ End-to-end type safety from Postgres through the Next.js frontend

+ Structured logging with PII redaction built in

+ MIT licensed, free, and ships AI-assistant rules for Claude

- Smaller community (87 stars) - relatively new and less battle-tested

- Monorepo with Turborepo adds setup overhead versus a single-app starter

- No payments/billing integration included - backend/auth focused, not a full SaaS product template

## Features

- auth-included
- social-login
- rbac-roles
- typed-end-to-end
- api-routes
- claude-md
- documented-conventions

## Stack

- Postgres
- Redis
- Drizzle
- TypeScript
- shadcn/ui

## Links

- Website: https://topboilerplates.com/go/nestjs-boilerplate-ono500
- GitHub: https://github.com/oNo500/nestjs-boilerplate

## Alternatives

- [IndieKit](https://topboilerplates.com/indiekit)
- [Carrot Seed](https://topboilerplates.com/carrot-seed)
- [ShipFast](https://topboilerplates.com/shipfast)
