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

candy-nest-cli

v1.0.8

Published

Scaffolding CLI for Production-grade NestJS microservices. Interactively generates scalable services with REST, GraphQL, gRPC, Kafka, RabbitMQ, BullMQ, Redis, OpenTelemetry, Prometheus, Swagger, circuit breakers, and DLQs.

Readme

🍬 Candy Nest CLI

Scaffold Production-Ready NestJS Microservices in Seconds.
A Simple CLI toolkit that generates secure, and fully-wired services with all the "boring" parts already done.

License: MIT Node.js Version NestJS


🚀 Advantage

Setting up a microservice usually takes hours of manual wiring. Candy Nest CLI handles the heavy lifting through code generation, giving you:

  • 🛡️ Security: Global Rate Limiting, secure CORS policies, and Payload Validation (DTOs) out of the box.
  • 🧪 Testing: Automated Regression E2E suite that validates your actual infrastructure (DBs, Brokers, Caching).
  • 🏗️ Linking: Zero-manual-wiring for Redis, Kafka, BullMQ, and Postgres.

🛠️ Commands

1. Initialize a New Project

Interactively scaffold a complete microservice.

npx candy-nest-cli init [project-name]

Features included by default:

  • Infrastructure: Multi-stage Dockerfile and optimized docker-compose.yml.
  • Observability: Prometheus metrics and root-level Health Probes.
  • Security: @nestjs/throttler (Rate Limiting) and ValidationPipe (DTOs).

2. Extend an Existing Project

Add features to any standard NestJS project. The CLI detects your setup and injects the new module into AppModule automatically.

cd my-nest-app
npx candy-nest-cli add

⚠️ Technical Considerations for Existing Projects

If you are adding features to a project not scaffolded with candy-nest-cli init, please note:

  • Environment Setup: Our features rely on ConfigService. You must manually copy variables from the generated .env.example to your .env file.
  • Security Pipes: Ensure ValidationPipe is registered in main.ts for our hardened DTO-based validation to take effect.
  • Global State: Projects initialized with this CLI have pre-configured Rate Limiting and CORS. You may need to add these manually to standard projects.

📦 Feature Matrix

| Category | Options Provided | |---|---| | Transport | REST (Express/Fastify), GraphQL, gRPC, WebSockets | | Databases | PostgreSQL (TypeORM/Prisma), MySQL (TypeORM/Prisma), MongoDB (Mongoose) | | Messaging | Kafka (Dual-listener), RabbitMQ (DLX support), BullMQ (Redis-backed) | | Observability| Prometheus, OpenTelemetry, Jaeger Tracing, Terminus Health | | Resiliency | Opossum Circuit Breaker, Global Rate Limiting, DLQs | | API Docs | Swagger (@nestjs/swagger) |


🧪 Automated Regression Suite

Every project generated by Candy CLI includes a test/regression.e2e-spec.ts. Unlike standard unit tests, this suite:

  1. Connects to your real Docker containers.
  2. Performs CRUD Smoke Tests on your chosen database.
  3. Validates Messaging Connectivity (Kafka/RabbitMQ).
  4. Asserts Health Status of all infrastructure sidecars.

Run it with:

docker-compose up -d
npm run test:e2e

📁 Standard Architecture

Generated projects follow a modular structure designed for scale:

src/
├── main.ts            # Hardened security (CORS, Throttler, Pipes)
├── app.module.ts      # Global Config (Joi validation) & Service Linking
├── database/          # Clean ORM/ODM modules
├── examples/          # Sample REST/GraphQL/gRPC logic (CRUD)
├── kafka/             # Kafka Consumers with DLQ handling
└── resiliency/        # Circuit Breaker implementations

🤝 Contributing

We love PRs! If you want to add a new template (e.g., SQS support or Vitest integration), please check our CONTRIBUTING.md.

📄 License

MIT © Ashish Kushwaha