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

signal-logger

v1.0.0-canary.6

Published

A logger that allows you to send stylized or custom messages to a variety of services

Readme

signal-logger

Latest Release Total Downloads Install Size License

Signal Logger is a logger that allows you to send stylized or custom messages to a variety of services.

Advantages

✨ Logging to an unlimited number of services with on call

✨ Built-in console, Telegram, Mattermost and JetBrains Space log providers

✨ The ability to create your own log providers

Installation

npm install signal-logger

# or
pnpm install signal-logger

# or
yarn add signal-logger

Getting Started

Logging

To access the logger API, create its instance:

const logger = new Logger({
  providers: {
    // …
  },
});

Logging requires providers, which are a service for sending or displaying messages.

To register a provider, specify a property in the providers object. The property key can be any, it will be used to access the provider options. And the property value must be an instance of a log provider:

const logger = new Logger({
  providers: {
    console: new ConsoleLogProvider(),
    telegram: new TelegramLogProvider({
      // …
    }),

    // another loggers…
  },
});

To log messages you can pass an array of these messages:

logger.info(['Some info message', { foo: 'bar' }]);

Or you can specify them in the messages property. For example, this is the same:

logger.info({
  messages: ['Some info message', { foo: 'bar' }],
});

To specify a different set of messages for a specific provider, you need to override the options for it using the key specified in the logger constructor:

logger.info({
  messages: ['Some info message', { foo: 'bar' }],
  providers: {
    telegram: {
      messages: ['Another info message'],
    },
  },
});

Log providers may have message templates. To log a template message, pass an options required for a provider you are using in the template property:

logger.info({
  template: {
    title: 'Some info message',
    description: '…',
    // …
  },
});

logger.info({
  template: {
    title: 'Some info message',
    description: '…',
    // …
  },
  providers: {
    telegram: {
      template: {
        title: 'Another info message',
        description: '…',
        // …
      },
    },
  },
});

Enable and disable logging

The logger supports disabling logging. This may be necessary, for example, to prevent messages from being displayed in production.

To disable all providers, specify the value of the enabled property in the logger constructor:

const logger = new Logger({
  enabled: process.env.NODE_ENV !== 'production',
  // …
});

To enable or disable logging for a specific provider specify the value of the enabled property for it in the provider configuration:

const logger = new Logger({
  providers: {
    telegram: new TelegramLogProvider({
      enable: process.env.NODE_ENV !== 'production',
    }),
  },
});

Or specify the value you need when calling the logging method:

logger.info({
  // …
  providers: {
    telegram: {
      enabled: false,
    },
  },
});

Log deduplication

Log deduplication prevents logging of duplicate messages. Of all the identical messages found in a certain period of time, only one will be logged.

By default, deduplication is disabled. To enable it, specify true as the value of the deduplicate property in the logger constructor options:

const logger = new Logger({
  deduplicate: true,
  // …
});

The default interval during which duplicates will be detected from the moment the logging method is called is 100 milliseconds. To specify a different interval, pass a value in milliseconds for the interval property in the deduplicate property:

const logger = new Logger({
  deduplicate: { interval: 1000 },
  // …
});