In a bowl, toss the cubed tofu with soy sauce and cornstarch until well coated.
Heat coconut oil in a pan over medium heat and fry the tofu until golden and crispy. Remove and set aside.
In the same pan, sauté the onion, garlic, and ginger until fragrant.
Add red curry paste and cook for another minute.
Pour in the coconut milk, maple syrup, lime juice, salt, pepper, and red pepper flakes. Stir well.
Simmer the sauce for 5 minutes, then add the crispy tofu back into the pan.
Cook for another 2-3 minutes until everything is well combined.
Garnish with fresh cilantro and serve with cooked rice.