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

@oxidental/ox

v0.0.11

Published

> This is alpha software and it's api will likely change a lot before version one. Use at your own risk.

Readme

ox

This is alpha software and it's api will likely change a lot before version one. Use at your own risk.

A chainable task runner

Ox provides a simple developer facing chainable api with build in logging and file watching.

Register your task so it can be used by ox.

Ox's _add function accepts any function as an argument.

The passed function will be decorated, then added to ox's properties list so it can be called as a method via ox.

The function will be accessible via it's function name, if the function has no name ( anonymous function ) it will be executed immediately.

Ox also passes it's whole api to your function so you can take advantage of the built in methods like _log

ox._add(task)
ox.task()

The Logger

Ox's logger provides a uniform way for tasks to pass messages to the console from one place. The intent is to capture all output and normalize it so it's easier to consume, probably with colors and filesizes. Logging should be provided in your task at important events, for example when a file is created, updated, deleted ect... As mentioned above the _log function is available to use in your task when it's registered.

function task(arguments) {
    arguments._log('Hello world')
}

ox.add(task)
.task()

// Hello world

The Watcher

Under the hood we are using chokidar to watch files.

A watcher is provided because some tools don't provide one and it's nice to have a uniform way of capturing events related to filesystem changes.

The Anatomy of a Task

Tasks are functions consumed and wrapped by ox's own _add method.

Ox tasks take a single object as configuration.

This object contains configuration for ox's built in methods like _log and _watch. It should also contain the configuration of your task.

ox.task({
    log: true,          // <-- This lets ox know if it should show logs via _log
    watch: true,        // <-- This lets ox know if it should use _watch
    options: {          // <-- These options are suppose to be used in your task
        value: 'World'
    } 
})

Tasks should be named and exported using module.exports

All of the below methods will result in a task exporting with the name 'task'.

module.exports = function task() {}
module.exports = const task = function() {}
module.exports = const task = () => {}

Passing arguments to your task. The options that are passed to your task are decorated with ox's methods so you can use them.

module.exports = function task(ox) {
    // console.log(ox)
    // {
    //     _add: () => {}              // <-- You can add tasks in tasks! 
    //     _log: () => {}              // <-- A log method to use where needed!
    //     _watch: () => {}            // <-- Probably don't use this unless you know what you're doing.
    //     options: { value: 'World' } // <-- Your options were passed through!
    // }
    ox._log(`Hello ${ox.options.value}`)
}
ox._add(task)
.task()
// Hello world