这是indexloc提供的服务,不要输入任何密码
Skip to content

mosure/bevy_r_place

Repository files navigation

bevy_r_place 🖼️

GitHub License crates.io

p2p r/place clone, view the web demo on mainnet

Alt text

features

  • local libp2p
  • headless bootstrap node
  • default mainnet and network selection
  • published image
  • LAN auto-discovery
  • prometheus/opentelemetry metrics /w grafana frontend
  • swarm visualization
  • solana implementation

native client

git clone https://github.com/mosure/bevy_r_place
cd bevy_r_place
cargo run

host a node

new nodes will automatically connect to mainnet, to host your own network, specify --bootstrap-node flag

docker run ghcr.io/mosure/bevy_r_place:main

metrics

opentelemetry

see: https://libp2p.github.io/rust-libp2p/metrics_example/index.html

TODO: native client metrics feature flag

graph visualization

TODO: swarm topology viewer

TLS

required for proper WSS and WebRTC function

local setup

  • mkcert -install
  • mkcert 127.0.0.1
  • openssl x509 -in ./127.0.0.1.pem -outform der -out ./certs/certificate.der
  • openssl rsa -in ./127.0.0.1-key.pem -outform der -out ./certs/private_key.der
  • cargo run -- --bootstrap --headless --certificate-chain-path ./certs/certificate.der --private-key-path ./certs/private_key.der --webrtc-pem-certificate-path ./certs/webrtc.pem

About

p2p r/place clone

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

 
 
 

Languages