Checkout hypercore-protocol.org and the github. This is the opensource base that Holepunch and Keet are built on.