Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/max-mapper/dhtkv
CLI for storing arbitrary key/value data in the bittorrent mainline DHT
https://github.com/max-mapper/dhtkv
Last synced: 23 days ago
JSON representation
CLI for storing arbitrary key/value data in the bittorrent mainline DHT
- Host: GitHub
- URL: https://github.com/max-mapper/dhtkv
- Owner: max-mapper
- Created: 2015-09-25T04:01:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-21T20:32:40.000Z (almost 9 years ago)
- Last Synced: 2024-05-22T18:13:31.673Z (6 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 63
- Watchers: 4
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-peer-to-peer - dhtkv
README
# dhtkv
CLI for storing key/value data in the bittorrent mainline DHT.
You can use `get` and `put` to use [BEP 44](http://www.bittorrent.org/beps/bep_0044.html) functionality to store arbitary 1KB immutable or mutable metdata in the DHT itself
You can use `announce` and `lookup` to do the more standard ip:port announcing on the DHT
## usage
```
# using bep44 get/put (any payload)
$ dhtkv put "hello world"
23bd9c8eefcd7f7bab73c148d4f025f5ed4ae669$ dhtkv get 23bd9c8eefcd7f7bab73c148d4f025f5ed4ae669
hello world# using standard announce/lookup (ip:port payload only)
$ dhtkv announce some-infohash
announce success$ dhtkv lookup some-infohash
{"host":"1.1.1.1","port":60911}
```