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

quayjeery

v1.0.1

Published

Like a better version of JQuery without all the bullshit. Inspired by bling.

Downloads

2

Readme

QuayJeery

Like a better version of JQuery without all the poppycock. Inspired by bling.

Also inspired by resig.

This is only the beginning

Let's make this a useful utility belt.

Possible future directions:

  • cash
  • allow chaining by returning the context object?

But I'm thinking more like, minimal DOM manipulation, and a lot of other useful functions for manipulating data, a la lodash but more with a focus on objects, JSON, unicode, i18n, dates.

You know, all those modern conveniences. But crammed into one tiny high-perf package.

Something like that.

Using


$ npm i quayjeery

Then:

  import {Q} from './quay.js'

  // you can use the crazy event listener functions off Q
  Q.ael(eventNamesOrName, handlersOrHandler, options, target); // add
  Q.rel(eventNamesOrName, handlersOrHandler, options, target); // remove

  // and 
  Q.buildIn(); // to install into prototypes

Examples

Now you can do crazy things like:

  $$('a[href]')
    .on([
      'mouseover',
      'touchenter',
      'contextmenu',
      'dblclick'
    ], [ 
      func1, 
      func2, 
      func3 
    ], {
      once:true
    });

Of course, I don't know why you'd wanna do something like that. But why you want to is not my business anyway.

And. Now. You. Can.

Technical

Here's the code:

  export const Q = {
    buildIn,
    ael, rel
  };

  export function ael(types, funcs, options, el) {
    return mel.call(this, types, funcs, options, el, 'addEventListener');
  }

  export function rel(types, funcs, options, el) {
    return mel.call(this, types, funcs, options, el, 'removeEventListener');
  }

  function mel(types, funcs, options, target, funcName) {
    let Attach = EventTarget.prototype[funcName];
    target = target || this;

    if ( !(target instanceof EventTarget) ) {
      console.log(target, this);
      throw new TypeError(`ael requires fourth argument, or this, be type EventTarget`);
    }

    if ( Attach == ael ) {    // then ael is on EventTarget prototype, so
      // find the original by buildIn()'s convention
      Attach = EventTarget.prototype[`$${funcName}`];
    }

    funcName = `$${funcName}`;

    if ( !Array.isArray(types) ) {
      types = [types];
    } 

    if ( !Array.isArray(funcs) ) {
      funcs = [funcs];
    }

    for( const func of funcs ) {
      for( const type of types ) {
        EventTarget.prototype[funcName].call(target, type, func, options);
      }
    }
  }

  function onAll(types, funcs, opts) {
    this.forEach(target => target instanceof EventTarget && target.on(types, funcs, opts));
  }

  function offAll(types, funcs, opts) {
    this.forEach(target => target instanceof EventTarget && target.off(types, funcs, opts));
  }

  function filterSelector(selector) {
    return this.filter(node => node.matches(selector));
  }

  function buildIn() {
    HTMLAllCollection.prototype.addEventListener = HTMLAllCollection.prototype.on = onAll;
    HTMLAllCollection.prototype.removeEventListener = HTMLAllCollection.prototype.off = offAll;
    HTMLAllCollection.prototype.__proto__ = Array.prototype;

    HTMLCollection.prototype.addEventListener = HTMLCollection.prototype.on = onAll;
    HTMLCollection.prototype.removeEventListener = HTMLCollection.prototype.off = offAll;
    HTMLCollection.prototype.__proto__ = Array.prototype;

    NodeList.prototype.addEventListener = NodeList.prototype.on = onAll;
    NodeList.prototype.removeEventListener = NodeList.prototype.off = offAll;
    NodeList.prototype.__proto__ = Array.prototype;

    EventTarget.prototype.$addEventListener = EventTarget.prototype.addEventListener;
    EventTarget.prototype.addEventListener = EventTarget.prototype.on = ael;

    EventTarget.prototype.$removeEventListener = EventTarget.prototype.removeEventListener;
    EventTarget.prototype.removeEventListener = EventTarget.prototype.off = rel;

    NodeList.prototype.$ = NodeList.prototype.filterSelector = filterSelector;
    Node.prototype.$ = Node.prototype.querySelector;
    Node.prototype.$$ = Node.prototype.querySelectorAll;

    self.on = self.on.bind(self);
    self.off = self.off.bind(self);

    self.$ = document.querySelector.bind(document);
    self.$$ = document.querySelectorAll.bind(document);
  }