bevy_r_place

Crates.iobevy_r_place
lib.rsbevy_r_place
version0.1.0
created_at2025-01-29 23:54:34.401503+00
updated_at2025-01-29 23:54:34.401503+00
descriptionp2p r/place clone using bevy
homepagehttps://github.com/mosure/bevy_r_place
repositoryhttps://github.com/mosure/bevy_r_place
max_upload_size
id1535963
size340,118
Mitchell Mosure (mosure)

documentation

README

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
Commit count: 38

cargo fmt