Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mafintosh/peervision
a live p2p streaming protocol
https://github.com/mafintosh/peervision
Last synced: about 1 month ago
JSON representation
a live p2p streaming protocol
- Host: GitHub
- URL: https://github.com/mafintosh/peervision
- Owner: mafintosh
- License: mit
- Created: 2015-06-25T21:50:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-27T00:24:46.000Z (about 9 years ago)
- Last Synced: 2024-10-29T11:13:36.814Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 156 KB
- Stars: 97
- Watchers: 19
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-peer-to-peer - peervision
- awesome-peer-to-peer - peervision
- awesome-network-js - peervision
README
# peervision
WIP (a live p2p streaming protocol)
```
npm install peervision
```## Usage
``` js
var peervision = require('peervision')var producer = peervision()
producer.append(new Buffer('some data'))
producer.append(new Buffer('some more data'))console.log('stream id is', producer.id)
var client = peervision(producer.id)
var stream = client.createStream()
stream.pipe(producer.createStream()).pipe(stream)
client.get(0, function (err, buf) {
console.log(buf) // some data
})client.get(1, function (err, buf) {
console.log(buf) // some more data
})
```THIS CURRENTLY STILL A WORK IN PROGRESS.
CURRENTLY ALL DATA IS STORED IN MEMORY.## How does it work?
peervision uses a flat merkle tree where every bottom
indirectly verifies the entire previous tree using [flat-tree](https://github.com/mafintosh/flat-tree) and
signs the latest node using elliptic curve cryptography.(more details to be added here obviously)
## License
MIT