The code from my nodecongress 2022 talk. You can look at the individual commits to see how the code evolves.