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

ppp

v0.8.6

Published

A slim promise implementation

Readme

Build Status npm version

PPP

A slim promise implementation.

  • Status: UNSTABLE - Versions 0.8.x are preview releases, with possible API breaking changes between patch versions. I look forward to nailing down the API for version 1.0.x.

Goals

  • to provide a simple, no-frills, compliant promise implementation.
  • to limit the use of closure scope / function binding in an effort to lower memory thrashing in projects that make extensive promise use.
  • to provide a measure of debug-ability despite asynchronous execution.

Usage

npm install ppp
var ppp = require('ppp');

var defer = ppp.Promise.defer();

defer.promise.then(function onSuccess(res) {
  console.log(res);
});

defer.resolve('hello world');
As a native polyfill
(function (global) {
  if (!global.Promise) {
    global.Promise = require('ppp').Promise;
  }
})(this);

Resources

Benchmarks

grunt benchmark
 # Memory:All
           [email protected]:   1.65 MB ±0.08 MB

     [email protected]:   1.96 MB ±0.15 MB
             [email protected]:   6.66 MB ±1.05 MB
          [email protected]:   3.65 MB ±0.38 MB

 # Memory:Then
           [email protected]:   0.63 MB ±0.04 MB

     [email protected]:   1.31 MB ±0.13 MB
             [email protected]:   3.52 MB ±0.49 MB
          [email protected]:   1.37 MB ±0.15 MB

 # Cpu:All
           [email protected]:    461 ops/sec ±1.18 %

     [email protected]:    419 ops/sec ±1.44 %
             [email protected]:    142 ops/sec ±3.94 %
          [email protected]:    426 ops/sec ±1.10 %

 # Cpu:Then
           [email protected]:    486 ops/sec ±1.39 %

     [email protected]:    417 ops/sec ±2.03 %
             [email protected]:    191 ops/sec ±3.40 %
          [email protected]:    459 ops/sec ±1.51 %
test/benchmark.html (Chrome)
 # Cpu:All
                 ppp:    156 ops/sec ±0.61 %

            bluebird:  78.70 ops/sec ±0.48 %
                   q:    134 ops/sec ±4.08 %
                 vow:    155 ops/sec ±0.77 %

 # Cpu:Then
                 ppp:    158 ops/sec ±0.61 %

            bluebird:  76.47 ops/sec ±1.20 %
                   q:    159 ops/sec ±2.70 %
                 vow:    156 ops/sec ±0.37 %