How eggs thicken
Egg proteins start to unfold at around 60°C and link up as they heat, trapping liquid in a soft network. In a stirred custard, constant movement keeps the network fine, so the result is smooth and thick rather than set into a block.
Kaya is a stirred custard, like crème anglaise, made with coconut milk instead of cream and cooked much further. Everything in the recipe comes down to setting egg proteins slowly enough that they thicken instead of scrambling.
Egg proteins start to unfold at around 60°C and link up as they heat, trapping liquid in a soft network. In a stirred custard, constant movement keeps the network fine, so the result is smooth and thick rather than set into a block.
Above about 82–85°C the proteins bond too tightly and squeeze out liquid, forming lumps: scrambled eggs. A water bath caps the temperature and slows the heating, giving a wide margin. Sugar also raises the setting temperature, which is why very sweet kaya is more forgiving.
Heating sugar to about 160–180°C breaks it into hundreds of new compounds, brown and bitter-sweet. Adding caramel to the custard gives Hainanese kaya its colour and toffee depth. The kaya itself never gets hot enough to brown.
Pandan juice is coloured by chlorophyll and scented by 2-acetyl-1-pyrroline, the compound also found in jasmine rice. It colours and perfumes Nyonya kaya without changing how it sets.
Coconut milk is roughly a fifth fat. The fat coats the egg proteins, making the custard richer and slightly slower to set than one made with dairy milk. It also carries the coconut aroma.
Cold butter melts slowly, so each bite has a cool, salty, solid piece against hot toast and sweet kaya. Warm butter soaks into the bread and the contrast is lost.
In kopitiam eggs the white is only partly set and the yolk liquid, because the eggs sit in water that started at boiling but is cooling. The outer white sets only its most sensitive proteins; the yolk stays below the temperature at which it thickens.
Dark soy adds salt, umami and a little molasses sweetness; white pepper adds a sharp, musty heat. Both cut through egg yolk, as salt and pepper do on a boiled egg.


