Suck up a data stream and store it in LevelDB

npm install suckit
1 downloads in the last day
1 downloads in the last week
29 downloads in the last month


Suck up a data stream and store it in LevelDB.


Suckit exposes LevelDB (via level-store) over HTTP. It's really that simple.

Super Quickstart

In one terminal:

➜  suckit git:(master) mkdir data
➜  suckit git:(master) suckit 3000 ./data
["2013-05-16T02:53:59.622Z","INFO","opening bucket",{"session":"1368672813532-41998","name":"my-bucket"}]
["2013-05-16T02:53:59.624Z","INFO","asked to write to file",{"session":"1368672813532-41998","request":"1368672839619-66909","bucket":"my-bucket","file":"my-file","append":true}]
["2013-05-16T02:53:59.712Z","INFO","beginning to write to file",{"session":"1368672813532-41998","request":"1368672839619-66909","bucket":"my-bucket","file":"my-file","append":true,"newFile":true}]
["2013-05-16T02:53:59.716Z","INFO","finished writing to file",{"session":"1368672813532-41998","request":"1368672839619-66909","bucket":"my-bucket","file":"my-file","append":true,"newFile":true}]

In another:

➜  suckit git:(master) curl -v -X POST -d 'this is some content!'
* About to connect() to port 3000 (#0)
*   Trying connected
* Connected to ( port 3000 (#0)
> POST /my-bucket/my-file HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5
> Host:
> Accept: */*
> Content-Length: 21
> Content-Type: application/x-www-form-urlencoded
< HTTP/1.1 201 Created
< location: /my-bucket/my-file
< Date: Thu, 16 May 2013 02:53:59 GMT
< Connection: keep-alive
< Transfer-Encoding: chunked
* Connection #0 to host left intact
* Closing connection #0


Available via npm:

$ npm install suckit -g

Or via git:

$ npm install git:// -g


3-clause BSD. A copy is included with the source.


npm loves you