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: 4 months ago
JSON representation

Distributed name server

Lists

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 data

Options:
-h, --help Print usage
--no-live Exit after the first download

Examples:
$ 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 network

All data is stored in ~/.hypername/
```

## License

MIT