The Raft consensus algorithm, running live in your
browser. Nodes elect a leader, replicate a log, and recover when the
network breaks. Click a node to cut it off; split the cluster and watch a
minority stall while the majority keeps going. This page runs the exact
same lib/ code as the library and its tests.
Each node shows its term and its log as colored blocks (one color per term). A ✓ marks committed entries. Click any node to toggle its network connection.
Built from scratch, zero dependencies — source on GitHub.