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

@seedalpha/job-queue

v2.1.12

Published

Storage agnostic job queue

Readme

JobQueue

Storage agnostic job queue

Changelog

2.1.2:

  • fix typo when setting timeout

2.1.1:

  • dont throw on connection problems, just reconnect
  • debug log

2.1.0:

  • support stop listening on job complete
  • fix tests

2.0.1:

  • fix tests seed-sqs paths

2.0.0:

  • custom job types (uses single queue; breaking API changes)
  • timeout stale jobs (2min default)
  • jobs emit error and timeout events to queue now (will trigger silent expiration)
  • setup npm to use NPM_AUTH
  • update docs

Prerequisites (for tests)

$ export AMAZON_ACCESS_KEY_ID=...
$ export AMAZON_ACCESS_KEY_SECRET=...
$ export SQS_QUEUE=...

Installation

$ npm install seed-job-queue --save
$ npm install seed-sqs --save # to use with sqs

Usage

// index.js

var Queue    = require('seed-sqs');
var JobQueue = require('seed-job-queue');

var queue = new Queue({
  name:   'staging',
  key:    process.env.AMAZON_ACCESS_KEY_ID,
  secret: process.env.AMAZON_ACCESS_KEY_SECRET
});

var jobs = new JobQueue(queue, { 
  timeout: 2 * 60 * 1000 
});

jobs.process(function(job) {
  jobt.type   // get job type 
  job.data    // get underlying job data
  job.done(); // to complete a job
  job.done('Error'); // to let job expire and retry
  job.done(null, true); // to complete job and stop processing
});

jobs.create('send-mail', data, function(error) {
  // job created
});

jobs.create('send-quick-mail', data, { timeout: 2000 }, function(error) {
  // job created, 
  // if it will take more than 2sec to sent that email
  // job will timeout and return back to the queue
});

Development

$ git clone [email protected]:seedalpha/job-queue.git
$ cd job-queue
$ npm install
$ npm test

Author

Vladimir Popov [email protected]

License

©2014 Seedalpha