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

@21jumpclick/nestjs-tools

v1.0.1

Published

NestJS tools library with logging and other utilities

Readme

@21jumpclick/nestjs-tools

Bibliothèque d'outils NestJS pour les projets 21JumpClick, avec un focus sur le logging et les utilitaires RMQ.

Installation

npm install @21jumpclick/nestjs-tools

Utilisation

Logging Module

Le module de logging fournit des fonctionnalités de logging avancées avec Pino et des utilitaires pour RabbitMQ.

import { Module } from '@nestjs/common';
import { LoggingModule } from '@21jumpclick/nestjs-tools';

@Module({
  imports: [
    LoggingModule, // Module global - automatiquement disponible partout
  ],
})
export class AppModule {}

Logging Service

Utilisez le service de logging pour enregistrer les messages RMQ et créer des clients avec logging intégré.

import { Injectable } from '@nestjs/common';
import { LoggingService } from '@21jumpclick/nestjs-tools';

@Injectable()
export class MyService {
  constructor(private readonly loggingService: LoggingService) {}

  async someMethod() {
    // Logger un message RMQ entrant
    this.loggingService.logRmqMessage('pattern.name', { data: 'example' });

    // Logger un message RMQ sortant
    this.loggingService.logRmqOutgoing('pattern.name', { data: 'example' }, {
      durationMs: 150,
      status: 'sent'
    });
  }
}

RMQ Module

Module simplifié pour la configuration des clients RabbitMQ.

import { Module } from '@nestjs/common';
import { RmqModule } from '@21jumpclick/nestjs-tools';

@Module({
  imports: [
    RmqModule.register({
      name: 'MY_SERVICE',
      urls: ['amqp://localhost:5672'],
      queue: 'my_queue',
      isGlobal: true,
    }),
  ],
})
export class AppModule {}

Configuration RMQ Avancée

import { Module } from '@nestjs/common';
import { RmqModule } from '@21jumpclick/nestjs-tools';

@Module({
  imports: [
    RmqModule.registerAsync({
      name: 'MY_SERVICE',
      useFactory: (configService: ConfigService) => ({
        urls: configService.get('RMQ_URLS'),
        queue: configService.get('MY_QUEUE'),
        queueOptions: {
          durable: true,
        },
        prefetchCount: 20,
      }),
      inject: [ConfigService],
    }),
  ],
})
export class AppModule {}

Interceptors

Interceptors pour le logging automatique des requêtes HTTP et messages RMQ.

import { Module } from '@nestjs/common';
import { APP_INTERCEPTOR } from '@nestjs/core';
import { LoggingInterceptor } from '@21jumpclick/nestjs-tools';

@Module({
  providers: [
    {
      provide: APP_INTERCEPTOR,
      useClass: LoggingInterceptor,
    },
  ],
})
export class AppModule {}

Features

  • Logging structuré avec Pino
  • Support RMQ avec logging automatique
  • Masquage des données sensibles (passwords, tokens, etc.)
  • Configuration flexible pour différents environnements
  • Interceptors pour le logging automatique
  • Types TypeScript complets

Configuration

Le module de logging utilise les variables d'environnement suivantes :

  • NODE_ENV: Détermine si le logging est en mode production ou développement
  • APP_NAME: Nom de l'application pour les headers RMQ

License

UNLICENSED