If you don’t have day-old rice, cook fresh rice, spread it on a tray to cool, and let it sit for 20-30 minutes to dry out. Cold rice is easier to fry and won’t clump together.
Dice shallots or red onion finely.
Heat 2 tbsp of vegetable oil in a large pan or wok over medium-high heat. Add your shredded mushrooms and saute with kecap manis until browned. Keep aside.
Crumble tofu and add all your seasonings. Mix together and stir fry in the same pan for 1-2 minutes. Remove the tofu and set aside.
Add more olive oil if necessary. Sauté the shallots until fragrant and softened, about 2-3 minutes.
Add the white part of scallions, red chilies, minced garlic and saute for a minute.
Add kecap manis, long beans and other vegetables (if using) to the pan. Stir-fry for another 2 minutes until the vegetables are tender but still vibrant. Add tofu egg and mushrooms back into the pan.
Add the cold rice to the pan and break up any clumps. Stir well to combine with the vegetables.
Drizzle dark soy sauce. Stir-fry everything together until the rice is evenly coated and heated through.
Serve nasi goreng with your choice of garnish: fried shallots, sliced cucumber, tomato wedges, lime wedges, red chilies, and spring onions.