Dice the tofu and onion.
Beat the eggs and set aside.
Heat oil in a pan and sauté the onions.
Add the tofu and stir-fry together.
Season the tofu and onion with soy sauce.
Pour in the beaten eggs and scramble them lightly.
Serve the tofu and eggs over rice.