Topic-based peer networking with priority events, real connection lifecycle, metrics, and an encrypted-stream backbone (weave-secret-stream). Built to pair with weave-proto-mp for typed multiplexed protocols.
use weave_swarm::{Swarm, JoinOpts};
let mut swarm = Swarm::new(keypair).await?;
swarm.join("team/notes", JoinOpts::default()).await?;
while let Some(msg) = swarm.next().await {
if msg.verify(&trusted_keys) { handle(msg.payload); }
}Start with the SDK or load the agent context. Every library is independently documented and versioned.