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

parse-stitch-query

v1.0.5

Published

Query helper for retrieving a large number of objects from Parse

Readme

StitchQuery - "for getting all your stuff"™

Build Status: Circle CI

StitchQuery allows you to query for more than 1000 objects by making multiple requests and stitching the results together.

If you need more than 10,000 results (unlikely), you can use a SuperStitchQuery.

Installation

npm install --save parse-stitch-query

Usage w/ Parse

var Parse =  require('parse-shim');
var StitchQuery = require('parse-stitch-query');

var query = new Parse.Query(Model);
query.equalTo('blah', 'cool');

// Get up to 10,000 results with regular StitchQuery
StitchQuery(query).then((results) => {
  // all the results are here!
}, (error) => {
  // oh noes! errors
})

// SuperStitchQuery, for unlimited results!
StitchQuery(query, {superStitch: true}).then(...)

// Pass through query options
StitchQuery(query, {userMasterKey: true}).then(...)

How does it work?

StitchQuery sets the maximum hosted Parse limit of 1000 on the provided query and makes an initial request for the data. If 1000 objects are returned (the maximum batch size) we make additional requests, taking care to increment the query's skip by the batch size of 1000 until we reach the maximum skip (10k). This allows you to fetch up to 10,000 results using StitchQuery.

If desired, a SuperStitchQuery can be performed which will fetch unlimited results. It does this by applying a sort on createdAt to the provided query and, upon reaching the maximum skip limit, gets the date of the final item retrieved. To fetch the next batch it adds an additional query predicate requesting only items that have createdAt greater than that of the last item returned and resets the skip to zero. This process is repeated until all results are retrieved (receiving a batch with less than the requested limit of 1000 documents).

  • Warning: SuperStitchQuery should not be used on queries that already have a sort applied!