Why it works: Garlic and shallot match in chemistry and in kitchens. They rank in the top 4% of all ingredient pairs, and 1,949 recipes mention both. Both carry coumarin, which smells sweet, hay. The science ↓
The recipe
Serves 5Ingredients
Contains: soy (auto-detected from the ingredients and method; we can miss things, so check labels)
Directions
Prepare the sauce
Grind the chiles, garlic, and shallots together, then set aside.
Combine the palm sugar, tamarind, and water in a saucepan.
Boil the mixture until all the ingredients dissolve and form a syrup.
Pour the syrup over the ground chile mixture. Mix well until evenly combined.
Assemble and serve
Cut the tofu diagonally, then press lightly until the center of the tofu is slightly crushed.
Arrange the tofu on a plate, then drizzle with the spicy and sweet sauce.
Steps grouped into stages for easier reading; the method is the source's own.
Found this recipe through an AI assistant? CompKitchen also shows which ingredients go well together and why, from the aroma molecules they share and how often recipes combine them. Try the pairing tools.
Explore the science
The flavor team
The pairs that carry this dish. Each one is judged two ways: how much aroma chemistry they share, and how many recipes mention both.
-
Garlic + shallottop 4% of all pairsAroma overlapstrongMentioned together1,949 recipes
Shared aroma: coumarin (sweet, hay).
-
Garlic + tofutop 5% of all pairsAroma overlapmoderateMentioned together604 recipes
Shared aroma: linalool (floral, citrus).
-
Sugar + tamarindtop 6% of all pairsAroma overlapmoderateMentioned together362 recipes
Shared aroma: guaiacol (smoky, sweet).
-
Garlic + tamarindtop 6% of all pairsAroma overlapstrongMentioned together395 recipes
Shared aroma: furaneol (caramel, strawberry).
-
Shallot + tamarindtop 7% of all pairsAroma overlapmoderateMentioned together20 recipes
Shared aroma: nonanal (fat, citrus).
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
What each ingredient does
- Bird's eye chiles
- Provide the heat that defines the sauce.
- Palm sugar
- Adds sweetness and body to the syrup as it dissolves.
- Tamarind
- Adds sourness that balances the sweetness and heat.
- Tofu
- Forms the base of the dish, soaking up the sauce.
- Kecap manis
- Adds sweetness and a thick, savoury-sweet depth.
The step that matters
Boiling the palm sugar, tamarind, and water into a syrup. If the mixture boils too briefly, the sugar may not fully dissolve and the syrup will be thin and grainy. Boiling until the sugar is fully dissolved and the liquid has reduced gives a smooth, cohesive sauce that clings to the tofu.
Flavor stand-ins for the shallot
How well each one fits the dish's main ingredients (garlic, sugar, tamarind, tofu):
- Capsicumbetter flavor fit
- Tomatobetter flavor fit
- Welsh onionbetter flavor fit
- Shallotthe original
Fit is the average pairing score against garlic, sugar, tamarind, tofu. Candidates are from the same food group and used in at least 100 recipes. This compares flavor only: it does not check the job the ingredient does in the dish (bulk, moisture, acidity, structure).
“What each ingredient does” and “The step that matters” were written by Claude, an AI, from this recipe’s own method. They are not checked recipe by recipe, so they can be wrong.
Make it your own
Stand-ins, a drink, and quick taste fixes for this dish, ranked by how well each fits its other ingredients: shared aroma molecules and how often recipes combine them.
You might also like
The Sunday pairing: one pairing, the chemistry behind it, and how to cook it. No spam, unsubscribe anytime.
Prefer an account? Create a free account for sign-in; Pro adds the full results and chemistry.
Illustration
Illustration
Illustration
Illustration