Rinse the jasmine rice under cold water until the water runs clear.
In a rice cooker or pot, combine the rinsed rice, coconut milk, water, salt, and pandan leaves (if using).
Cook the rice according to your rice cooker's instructions or bring to a boil in a pot, then reduce heat to low, cover, and simmer for 15-20 minutes until the rice is cooked and tender. Let it sit for 10 minutes before fluffing with a fork.
Heat vegetable oil in a pan over medium heat.
Add the minced garlic and chopped shallots. Sauté until fragrant and golden brown.
Stir in the blended red chili paste and cook for a few minutes until the oil starts to separate.
Add the tamarind paste, sugar, salt, and water. Simmer until the sambal thickens and the flavors meld, about 10-15 minutes. Adjust seasoning as needed.
Roast the peanuts in a dry pan until golden brown and crunchy.
Fry the anchovies until crispy.
Halve the hard-boiled eggs.
Enjoy your meal!