https://github.com/elsehow/swarmkvd
run your own distributed key-value store!
https://github.com/elsehow/swarmkvd
Last synced: about 1 year ago
JSON representation
run your own distributed key-value store!
- Host: GitHub
- URL: https://github.com/elsehow/swarmkvd
- Owner: elsehow
- License: bsd-3-clause
- Created: 2016-04-05T00:32:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-05T16:56:10.000Z (about 10 years ago)
- Last Synced: 2024-08-10T23:22:19.286Z (almost 2 years ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 swarmkvd
now generate some keys
node -pe "JSON.stringify(require('ssb-keys').generate())" > keys.json
## usage
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 kv
## developing
npm install
npm run watch
now you can edit `test/index.js` or `src/index.js`
`npm test` will re-run on changes