1 unstable release

new 0.1.0 Jan 29, 2025

#467 in Visualization

MIT/Apache

110KB
2.5K SLoC

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 mosure/bevy_r_place

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

Dependencies

~81–125MB
~2.5M SLoC