1.0.1 • Published 10 years ago
swarmkvd v1.0.1
empty-package
run your own distributed key-value store!
like bittorrent sync, but for a kvstore
installation
npm install -g electron-prebuilt
npm install -g swarmkvdnow generate some keys
node -pe "JSON.stringify(require('ssb-keys').generate())" > keys.jsonusage
swarmkvd start keys.json
Host a kv. If keys.json has a public and private key,
you can put items. If it has only a public key, you
can get and list items.
optional: -d [database]
swarmkvd get KEY
Print a json object for the values at KEY,
mapping hashes to values
swarmkvd list
Print a list of keys and values as json, one per line.
swarmkvd put KEY VALUE
Assoc VALUE with KEY in the kvdeveloping
npm install
npm run watchnow you can edit test/index.js or src/index.js
npm test will re-run on changes