Gungei
Gungei · The Whale Pod
Across open water, messages move like whale-song between distant companions, each traveler guiding the next until direction emerges without a captain.
A peer-to-peer communication system for ships traversing cold seas, where messages move in living formation across open waters. Built from scratch in Zig to orchestrate fleet-scale coordination across the open sea: Gossip protocols, Raft consensus, and mesh networking. Ships form a self-organizing mesh network across the ocean; they discover each other, share status updates, relay distress signals, and maintain awareness of their maritime neighbors, all without central infrastructure.
Technology
The Vessel
Ships form a self-organizing mesh network across the ocean. They discover each other, share status updates, relay distress signals, and maintain awareness of their maritime neighbors, all without central infrastructure.
Core Principles
- No central server; fully decentralized, leaderless by default
- Resilient to partitions; operates during network splits, heals automatically
- Eventually consistent; uses Anti-Entropy to reconcile divergent state
- Chaos-ready; tested with random failures, packet loss, and high latency
- Single binary; ship node deploys anywhere
- Observable; real-time topology visualization showing gossip propagation
Operational Capabilities
| Capability | Engine |
|---|---|
| Gossip Protocols | SWIM-based failure detection + epidemic broadcast |
| Consensus | Raft leader election |
| Event Sourcing | SQLite append-only log with CQRS |
| Chaos Engineering | Simulation mode with network partitions |
| NAT Traversal | UDP hole punching for mesh connectivity |
| Real-time Systems | WebSocket observers + native TUI live updates |