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

ripdb

v0.0.2

Published

JavaScript embeddable JSON time series database.

Readme

RipDB

build status windows build status npm js-standard-style

A 100% JavaScript embeddable JSON time series database.

API is unstable.

Name

The name "Rip" in RipDB is from Rip Van Winkle.

Why?

Often times it's useful to have data indexed by date/time. Examples of such data would be log data, stock data, etc. There are plenty of time series databases, however, none that I'm aware of that are embeddable.

RipDB is useful if you're building an Electron app and you don't want to recompile LevelUp for every target platform.

Design Goals

  • No native modules, 100% embeddable.
  • Super simple file format. Indexed (typically by day) newline delimited JSON (.ndjson) with two top level fields d, and t.
  • Simple interface. Node.js streams only to read or write.

Caveat Emptor

I don't maintain that this is a good idea, nor is even fast/efficient. This should be thought of as more of an experiment. If your data set is larger than 100 MB, you may be better served by another embeddable database or time series database.

Usage

Install

npm i --save ripdb

API

create()

create(path, [indexFn])

Parameters:

  • path: The path directory to read / write a RipDB database.
  • indexFn: Optional function to use for indexing. Defaults to returning a path that indexes like ${path}/YYYY/mm-dd.ndjson. Files should easily fit in memory.

Returns: An instance of RipDB.

var ripdb = require('ripdb')
var db = ripdb.create('~/data/stocks')

prototype.path

prototype.createReader()

Returns an instance of Readable stream used to read data from the database. Starts from the most recent.

var ripdb = require('ripdb')
var db = ripdb.create('~/data/stocks')
var reader = db.createReader()

reader.on('readable', function () {
  var record = reader.read()
  console.dir(record)
  // => { index: '2015/12-05', t: '2015-12-05T10:36:56-06:00', d: data... }
})

Will support middleware, JSON revivers, etc.

prototype.createWriter()

Returns an instance of a Writable stream used to write data.

var ripdb = require('ripdb')
var db = ripdb.create('~/data/stocks')
var writer = db.createWriter()

writer.write({
  t: new Date() // expected to be instance of Date
  d: { ...data } // your data
})

Will support middleware, JSON replacers, etc.

License

MIT

Copyright (c) JP Richardson