An open API service indexing awesome lists of open source software.

https://github.com/igi-111/hydria

a simple encrypted distributed state container
https://github.com/igi-111/hydria

container distributed encryption ipfs yjs

Last synced: about 2 months ago
JSON representation

a simple encrypted distributed state container

Awesome Lists containing this project

README

          

# Hydria

Hydria is a simple encrypted distributed container to share confidential data among trusted
peers without a central point.

## Usage

Listen to state updates:
```js
const secretKey = 'top-secret-key';

new Hydria(secretKey).await(hydria => {
hydria.listen(state => {
console.log(state);
});
});
```

Publish state updates:
```js
const secretKey = 'top-secret-key';

new Hydria(secretKey).await(hydria => {
const state = { someObject: "with values" };
hydria.send(state);
});
```