This was part of our package.json - https://github.com/tristanls/k-bucket.
It may not be used due our kademlia being persistent. But it may be a valuable source to understand how to make our own kademlia implementation more performant.
For now I'm removing k-bucket from package.json.