This is a mod for the Fabric API. It allows players to define what can be composted inside the mod configs. Simply follow the default template. (That said, by default this mod allows bamboo to be composted)
If you don't know what the joke in the title is, read the name with an emphasis on the second syllable.