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

noto-time

v0.1.7

Published

A simple time logging module to save time measurements to a db.

Readme

Super simple time logging module to save measured times to a database

noto-time will save each entry with how much time it took to execute, an id, a service id and whatever meta data you need. It also gives you the ability to pause a timer, in case you want to measure something that shouldnt include a sub task.

noto-time will bulk save entries to the database at a given interval to save performance.

This module was created 2018-03-15 so its very very alpha.

How to use:

const notoTime = require('noto-time');

// Pass a connection uri in this format: postgres://foo:foobarbaz@db/noto. More info on this further down.
const noto = notoTime({connectionUri: process.env.DB_CONNECTION_URI}, service: 'noto-test', meta: {});

// This is a normal timer with an identifier
let timer = noto.start('normal-timer');

// This should save about 500 ms
setTimeout(() => {

    // End the timer like this
    timer.end();

}, 500);

With pause

const notoTime = require('noto-time');

// Pass a connection uri in this format: postgres://foo:foobarbaz@db/noto. More info on this further down.
const noto = notoTime({connectionUri: process.env.DB_CONNECTION_URI}, service: 'noto-test', meta: {});

// This should save about 1000 ms, but total execution time should be about 1500 ms,
// bacause it pauses the timer

let timerWithPause = noto.start('with-pause');
setTimeout(() => {
    timerWithPause.pause();
    setTimeout(() => {
        timerWithPause.continue();
        setTimeout(() => {
            timerWithPause.end();
        }, 500);
    }, 500);
}, 500);

Options

noto-time can be initialized with some options:

const noto = notoTime(options);

where options is an object with the following keys:

{
    connectionUri: [connection uri],    // Db connection string
    service: [string],                  // defaults to 'noto-test'. Name of the service
    meta: [object],                     // defaults to {},
    maxTimeout: [integer],              // Max time to log in miliseconds. Defaults to 30000. If the elapsed time is more than this value, we will ignore it.
    saveTimeout: [integer],             // How often it should save to the database in ms. Defaults to 5000,
    enabled: [boolean],                 // Defaults to true. This can be set to false and noto-time will not log anything. It exists so you can have measurements
                                        // that might be turned off in production

}