pushlytics

Simple server to serve a pixel and record metrics in a LevelDB instance

pushlytics

Simple server to serve a pixel and record metrics in a LevelDB instance

$ npm install -g pushlytics
usage: pushlytics [-hV] [-p port] [-r route] [-d dbpath] [-n dbprefix]
$ pushlytics -p 8888 -r '/path/to/pixel.gif' -d /data/pixel -n analytics

All values in the query string are serialized into a JSON string and stored with its key being a call to Date.now()

$ curl localhost:8888/path/to/pixel.gif?user=1234&event=pageload

Use something like lev or ldb to read from the database on the command line or read directly using level and sublevel.

MIT