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

smh-nestjs-templates

v1.0.0

Published

Project for instantiating projects via cli

Readme

Streamline Your NestJS Development with smh-nestjs-templates

Introduction

Building scalable and efficient backend applications is essential in modern software development. NestJS, a progressive Node.js framework, is a powerful choice for developers, but setting up a project with MongoDB, BullMQ, and Kafka can be tedious. That's where smh-nestjs-templates comes in! This CLI tool simplifies project scaffolding, so you can focus on coding rather than setup.

Why Use smh-nestjs-templates?

With smh-nestjs-templates, you get:

  • 📌 A variety of NestJS templates with pre-configured setups.
  • 🚀 Automatically structured project organization.
  • 📦 Immediate dependency installation after project creation.
  • ✅ Automatic environment checks for required Node.js and npm versions.
  • 🛠️ Project essentials:
    • Structured project layout with best practices.
    • Environment-based logging for efficient debugging.
    • ESLint & Prettier setup for consistent code quality.
    • PM2 configuration for process management.
    • Docker Compose for quick containerized deployment.
    • Optimized TypeScript configuration for performance and maintainability.
    • Parcel bundler for optimized and efficient builds.
    • Bytenode for JavaScript code protection, ensuring better security in production.

Getting Started

Installation

To install smh-nestjs-templates globally, run:

npm install -g smh-nestjs-templates

Creating a New Project

Once installed, simply run:

smh-nestjs-templates

You'll be prompted to choose a template and provide a project name. The default name will match the selected template, but you can customize it if needed.

System Requirements

  • 🔹 Node.js >= 22.14.0
  • 🔹 npm >= 11.1.0

The CLI checks these requirements automatically before proceeding to ensure a smooth experience.

Available Templates

This CLI provides a range of NestJS templates that integrate MongoDB, BullMQ, and Kafka. Each template includes structured logging, linting, and deployment configurations:

  • nestjs-bullmq-kafka: Uses BullMQ for job processing and Kafka for event-driven workflows.
  • nestjs-bullmq-mongo: A combination of MongoDB and BullMQ for scalable task management.
  • nestjs-bullmq-worker: A specialized template focusing on message queuing and background processing.
  • nestjs-microservices-kafka: A microservices-oriented template with Kafka as the messaging broker.
  • nestjs-mongo-bullmq-kafka: A full-stack backend template with MongoDB, BullMQ for job queues, and Kafka for event-driven architecture.
  • nestjs-mongo-database: A MongoDB-centric template for database-driven applications.

Security Features

  • Bytenode integration ensures your JavaScript source code is compiled into bytecode, making it difficult to reverse-engineer.
  • Environment-based secrets management ensures sensitive credentials are not hardcoded in the repository.
  • Strict ESLint rules help maintain security best practices by detecting potential vulnerabilities in the code.

Example Usage

Here's what an interactive session with smh-nestjs-templates looks like:

? What project template would you like to generate? (Use arrow keys)
> nestjs-mongo-bullmq-kafka
  nestjs-bullmq-kafka
  nestjs-bullmq-mongo

? Project name: (nestjs-mongo-bullmq-kafka)  <-- User can press Enter or customize
✅ Project 'nestjs-mongo-bullmq-kafka' created successfully!
📦 Installing dependencies...
✅ Dependencies installed successfully.
📌 Next steps:
  cd nestjs-mongo-bullmq-kafka
  npm start

Conclusion

smh-nestjs-templates is a powerful CLI tool that removes the hassle of setting up NestJS projects with MongoDB, BullMQ, and Kafka. Whether you're building a microservices-based application or a background job processing system, these templates provide a solid foundation to get started quickly.

With built-in logging, ESLint, Prettier, PM2, Docker Compose, Parcel, Bytenode, and an optimized TypeScript configuration, these templates ensure a production-ready setup from day one.

Give it a try and let us know how it works for you! 🚀

License

📝 This project is licensed under the Apache License 2.0.