01 - Preheat oven to 375°F.
02 - Heat olive oil in a skillet over medium heat. Add onion and cook until softened, about 3 minutes. Add garlic and cook 1 minute more.
03 - Stir in marinara sauce, soy sauce, and chili flakes. Simmer 5 minutes. Season with salt and pepper to taste. Remove from heat.
04 - In a bowl, mix ricotta cheese, egg, basil or parsley, half the mozzarella, and half the Parmesan until combined.
05 - In a 9x13-inch baking dish, spread a thin layer of sauce. Arrange 12 dumplings over the sauce.
06 - Dollop half the ricotta mixture over dumplings, then sprinkle with one-third of remaining mozzarella and Parmesan.
07 - Repeat layers: sauce, remaining dumplings, remaining ricotta mixture, another third of the cheeses.
08 - Top with remaining sauce and all the remaining cheeses.
09 - Cover with foil and bake for 25 minutes.
10 - Uncover and bake an additional 10 to 15 minutes, until cheese is golden and bubbling.
11 - Let rest for 10 minutes. Garnish with fresh basil before serving.