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

nestjs-npm-packager

v1.1.4

Published

Professional NestJS npm package starter kit with TypeScript support

Readme

NestJS NPM Packager

Professional NestJS npm package starter kit with TypeScript support. Create production-ready NestJS packages with a single command.

🚀 Features

  • Multiple Templates: Basic, Advanced, and Microservice templates
  • TypeScript Support: Full TypeScript configuration and type safety
  • Feature Selection: Choose from Swagger, Validation, Database, Auth, Testing, Docker, Logging, and Monitoring
  • Professional Structure: Best practices folder structure and configuration
  • CLI Interface: Easy-to-use command-line interface
  • Interactive Mode: Guided package creation process

📦 Installation

npm install -g nestjs-npm-packager

🎯 Quick Start

Interactive Mode

nestjs-packager init

Command Line Mode

# Create basic package
nestjs-packager create my-package

# Create advanced package with features
nestjs-packager create my-package -t advanced -f swagger,validation,database

# Create microservice
nestjs-packager create my-service -t microservice -f auth,monitoring

📋 Available Templates

Basic Template

  • Essential NestJS setup
  • Validation with class-validator
  • Testing with Jest
  • TypeScript configuration

Advanced Template

  • Full-featured NestJS application
  • Swagger/OpenAPI documentation
  • Database integration (TypeORM)
  • Authentication & Authorization
  • Logging and Monitoring
  • Comprehensive testing setup

Microservice Template

  • Microservice architecture
  • Communication protocols
  • Service discovery
  • Monitoring and logging
  • Docker support

🔧 Available Features

| Feature | Description | Dependencies | | ------------ | ------------------------------ | ---------------------------------------- | | swagger | OpenAPI/Swagger documentation | @nestjs/swagger | | validation | Request validation | class-validator, class-transformer | | database | Database integration | @nestjs/typeorm, typeorm | | auth | Authentication & Authorization | @nestjs/jwt, @nestjs/passport | | testing | Testing setup | @nestjs/testing, jest | | docker | Docker configuration | Docker files | | logging | Structured logging | winston, nest-winston | | monitoring | Application monitoring | prom-client, @willsoto/nestjs-prometheus |

📁 Generated Structure

my-package/
├── src/
│   ├── app.controller.ts
│   ├── app.module.ts
│   ├── app.service.ts
│   ├── main.ts
│   ├── common/
│   │   ├── decorators.ts
│   │   ├── filters.ts
│   │   └── interfaces.ts
│   ├── config/
│   │   ├── database.config.ts
│   │   └── logger.config.ts
│   ├── auth/ (if auth feature selected)
│   └── monitoring/ (if monitoring feature selected)
├── test/
│   └── app.e2e-spec.ts
├── package.json
├── tsconfig.json
├── jest.config.js
├── .eslintrc.js
├── .gitignore
├── Dockerfile (if docker feature selected)
├── docker-compose.yml (if docker feature selected)
└── README.md

🛠️ Commands

Create Package

nestjs-packager create <name> [options]

Options:

  • -t, --template <template> - Template type (basic, advanced, microservice)
  • -f, --features <features> - Comma-separated list of features
  • -d, --directory <directory> - Output directory
  • --author <author> - Package author name
  • --email <email> - Author email
  • --description <description> - Package description
  • --license <license> - Package license
  • --repository <repository> - Repository URL
  • --keywords <keywords> - Comma-separated keywords

List Templates

nestjs-packager list

Interactive Mode

nestjs-packager init

📝 Examples

Create a Basic API Package

nestjs-packager create my-api -t basic -f swagger,validation

Create a Microservice with Auth

nestjs-packager create user-service -t microservice -f auth,monitoring,docker

🔄 Next Steps

After creating your package:

  1. Navigate to the package directory:

    cd my-package
  2. Install dependencies:

    npm install
  3. Start development:

    npm run start:dev
  4. Access Swagger documentation (if enabled):

    http://localhost:3000/api

🧪 Testing

# Unit tests
npm run test

# E2E tests
npm run test:e2e

# Test coverage
npm run test:cov

🐳 Docker Support

If you selected the docker feature:

# Build Docker image
npm run docker:build

# Run with Docker Compose
npm run docker:compose

📊 Monitoring

If you selected the monitoring feature, metrics will be available at:

http://localhost:3000/metrics

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments


Made with ❤️ for the NestJS community