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

pullrrr

v0.5.0

Published

Pull to do something...

Downloads

5

Readme

Pullrrr

Pull to do something...

Install

npm install pullrrr

Example Setup

Javascript

import Pullrrr from 'pullrrr';

// create an instance with default options
const pullrrr = new Pullrrr({
  threshold: 100, // threshold for the pull action
  max: 150, // not exactly max, but used for pull resistance calculation
  prefix: 'pullrrr', // prefix for classnames
  over: false, // if top/bottom element should go over container
  fade: false, // if top/bottom element should be faded in/out
  maxWidth: false, // if specified, Pullrrr is only applied if window.innerWidth <= maxWidth
});

Events

You can add the following event listeners:

pullrrr.on('pulling', (direction, distance, instance) => {
  // called while pulling
});

pullrrr.on('pulled', (direction, passedThreshold, instance) => {
  // called after pulling
});

pullrrr.on('threshold', (direction, instance) => {
  // called when threshold is passed
});

CSS

These are some example styles for the elements used/created by Pullrrr:

html.pullrrr-use-over:after {
  background: transparent;
  content: '';
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition: opacity 0.3s ease-out;
  z-index: 1000;
}
html.pullrrr-pulling-up.pullrrr-use-over:after,
html.pullrrr-pulling-down.pullrrr-use-over:after {
  opacity: 1;
}
html.pullrrr-pulling-up.pullrrr-use-over:after {
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
}
html.pullrrr-pulling-down.pullrrr-use-over:after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
}

.pullrrr-pull-top,
.pullrrr-pull-bottom {
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  font-size: 2rem;
  font-weight: 900;
  overflow: hidden;
  position: fixed;
  left: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  transition: 0.2s ease-out;
  width: 100%;
  height: 0;
  z-index: 100000;
}
.pullrrr-pull-top:before,
.pullrrr-pull-bottom:before {
  display: inline-block;
  transition: 0.3s ease-out;
}
.pullrrr-pull-top:after,
.pullrrr-pull-bottom:after {
  content: 'pull';
}
.pullrrr-pull-top {
  align-items: center;
  top: 0;
  transform: translateY(-100%);
}
.pullrrr-pull-top.pullrrr-over {
  align-items: flex-end;
  transform: none;
}
.pullrrr-pull-top:before {
  content: '↓';
}
.pullrrr-pull-top.pullrrr-threshold:before {
  transform: rotate(180deg);
}
.pullrrr-pull-top.pullrrr-threshold:after {
  content: 'release';
}
.pullrrr-pull-bottom {
  align-items: center;
  bottom: 0;
  transform: translateY(100%);
}
.pullrrr-pull-bottom.pullrrr-over {
  align-items: flex-start;
  transform: none;
}
.pullrrr-pull-bottom:before {
  content: '↑';
}
.pullrrr-pull-bottom.pullrrr-threshold:before {
  transform: rotate(-180deg);
}
.pullrrr-pull-bottom.pullrrr-threshold:after {
  content: 'release';
}
.pullrrr-pulling-down .pullrrr-pull-top,
.pullrrr-pulling-up .pullrrr-pull-bottom {
  transition: 0s;
}

License

MIT License