
Firezone's connectivity library, connlib, uses a sans-IO design to manage network connections and WireGuard tunnels, allowing for fast and exhaustive tests, deep customization, and high assurance of its functionality. The sans-IO design abstracts away IO and time, enabling the use of pure state machines and event loops, which provides flexibility, composes well, and is easy to test and maintain.