In the 1973 animated classic “Charlotte’s Web,” an entire musical number is dedicated to the film’s antagonist, a rat named Templeton, feasting on garbage at the county fair. He tosses apple cores, banana peels and turkey legs down his craw with abandon. At one point, he juggles snacks foraged from the dumpster while simultaneously using a discarded melon rind as a surfboard. The rat doesn’t merely survive on garbage — he thrives among it.

Now, as humans around the world bed down in their nests, many are faced with the fact of their own mounting trash. Even those who once diligently gathered their onion skins and citrus husks for compost may now be stuck with a decision: freeze their organic waste for stock or throw it away?

In the face of pandemic, climate dread and the seemingly ceaseless parade of macabre that is the news, saving a couple of onions from the dumpster may feel akin to rearranging the deck chairs on the Titanic.

But as Tejal Rao of The New York Times put it, “it could also shape a collective response, and all of these small habits could add up to a meaningful shift that changes our food culture.” And on the most individual level, these small grasps at sovereignty may also yield some scrap of agency over our own lives.

Here are a handful of things you can make with your would-be garbage.

Animal-fat candles

Kami Ahrens, an assistant curator at the Foxfire Foundation, an Appalachian heritage preservation center in Mountain City, Georgia, said 20th-century Appalachian homesteaders were scrupulous about conserving and repurposing their hard-fought resources. “There was a saying that when you used a hog, you used everything but the squeal,” she said.

Animal fat, for instance, was used to bake cornbread, season cast iron, and make soaps and candles.

To set a firelit mood in your home, simmer pork or beef fat at a low temperature on the stove, or in a crock pot for several hours with a bit of water. Skim the solids that rise to the top, then pour the leftover liquid into a jar. Dip a wick into the jar, and voilà: You have a perfectly serviceable candle that, lacking as it may be in aesthetics, can do wonders for your sense of self-sufficiency. And, Ahrens said reassuringly, it won’t smell like meat.

Plant-based dyes

Onion skins, beet tops, carrot leaves, avocado pits and tea bags can all be used as natural dyes, which are less saturated but yield pleasantly muted hues. Avocado pits will lend a soft blush tone, coffee lands somewhere on the ochre-to-sand spectrum, and hibiscus tea imparts mauves and muted reds.

Even the cooking water from black beans can be used, according to Anastasia Cole Plakias, a founder of the rooftop farming company Brooklyn Grange. “It makes a really beautiful, very pale blue,” she said. Plakias also makes watercolors from vegetable dyes and even uses beets to add color, and subtle sweetness, to frosting.

The dyeing process requires brewing a concentrated tea from your ingredients, then simmering unbleached natural fabric, like cotton, linen or wool, in the dye. To do this, you’ll need a pot dedicated to dyeing and a mordant, which fixes the color in place.

Typically people buy alum, although other folk solutions include boiling a pot of old nails. (This is why you do not want to use your dye pot for cooking later.)

Gardening materials

Simon Perez, who developed recipes for “Future Food Today,” a cookbook focused on sustainable eating, said crushed eggshells could be blended with water to give plants a boost of calcium and magnesium, and coffee grounds sprinkled directly on the soil add a jolt of nitrogen.

Ahrens, of Foxfire, recommends drying out chicken bones in a dehydrator or low-temperature oven, then grinding them into bone meal with a food processor. The result is a fertilizer rich in phosphorus, one of the primary nutrients plants require.

In the last couple of weeks, regrowing scallions appears to have supplanted sourdough baking as the isolation coping mechanism of choice. Alliums in general are well suited for regrowing, as are celery crowns, herbs like mint and even pineapple tops.

Fruit-rind cocktails

After brewing a pot of coffee at home, Claire Sprouse doesn’t always toss her spent grounds. Instead, she makes what she calls “old-brew,” running the grounds through a second brew cycle. The bitter, diluted result isn’t something you’d necessarily want to drink out of a coffee mug, but when combined with equal parts sugar, it becomes a syrup ideal for use in an espresso martini or an old-fashioned.

Sprouse, whose Brooklyn cafe and bar, Hunky Dory, has been in limbo since mid-March, has been cooking at home much more than usual. “The capacity for food waste right now is very high,” she said.

Inspired by the challenge, Sprouse reached out to bartenders around the country for cocktail recipes that make use of kitchen scraps. The resulting collection, “Optimistic Cocktails,” is available online, as a PDF, for $15; all proceeds will go to the contributing bars and a group of funds for workers without legal status. Recipes include a drink incorporating a banana peel syrup with rum, lime and orange juice.

Some may toss citrus peels into the compost pile after juicing them, but the peel itself has its own flavor and aroma.

To capture the citrusy goodness, place your collected peels in a bowl, dust them with sugar and let them sit on the countertop, covered, for a day or so. The sugar will extract citrus oil from the peels, resulting in a bracingly bright syrup ideal for a Collins or gimlet.