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

overlog

v0.1.9

Published

Simple logs collection and retrieval.

Downloads

89

Readme

overlog (node.js module)

Motivation

An easy to use solution to store and fetch the logs.

Library and Command-Line Interface

  • Storer: push(entry) adds an entry.
  • Fetcher: fetch(time_interval) returns all entries from certain time interval.
  • Fetcher: follow() mimics tail -f.
  • Fetcher: fetch_and_follow() fetches entries from certain time range and goes into following mode afterwards.

Operation

Both storer and fetcher can be used via command line or via node.js bindings.

Shell tests provide a good idea on basic usage and functionality.

Directory to store the files has to be provided. Technically, two directories are required: one for intermediate files, append-only, and one for thefinalized files. They will be created as $DIR/intermediate/ and $DIR/destination/ as necessary.

In PubSub mode, an HTTP status endpoint is being exposed as well. All it takes to use PubSub is to specify PubSub channel name, default values for other parameters would work.

If not using PubSub for storer's locking mechanism, path to a lock file (via pidlock, directory and file) is required as well.

Implementation

Log Messages

Log entries are JSON objects. They should have the "ms" field set to Date.now() at the moment log entry was created.

Storage

  • Append-only intermediate files.
  • Atomically rename them into final format.
  • If necessary, replay older files at startup.
  • Keep first and last timestamps in the filenames for easier access.

Status Page

In PubSub mode, an HTTP status page is being exposed, check out /statusz.

PubSub

The tool was designed for the fetch_and_follow() usecase, that is easiest to access with fetcher's command line flags --last_ms_then_follow and --since_ms_then_follow.

node.js code performing these actions can be used directly as well.

Bells and Whistles

  • With HTTP status endpoint, PubSub and a command-line tool.
  • Process-level locked.
  • Unit-tested through.