In a medium size skillet, heat the olive oil over medium heat. Once the oil is shimmering, add the onion and sauté until soft but not fully cooked, about 1-2 minutes. Add garlic and chili flakes and continue to sauté until garlic is cooked through, another 1 minute.
While onion and garlic are sautéing, pour the tomatoes into a bowl and mash them up with a fork.
Once onion and garlic are finished cooking, add canned tomatoes to the skillet. Also rinse out the can of tomatoes, and the bowl where you mashed the tomatoes. Add this tomato water to the sauce (about ½ cup). Season with salt and pepper to taste. Cook the tomato sauce until it has thickened, 10-15 minutes. Add torn basil to sauce and stir.
Crack an egg into a small bowl. Form a small well in the sauce and pour the egg into the well. Do this 4 times. Sprinkle the eggs with 1 tablespoon of the parmesan cheese.
Cook the eggs in the tomato sauce, partially covered, until the whites are set, but the yolks still runny, about 5 minutes.
Top the eggs with remaining parmesan cheese, additional pepper and basil if desired.
Serve with toasted bread and enjoy!