tim
timestreamdb
npm i timestreamdb
tim

timestreamdb

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.

by Bryce Baril

0.2.0 (see all)License:MITTypeScript:Not Found
npm i timestreamdb
Readme

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

Downloads/wk

14

GitHub Stars

64

LAST COMMIT

7yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

3

OPEN PRs

0
VersionTagPublished
0.2.0
latest
7yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate