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

cachegator

v0.0.15

Published

a split-able caching aggregation handler

Readme

cachegator

a split-able streaming aggregation wrapper around mongoose/mongodb cursor

NPM Version cachegator

It limit per ~16MB (BSONObj limit) caching processing with $facet/$literal

usage (TBD)

const ctor = new CacheGator({
  useRedis: false, // in memory caching
  model: MongooseModel,
  debug: true,
});

ctor.setSplitter(mySplitterFunction);

const opt = {
    startDate,
    endDate,
    applicationId: ["1", "3", "4"],
    type: "dataset",
};

ctor.split(opt);
...
splitter function set.
pre-loading dataset chunk 1/33...
pre-loading dataset chunk 2/33...
pre-loading dataset chunk 3/33...
pre-loading dataset chunk 4/33...
pre-loading dataset chunk 5/33...
pre-loading dataset chunk 6/33...
pre-loading dataset chunk 7/33...
pre-loading dataset chunk 8/33...
pre-loading dataset chunk 9/33...
pre-loading dataset chunk 10/33...
pre-loading dataset chunk 11/33...
pre-loading dataset chunk 12/33...
pre-loading dataset chunk 13/33...
pre-loading dataset chunk 14/33...
pre-loading dataset chunk 15/33...
pre-loading dataset chunk 16/33...
pre-loading dataset chunk 17/33...
pre-loading dataset chunk 18/33...
pre-loading dataset chunk 19/33...
pre-processing dataset chunk 20/33...
pre-processing dataset chunk 21/33...
pre-processing dataset chunk 22/33...
pre-processing dataset chunk 23/33...
pre-processing dataset chunk 24/33...
pre-processing dataset chunk 25/33...
pre-processing dataset chunk 26/33...
pre-processing dataset chunk 27/33...
pre-processing dataset chunk 28/33...
pre-processing dataset chunk 29/33...
pre-processing dataset chunk 30/33...
pre-processing dataset chunk 31/33...
pre-processing dataset chunk 32/33...
pre-processing dataset chunk 33/33...
processing batch 1 :: 10000 records processed...
processing batch 2 :: 20000 records processed...
processing batch 3 :: 30000 records processed...
processing batch 4 :: 40000 records processed...
processing batch 5 :: 50000 records processed...
processing batch 6 :: 60000 records processed...
processing batch 7 :: 70000 records processed...
processing batch 8 :: 80000 records processed...
processing batch 9 :: 90000 records processed...
processing batch 10 :: 100000 records processed...
processing batch 11 :: 110000 records processed...
processing batch 12 :: 120000 records processed...
processing batch 13 :: 130000 records processed...
38 combined entries processed...

See test folder for usage, you can increase sample generation to 10M records and see how it perform.