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 🙏

© 2025 – Pkg Stats / Ryan Hefner

nrowl

v1.1.0

Published

Node.js API for Prowl

Readme

nrowl - Prowl for Node.js API

Send push notifications using the Prowl service.

Installation

	npm install nrowl

Usage

The API requires your API Key, which you can generate by creating a Prowl account and visiting your API Keys page.

const Prowl = require('nrowl');

Prowl.add(YOUR_API_KEY, 'Push Notifier', { description: 'So easy to use!' });

Prowl.add(YOUR_API_KEY, 'Push Notifier', { 
  event: 'Some event',
  description: 'So easy to use!',
  providerkey: YOUR_PROVIDER_KEY,
  priority: 2,
  url: 'http://www.prowlapp.com/',
}

API

Functions

All functions are static (you don't need to call new to instantiate an instance).

add()

Prowl.add(apikey, application, options)
  • apikey (String): The Prowl API key, or an array of keys, to send the notification to.
  • application (String): The name of your application, which appears as part of the notification.
  • options (Object): Any other parameters available from the Prowl API. Per Prowl's requirements, this must include either event or description or both.

Sends a push notification to the supplied API key(s).

Returns a Promise that resolves on a successful push ore rejects on failure with an object in the generic format (see Generic Return Objects below).

verify()

Verify that a Prowl API Key is valid. This uses the Prowl API and counts against your usage limits.

Prowl.verify(apikey, providerkey);
  • apikey (String): the API key to check.
  • providerkey (String): Your provider key, if you have one. This is optional.

Returns a Promise that resolves when the API key is valid or rejects when the API key is invalid (see Generic Return Objects below).

retrieveToken(providerkey)

Fetch a registration token for use with retrieveAPIKey().

Prowl.retrieveToken(providerkey)
  • providerkey (String): Your Provider Key.

Returns a Promise that resolves with a generic success object (see Generic Return Objects below) with two additional properties:

  • token (String): a registration token, required when getting an API key using retrieveAPIKey().
  • url (String): a URL to a confirmation page the user must complete to be issued an API key.

retrieveAPIKey()

Fetch an API key for a user.

Prowl.retrieveAPIKey(providerkey, token);
  • providerkey (String): Your Provider Key.
  • token (String): A token returned from retrieveToken().

Returns a Promise that resolves with a generic success object (see Generic Return Objects below) with an additional property:

  • apikey (String): The user's new API key.

Generic Return Objects

Prowl API responses follow a generic format for both success and failure of API calls.

On success:

{
  code: 200, // HTTP status code; will be 200 on a successful call
  remaining: 999, // Count of remaining available API calls.
  resetdate: Wed Dec 18 2019 18:35:16 GMT-0800 (Pacific Standard Time) // (Date object) Time when your available API calls reset.
}

On failure:

{
  code: 401 //  HTTP status code; see the [Prowl API Documentation](https://www.prowlapp.com/api.php#return) for a list of codes.
  message: 'Invalid API key' // Human-readable error message.
}

Contribute

I'm happy to accept contributions. ESLint is included as a dev dependency to conform to the Airbnb Style Guide.

Testing

Mocha is used as the test runner, Chai for its assertions, and Nock to simulate responses from the Prowl API.

Changelog

2019-08-31

  • Initial release. Initially forked from node-prowl but I ended up rewriting everything in ES2105.