When I go to restaurants, and even in my own home, I see a lot of uneaten food being tossed either because people just didn't have room in their stomachs, or they're parts of the vegetable or dead animal that simply won't go into the recipe. These are of course organic materials, and as such are biodegradable and useful to the ecosystem as Mufasa explained to Simba once upon a time. To reduce the amount that ends up unused (except by very intrepid seagulls and pigeons and rats) in landfills, we can instead put selected portions of these food scraps into a compost heap to return nutrients and organic matter to soil that can grow new crops. Here's an expert opinion on that matter:
“Compost adds nutrients and organic matter back to soil, which benefits agriculture, reduces our reliance on synthetic fertilizers, diverts methane-producing organic materials from landfills, and improves soil’s water retention capacity so you don’t need to water as much.”
A way to be less wasteful, more environmentally conscious, AND make your garden better? Sold!
Thankfully, in some states such as California, sanitation companies provide green compost bins to put food scraps and certain paper food containers in to divert waste from landfill. You definitely want to throw unused meats, eggs, and other animal waste into that bin, but for most of your vegetable and fruit waste, you can add mixtures of that to your compost heap. The rule of thumb is that you will need both "brown" and "green" components in your pile. The "green" materials are mostly stuff that more recently died or that herbs that you had just cut from your veggie garden to use in stew, which includes grass clippings and even manure. The "brown" materials are like twigs and wood chips. The ratio is something you have to optimize for your own garden, just like in your experiments, but usually a one-to-one ratio of brown to green will work to keep the microorganisms happy as they chomp away at the compost goodies and prepare them for re-use.
Another consideration is the carbon-to-nitrogen ratio, and for that I offer this resource, in addition to the previous resources, to tell you what you should and should not add to your pile to produce optimal compost while avoiding curious wildlife. The hard and fast rule is to avoid meat products because those will stink when they decompose, and will also attract raccoons and other furry friends. It also helps to turn over the components in the pile-in-progress to aerate the materials so the microorganisms can continue to do their work and the compost heap doesn't turn into slime.
There are some states that are starting to allow human composting as well, but that's probably a bit too macabre for some of you, so that is obviously a final resort!
If you don't want to spend that much on a compost bin, you can build your own! At school, I had my students use inexpensive two-by-four beams, PVC pipes, a Rubbermaid trash barrel with lid, some zip ties and a soldering iron to set up a series of compost tumblers. The cost for these items has probably risen since (thanks, inflation!) but it should still allow you to build your own MacGyverized container for a small fraction of the cost. The soldering iron was used to burn a door into the trash barrel, which could be secured by zip ties and latched shut to allow a small amount of aeration. Use your own ingenuity to find your own solutions that fit your budget!
When you're first starting, it may take a bit to find just the right mix of materials to create the ideal compost for your plants and herbs. In addition to composting, this first resource has plenty of other solutions to help you create a more sustainable lifestyle for both your health and the betterment of the world. Suggestions include how to reduce plastic and water use, be more energy efficient, and even how you can change your diet and exercise habits.
Since there is some time before you can start the compost pile going anyway, as most folks suggest starting in the spring, here is another resource that gives you a calendar of activities to create and maintain your heap. While you are waiting, it is okay to start a small bin and just turn it every now and then to get it ready for spring and summer when the composting process really ramps up. Good luck, and thanks for helping to create a more sustainable planet!