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

monkkey

v0.1.6

Published

Manage the compression and the publication of exercice environments based on code execution

Readme

Command line 'monkkey'

Allow to compile and push Monkkey projects to a remote server.

Installation

As a global program

npm install -g monkkey

Then, you can call it with :

monkkey <commands...>

As a local dependency

npm install monkkey

Then, you can call it with :

(windows)$ node_modules/monkkey/monkkey <commands...>
   (*nux)$ ./node_modules/monkkey/monkkey <commands...>

You can include it to your javascript projects with :

var monkkey = require('monkkey');

Usage

Command line

Command | Description ------------ | ------------- help / --help / -h | Display some help update | Compile and push the result to the server check | Check if the files are valid run <name> | Run a macro in the local configuration file publish <id> <files> | Publish the tar+gzip files to the remote server compile <folders> | Compile the folders into tar+gzip files adduser | Create a new user on the remote server connect <username> | Connect to an existing user account disconnect | Disconnect from the session (destroy it on the server)

From javascript

var monkkey = require('monkkey');

monkey.<command>(<args>);

Function | Description ------------ | ------------- update([options: Object]) | compile + publish publish(url: String, filePath: String, [options: Object]) | Publish a compiled file to a remote server compile([folders: Array], [options: Object]) | check + Compile the current folder or the specified folders connect(username, password, url, callback) | Connect to an existing user account disconnect(url, session, callback) | Disconnect from the session (destroy it on the server) create(username, password, email, url, callback) | Create a new user on the remote server getUser(url, session, callback) | Get the user associated with the specified session

Compile([folders: Array], [options: Object]) : void

Compile a folder into a Monkkey executable file.

Behind the scene, it :

  • reads and check the monkkey.json file of the folder
  • check if all files registered exist
  • gather required files
  • compress them into a tar+gzip file

The gathering and the compression are made in a temporary folder.

var options = {
    start: (info) => console.log(' [ ] ' + info.folder + ' : Compressing...'),
    success: (info) => {
        console.log(' [o] ' + info.folder + ' : Files compressed at :');
        console.log('     ' + info.destination);
    },
    error: (e, info) => console.error(' [!] ' + info.folder + ' : An error occured : ' + e)
};

// Compile the current folder :
monkkey.compile(options);

// Compile the specified folders :
monkkey.compile([
    'exo1', 'exo2', '/home/user/exo3', //...
], options);

Publish(url: String, filePath: String, [options: Object]) : void

Publish a file to the remote server.

Behind the scene it :

  • doesn't check the content of the file
  • send the compressed files to the server
monkkey.publish('http://domain/exo/4', '/home/user/exo4.tar.gz', {
    start: o => console.log(' [ ] ' + o.config.url + ' - updating...'),
    success: o => console.log(' [o] ' + o.config.url + ' - updated.'),
    error: (o, e) => console.error(' [!] ' + o.config.url + ' - error : ' + e),
});

Update([options: Object]) : void

Update an exercice or a whole project and publish it to the remote server.

Behind the scene it :

  • reads and check the monkkey.json file of the folder
  • check if all files registered exist
  • gather required files
  • compress them into a tar+gzip file
  • send the compressed files to the server
monkkey.update({
    // Errors of compression / compilation
    compressionErrors: function(es)
    {
        console.error(' [!] ' + es.length + ' error(s) :');
        es.forEach(function(o) {
            console.error('     @' + o.source + ' : ' + o.error);
        });
    },
    // Push options, corresponding to the publishing to the server
    push: {
        start: o => console.log(' [ ] ' + o.config.url + ' - updating...'),
        success: o => console.log(' [o] ' + o.config.url + ' - updated.'),
        error: (o, e) => console.error(' [!] ' + o.config.url + ' - error : ' + e),
    }
});

// Light version
monkkey.update(function(o, error) {
    if(error)
        console.error(error);
    else
        console.log(o);
});

Short road-map

  • [ ] Complete the README.md file
  • [ ] Check user management
    • [ ] Check user addition
    • [ ] Check user connection
    • [ ] Check user disconnection
    • [ ] Check user rights
  • [ ] Add 'check' command : check files
  • [ ] Add 'run' command
  • [x] Transform to TypeScript for a better maintainability
  • [x] Add TypeScript support (local)
  • [ ] Add TypeScript support (@types)