An opinionated rule set for an opinionated framework.
A reviewer for your PRs.
Maps your modules, database, and boot in a visual report.
Extends with rules you write yourself.
$ npx -y nestjs-doctor@latest .your code never leaves your machine · 0 AI calls · same output every run
NestJS Doctor reviews a pull request and comments on the findings, using the built-in rules and the custom rules you write. Enforce hexagonal architecture, DDD layers, or any convention your team cares about.
Install it with one command:
$ npx nestjs-doctor@latest ci installComments, score only, or hard gate. You choose how much it does on each PR.
main from feat/payment-webhook| Severity | Finding | Location |
|---|---|---|
| error | Hardcoded JWT secret | auth.service.ts:34 |
| warning | Controller injects ORM PrismaService directly | orders.controller.ts:11 |
2 findings introduced by this PR · 6 pre-existing findings not shown
architecture/no-orm-in-controllerController injects ORM PrismaService directly. Route data access through OrdersService.
$ npx nestjs-doctor@latest . --reportDraws the module graph your imports actually form. Add a few lines to main.ts, boot once, and --timings overlays the real construction times.
$ npx nestjs-doctor@latest . --reportEntities and relations from Prisma, TypeORM, Drizzle, and MikroORM in one diagram, with schema rules reporting against the entity.