https://github.com/adzialocha/p2p-chat
Simple p2p chat with mDNS discovery, append-only log data structure and replication protocol for learning purposes
https://github.com/adzialocha/p2p-chat
append-only p2p p2p-chat toy-project
Last synced: 10 months ago
JSON representation
Simple p2p chat with mDNS discovery, append-only log data structure and replication protocol for learning purposes
- Host: GitHub
- URL: https://github.com/adzialocha/p2p-chat
- Owner: adzialocha
- License: mit
- Created: 2019-06-04T21:48:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-04T14:31:33.000Z (almost 7 years ago)
- Last Synced: 2025-04-05T03:31:52.759Z (about 1 year ago)
- Topics: append-only, p2p, p2p-chat, toy-project
- Language: Rust
- Size: 24.4 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# p2p-chat
A toy p2p chat protocol implementation inspired partly by [Hypercore](https://github.com/datproject/docs/blob/master/papers/dat-paper.pdf) with local [mDNS discovery](https://en.wikipedia.org/wiki/Multicast_DNS), append-only log data structure and replication protocol for learning purposes.
Please note: *This is work in progress and will be published together with a tutorial when finished.*
## Usage
Start chat channel:
```
cargo run
> chat://20d7eb0934d482fca4f975270b8ad6e28ecbdeebad5bed8c1acd5006eec771ea
```
Join existing chat channel:
```
cargo run -- --channel chat://20d7eb0934d482fca4f975270b8ad6e28ecbdeebad5bed8c1acd5006eec771ea
```