Melt the palm sugar in a small pot and simmer with fish sauce, the onions, peel and pandanus leaf for a few minutes, add the tamarind water and continue to simmer for a minute or so, until thick.
Skim. Strain. Cool.
The balance should be salty, sweet and sour.
Break the eggs into individual bowls, and then carefully roll into a wok of hot oil.
Fry for 30 seconds or so, turn and, after another 30 seconds, remove and drain.
Repeat as required.
Dress the hot eggs in a bowl with the sweet fish sauce, the deep fried shallots, garlic and chillies.