Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mafintosh/hypername
Distributed name server
https://github.com/mafintosh/hypername
Last synced: 17 days ago
JSON representation
Distributed name server
- Host: GitHub
- URL: https://github.com/mafintosh/hypername
- Owner: mafintosh
- License: mit
- Created: 2016-11-02T00:39:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-02T01:47:01.000Z (about 8 years ago)
- Last Synced: 2024-10-16T23:37:21.403Z (23 days ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 36
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-peer-to-peer - hypername
- awesome-peer-to-peer - hypername
README
# hypername
Distributed name server
```
npm install -g hypername
```## Usage
On one computer
``` sh
hypername init my-topic```
On another
``` sh
hypername init my-topic
```Now the first computer will be able to share name=value pairs with the other one
On the first computer do
``` sh
hypername set my-topic hello world
hypername sync my-topic
```On the other
``` sh
hypername sync my-topic --exit # exit after first change
hypername get my-topic hello # prints world
```## API
```txt
Usage:
$ hypername [options]Commands:
init Initialize a hypername database.
set Save a value in the store
get Get a value from the store
list List all key value-pairs
sync Connect to the swarm and synchronize dataOptions:
-h, --help Print usage
--no-live Exit after the first downloadExamples:
$ hypername init my-topic # start hypername & print key
$ hypername set my-topic hi cat # save a key-value pair
$ hypername get my-topic hi # get a value at a key
$ hypername list my-topic # list all key-value pairs
$ hypername sync my-topic # sync hypername over the networkAll data is stored in ~/.hypername/
```## License
MIT