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
- Host: GitHub
- URL: https://github.com/igi-111/hydria
- Owner: IGI-111
- Created: 2018-02-15T22:10:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-18T14:24:34.000Z (about 8 years ago)
- Last Synced: 2025-04-13T17:56:47.436Z (about 1 year ago)
- Topics: container, distributed, encryption, ipfs, yjs
- Language: JavaScript
- Size: 47.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
});
```