Nightmare This is the repository for the Nightmare Middleware. The src directory holds the source. The Nightmare middleware is a PUB/SUB system built on top of a Kademlia DHT. Nightmare uses Kademlia's XOR routing metric to create a multicast tree.