Soak the noodles. Place the rice vermicelli in a bowl of water and soak according to the package instructions until just softened. Drain well and set aside.
Cook the aromatics. Heat oil in a wok or large pan over medium heat. Add the garlic and shallots and stir-fry until fragrant and lightly golden.
Make the sauce. Add the palm sugar, tamarind paste, fish sauce, dark soy sauce, and water. Stir until the palm sugar dissolves and the sauce is smooth.
Add the noodles. Add the drained rice vermicelli to the wok and toss with the sauce for 2–3 minutes until evenly coated.
Add the egg. Push the noodles slightly to the side and crack the egg into the pan. Scramble it, then mix it into the noodles.
Finish the dish. Turn off the heat and stir in the bean sprouts and green onions. Toss everything together and serve immediately.
Notes
Use the nutrition card in this recipe as a guideline.
Feel free to customize with your favorite vegetables and protein.