| Crates.io | ubiquity-mesh |
| lib.rs | ubiquity-mesh |
| version | 0.1.1 |
| created_at | 2025-07-23 22:39:28.095889+00 |
| updated_at | 2025-07-23 23:07:42.184277+00 |
| description | Unix socket mesh for zero-port agent communication |
| homepage | |
| repository | https://github.com/ubiquity/ubiquity-rs |
| max_upload_size | |
| id | 1765337 |
| size | 67,907 |
Unix socket mesh for zero-port agent communication in the Ubiquity ecosystem.
ubiquity-mesh enables consciousness-aware agents to communicate without using network ports:
use ubiquity_mesh::{ConsciousnessMesh, MeshMessage};
use ubiquity_core::agent::AgentRole;
// Create mesh node
let mesh = ConsciousnessMesh::new("agent-1", AgentRole::Architect).await?;
// Join the mesh
mesh.join().await?;
// Send directed message
mesh.send_to("agent-2", MeshMessage::new("Hello")).await?;
// Broadcast to all
mesh.broadcast(MeshMessage::new("Status update")).await?;
// Receive messages
while let Some(msg) = mesh.receive().await? {
println!("From {}: {}", msg.sender, msg.content);
}
┌─────────────┐ ┌─────────────┐
│ Agent 1 │────│ Agent 2 │
└──────┬──────┘ └──────┬──────┘
│ │
┌──┴───────────────────┴──┐
│ Unix Socket Mesh │
│ /tmp/ubiquity/*.sock │
└─────────────────────────┘
Unlike traditional TCP networking:
The mesh uses Unix filesystem permissions:
This project is licensed under the Fair License.