npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

quickstart-nestjs

v0.2.0

Published

Scaffold production-ready NestJS projects with interactive prompts

Readme

⚡ quickstart-nestjs

Spin up a production-ready NestJS API in seconds — not days.

An interactive CLI that scaffolds a fully-wired NestJS project: pick your database, ORM, auth, cache, queue and more, and get a project that installs, builds, and boots out of the box.

npm version license node built with NestJS


🚀 Get started in one command

npx quickstart-nestjs my-project

Prefer a global install? Do it once, then call it anywhere:

npm install -g quickstart-nestjs
quickstart-nestjs my-project

That's it. Answer a few prompts and you'll have a running NestJS app with dependencies installed, git initialized, and every module wired together.

⚡ quickstart-nestjs
Scaffold production-ready NestJS projects

✔ Project structure       › Monolith
✔ Package manager         › npm
✔ Database                › PostgreSQL
✔ ORM                     › Prisma
✔ Authentication          › JWT
✔ Caching                 › Redis
✔ API Documentation       › Swagger
✔ Docker support          › Yes

✔ Project scaffolded!
✔ Dependencies installed!
✔ Git repository initialized!

✨ Why you'll like it

  • 🧠 Smart prompts, zero flags — incompatible options are hidden as you go, so you can't build a combo that won't work.
  • 🔋 Batteries included — auth, caching, queues, websockets, docs, logging, file uploads… all pre-wired.
  • 🔐 Auth that actually works — JWT register/login with a real, ORM-backed user store (Prisma, TypeORM, Sequelize, or Mongoose), global guard, and @Public() opt-out.
  • 🐳 Instant infrastructure — generates a docker-compose.yml for your database, Redis and friends, plus handy db:up / db:down scripts.
  • 🏗️ Monolith or monorepo — pick the structure that fits, with the NestJS CLI configured for both.
  • ✅ Verified end-to-end — every database/ORM combination is tested to install, build, and boot before release.
  • 📦 Your package manager — npm, yarn, pnpm, or bun.

🧩 Available plugins

20 plugins across 11 categories — mix and match freely.

| Category | Plugins | |----------|---------| | 🗄️ Database | PostgreSQL · MySQL · MongoDB · SQLite | | 🔗 ORM | Prisma · TypeORM · Sequelize · Mongoose | | 🔐 Auth | JWT (Passport) | | ⚡ Cache | Redis | | 🔌 Realtime | Socket.io · Native WebSocket | | 📚 Docs | Swagger / OpenAPI | | 🐳 Infra | Docker | | 📝 Logger | Pino · Winston | | 📬 Queue | BullMQ | | ✉️ Mailer | Nodemailer | | 📁 Upload | AWS S3 · Local (Multer) |


🪄 Smart compatibility filtering

Each plugin declares what it conflicts with or requires, and the prompts adapt to your previous answers:

  • ORMs only appear after you choose a database — Mongoose for MongoDB, relational ORMs for SQL.
  • JWT auth is offered only once an ORM is selected (it needs a user store).
  • BullMQ shows up only after you pick Redis (its queue backend).

You never see an option that can't work with what you've already chosen.


📂 What gets generated

Example output for a monolith with PostgreSQL + Prisma + JWT + Swagger + Docker:

my-project/
├── src/
│   ├── main.ts                     # CORS, validation, Swagger wired up
│   ├── app.module.ts               # global filter + interceptor + config
│   ├── auth/                       # register / login / profile, global JWT guard
│   │   ├── auth.controller.ts
│   │   ├── auth.service.ts
│   │   ├── guards/jwt-auth.guard.ts
│   │   └── strategies/jwt.strategy.ts
│   ├── users/                      # real ORM-backed UsersService
│   │   ├── users.module.ts
│   │   └── users.service.ts
│   ├── prisma/                     # PrismaModule + PrismaService
│   ├── common/                     # @Public, exception filter, transform interceptor
│   └── config/
├── prisma/
│   ├── schema.prisma
│   └── seed.ts
├── docker-compose.yml              # postgres service + named volumes
├── .env / .env.example
├── .gitignore
├── nest-cli.json
├── tsconfig.json
└── package.json                    # db:up, db:down, start:dev, ...

Then just:

cd my-project
npm run db:up        # start the database with Docker
npx prisma migrate dev --name init
npm run start:dev    # 🎉 http://localhost:3000  ·  docs at /api

🏛️ Project structures

  • Monolith — a single NestJS application with everything under src/. Best for most projects.
  • Monorepo — multiple apps under apps/ with shared libraries in libs/, managed by NestJS monorepo mode. Best when you ship several services (e.g. API + worker) from one repo.

🛠️ Local development

git clone https://github.com/kurovu146/quickstart-nestjs.git
cd quickstart-nestjs
npm install

npm run dev                          # watch mode
npm run build && node dist/cli.js my-project   # run locally
npm test                             # run the test suite
npm run lint                         # prettier --check

🤝 Contributing

Want to add a plugin? It takes three small steps.

  1. Create src/plugins/<plugin-name>/ with an index.ts:

    import { definePlugin } from '../../core/types.js'
    
    export const myPlugin = definePlugin({
      name: 'my-plugin',
      category: 'cache',                 // one of the PluginCategory values
      displayName: 'My Plugin',
      description: 'Short description shown in the prompt',
      conflicts: ['other-plugin'],       // optional
      requires: ['redis'],               // optional — install after these
      isCompatible: (sel) => sel.cache === 'redis', // optional filter
      install: async (ctx) => {
        ctx.addDependencies({ 'my-package': '^1.0.0' })
        ctx.addEnvVars({ MY_VAR: 'default' })
        ctx.registerModule('MyModule', './my/my.module')
      },
    })
  2. Add any source templates under src/plugins/<plugin-name>/templates/.

  3. Register it in src/plugins/index.ts:

    import { myPlugin } from './my-plugin/index.js'
    registry.register(myPlugin)

Issues and PRs are welcome → github.com/kurovu146/quickstart-nestjs


📄 License

MIT © Vũ Đức Tuấn (@kurovu146)