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

workaholic

v1.3.0

Published

workaholic

Downloads

11

Readme

Workaholic

Travis

Workaholic is distributed execFile worker using Redis for work(task) assign, written with javascript(node.js)

Architecture

workaholic architecture v1.1

workaholic data structure v1.2

  • Redis : use for task queueing, ticket storing

  • boss/boss.js : fork and control workers forever

    • worker/worker.js : workers, get tasks from Redis
  • front/front.js : front-desk, registers task to Redis

Installation

git clone https://github.com/flrngel/workaholic
cd workaholic
npm install

worklist.json

worklist.json is for use to execute file(execFile)

It is highly recommended not to use interpreter applications for security reasons, execute as your own signle script.

{
	"<task name>": {
		"execFile" : "<File to execute>",
		"options": {
			// see available options from http://nodejs.org/api/child_process.html#child_process_child_process_execfile_file_args_options_callback
		}
	}
}

config.json

config.json is for use to control Workaholic(boss, worker, front)

{
	// redis configuration
	"redis":{
		"host": "localhost",
		"port": 6379,
		// ticket time to live - work ticket(key in redis) expire time(redis expire). -1 to permanent
		"ticket_ttl": 60,
		// authentication using redis auth command, removable
		"password": "<insert_your_redis_auth_password>"
	},
	// front-desk configuration
	"front":{
		// listening port
		"port": 8007,
		// authentication for front-desk, removable
		"password": "<insert_your_password>"
	},
	// worker configuration
	"worker":{
		// number of workers
		"number": 4,
		// wait time
		"sleeptime": 100
	}
}

front/front.js (response type: json)

GET /info

Get Workaholic package information

POST /work/new

request

{
	"ticketing(optional;boolean type)": true,
	"data": {
		"taskName(string type)": "<task anme>",
		"argument(array type, strings)": ["<arg1>","<arg2>..."]
	}
}

response

{
	"result": (true|false),
	"ticket(optional)": <ticket uuid>
}

GET /work/status

request

/work/status?ticket=<ticket uuid>

response

  • queue: task is in queue pool

  • assigned: worker assigned task

  • end: task was successfully ended

  • error: task had error

Roadmap (todo list)

  • ~~architecture security improvement~~ (status: unstable)
  • front-desk access list
  • benchmark test
  • worker status
  • thin worker
  • task tracking
  • boss controller
  • ~~workers with different tasklist~~