plummet

0.0.3 • Public • Published

streaming + syncing http + json api for PlumbDB (which is built on leveldb)

npm install plummet


var plummet = require('plummet')

plummet('test', function(err, server) {
  server.listen(8000)
  console.log('plummeting on 8000')
})


curl -X POST http://localhost:8000 -H "Content-type: application/json" -d '{"pizza":"waffle"}'
curl -X POST http://localhost:8000/_bulk -d '{"docs":[{"hello":"world"}, {"foo":"bar"}]}' -H "Content-type: application/json"
curl http://localhost:8000/_changes
curl http://localhost:8000/_changes?since=1339537769596014
curl http://localhost:8000/1339537769596014
curl -X POST http://localhost:8000/_pull -d '{"source":"http://remoteplummet"}' -H 'content-type: application/json'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    2
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i plummet

Weekly Downloads

2

Version

0.0.3

License

none

Last publish

Collaborators

  • maxogden