Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/littlstar/pushlytics
Simple server to serve a pixel and record metrics in a LevelDB instance
https://github.com/littlstar/pushlytics
Last synced: about 2 months ago
JSON representation
Simple server to serve a pixel and record metrics in a LevelDB instance
- Host: GitHub
- URL: https://github.com/littlstar/pushlytics
- Owner: littlstar
- License: mit
- Created: 2014-06-12T13:33:15.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-12T15:29:36.000Z (over 10 years ago)
- Last Synced: 2023-05-29T11:01:19.021Z (over 1 year ago)
- Language: JavaScript
- Size: 154 KB
- Stars: 6
- Watchers: 17
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pushlytics
==========Simple server to serve a pixel and record metrics in a LevelDB instance
## install
```sh
$ npm install -g pushlytics
```## usage
```sh
usage: pushlytics [-hV] [-p port] [-r route] [-d dbpath] [-n dbprefix]
```## example
```sh
$ 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()`
```sh
$ curl localhost:8888/path/to/pixel.gif?user=1234&event=pageload
```Use something like [lev](https://github.com/hij1nx/lev) or
[ldb](https://github.com/hij1nx/ldb) to read from the database on the
command line or read directly using
[level](https://github.com/level/level) and
[sublevel](https://github.com/dominictarr/level-sublevel).## license
MIT