To use a composter, first, select the composter in your hotbar. If you don't have a composter in your inventory, you can quickly make one with a crafting recipe.
Just add the compass to your hotbar. Once the compass is in your hotbar, you will see the red compass arrow point to the direction of the World spawn point.