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

@collectoriq/qeuu

v1.0.17

Published

Qeuuuuuuuuuu

Readme

qeuu

Jobs system based on MySQL.

Installation

Install the npm packages:

npm i

Setup the job schema table:

CREATE TABLE `job` (
  `job_id` varchar(36) NOT NULL,
  `status` varchar(20) NOT NULL DEFAULT '',
  `queue_name` varchar(255) NOT NULL DEFAULT '',
  `timeout` int(11) DEFAULT NULL,
  `retry` int(11) NOT NULL DEFAULT '0',
  `description` text,
  `params` text,
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP,
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `timeElapsed` int(10) unsigned DEFAULT NULL,
  `timeStarted` timestamp NULL DEFAULT NULL,
  `timeEnded` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`job_id`),
  KEY `idx_status` (`status`(1)),
  KEY `idx_group_hour` (`queue_name`,`status`(1),`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Usage

const Qeuu = require('Qeuu');

const qeuu = new Qeuu({ 
  database: {
    hostname: 'localhost:,
    user: 'root',
    password: 'root',
    database: 'my-super-database'
  }
})

// Setup the 'task' queue to listen incoming job and execute 10 jobs at the same time
qeuu.execute('task', 10, ({ message }) => {
  console.log(message);
  return Promise.resolve();
})

// Add new jobs to the 'task' queue
qeuu.add('task', {
  params: {
    message: 'Hello World'
  },
  timeout: 60,
  retry: 5
})

// Fetch all activities by hour happened on 2018-02-20
const activitiesHour = qeuu.activitiesByHour(2018-02-20')
// [{
//   queue_name: 'task',
//   status: 'PENDING',
//   date: '2018-02-20',
//   hour: 16
//   total : 1
// }]

// Fetch all activities by hour happened between 2018-02-20 and 2018-03-01
const activitiesDate = qeuu.activitiesByDate('2018-02-20', '2018-03-01')
// [{
//   queue_name: 'task',
//   status: 'PENDING',
//   date: '2018-02-20',
//   total : 1
// }]

Documentation

Status possible for a job

  • PENDING
  • IN_PROGRESS
  • COMPLETED
  • FAILED
  • STALLED
  • WARNING

On restart

When .execute method is called, all jobs IN_PROGRESS OR STALLED from the queue_name queue will be set as PENDING.