Skip to content
A Timeseries Database in Node.js, backed by LevelDB. It is unrelated to the Amazon Timestream service that was announced 5 years after I created this.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
test
.gitignore
.npmignore
LICENSE
README.md
package.json
timestreamdb.js

README.md

timestreamdb

NPM

Super early alpha version!

Docs coming, there is a LOT in there. Uses timestream for a query engine.

Supports joins, aggregates, map operations, filters...

var TsDB = require("timestreamdb")
var level = require("level")

var orig = level("./testdb", {valueEncoding: "json"})

var statware = require("statware")

// Using statware to make some numbers to look at...
var stats = statware()
stats.registerHelper(statware.memstats)
stats.registerHelper(statware.procstats)
stats.registerHelper(statware.sysstats)

var db = TsDB(orig)

setInterval(function () {
  stats.getStats(function (s) {
    db.put("foo", s)
  })
}, 100)

setInterval(function () {
  db.ts("foo")
    .flatten()
    .numbers()
    .mean(1000)
    .toArray(console.log)
}, 1000)

API

Docs coming soon! Take a peek at timestream for query docs.

LICENSE

MIT

You can’t perform that action at this time.