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 🙏

© 2024 – Pkg Stats / Ryan Hefner

jobukyu

v0.1.0

Published

A Job Queue REST API

Downloads

6

Readme

Jobukyu

A flexible, REST-based job queue.

Build Status Coverage Status

Features

  • Create, modify, and remove jobs via a REST API
  • Store arbitrary data in the job
  • Transmit data on job updates via Web Hooks
  • Quick start using jobukyu's command line interface

Why Jobukyu?

At Axisto Media, we had a requirement to run a processor-intensive task (generating images of slides from a PDF file) on a server separate to those running the web application.

We originally tried Kue, but encountered issues using it, and so decided to create a tool that handled failing jobs gracefully.

In order to cater for the different kind of processor-intensive jobs we handle at Axisto, we created a tool that did not require implicit knowledge of our web application - it simply provided a REST API that the web application could interact with, store any kind of JSON data that we needed the job worker to know, and a way for the Job Queue to communicate the state of those jobs back to the web application.

Dependencies

  • Node.js (0.10+)
  • MongoDB (2.4.6+)

Installation and Boot

git clone git://github.com/webcast-io/jobukyu
cd jobukyu
npm install

Then, make a copy of the config.example.js file

npm run config

... and supply your preferred database credentials and port to run the app on.

Boot the server

npm start

Usage

The Job Queue is accessed via a REST API. There is a single resource called job.

REST API

GET     /jobs                 Lists all of the jobs in the queue, regardless of status
POST    /jobs                 Creates a job
GET     /jobs/new             Lists all of the jobs that are yet to be processed
GET     /jobs/processing      Lists all of the jobs that are being processed
GET     /jobs/completed       Lists all of the jobs that have completed
GET     /jobs/failed          Lists all of the jobs that failed
GET     /jobs/search          Search for jobs based on search criteria
GET     /jobs/:id             Shows a job's details
PUT     /jobs/:id             Updates a job
PUT     /jobs/:id/take        Marks a job's status as 'processing', so that no other workers can take it
PUT     /jobs/:id/release     Marks a job's status as 'new', so that other workers can take it
PUT     /jobs/:id/complete    Marks a job's status as 'completed'
PUT     /jobs/:id/fail        Marks a job's status as 'failed'
PUT     /jobs/:id/retry       Marks a job's status from 'failed' to 'new'
DELETE  /jobs/:id             Deletes a job from the queue

CLI

The Job Queue can be installed and run from the command line:

Installing npm release:

$ npm install -g jobukyu

Installing git release:

$ npm install -g git://github.com/webcast-io/jobukyu

Running using CLI

$ jobukyu

Running useing CLI (with a path to a config file)

$ jobukyu --config ./my_custom_config.json