freeforall

remote key value store without auth

FREE FOR ALL

This is the simplest key-value store I could make up.

No auth, usable from any domain.

Use it for your prototypes only, please.

Uses leveldb and segments dbs with the level-sublevel nodejs module.

> npm install -g freeforall

> freeforall <dbPath:multi.db> <port:5566>

GET /<dbname> returns pipe separated array of existing keys

GET /<dbname>/clear

GET /<dbname>/get/<key>

GET /<dbname>/del/<key>

GET /<dbname>/set/<key>/<value>

<script type="text/javascript" src="http://<FFA_SERVER>:<FFA_PORT|5566>"></script> 
<!-- you can optionally suffix the URL with /cliBrowserAsync.js for consistency -->
var f = freeforall(dbName)
 
f.allKeys(cb) // cb(err, arrOfKeys) 
 
f.clear(cb)
 
f.get(key, cb) // cb(err, val) 
 
f.del(key, cb)
 
f.set(key, val, cb)

jsbin sample

<script type="text/javascript" src="http://<FFA_SERVER>:<FFA_PORT|5566>/cliBrowserSync.js"></script> 
var f = freeforall(dbName)
 
f.allKeys() // array of keys 
 
f.clear()
 
f.get(key) // returns val 
 
f.del(key)
 
f.set(key, val)

jsbin sample