There is an Anchor Optimizer (apparently the only one) called Hero's Anchor Optimizer, it's open source but I dont know how anything about modding, I would like to use it on the latest version, can somebody help me?
Modrinth: https://modrinth.com/mod/anchor
GitHub: https://github.com/HerobaneNair/herosanchoroptimizer