Preheat oven to 350° and grease a 13x9- set aside.
In a large skillet, add the coconut oil and cook the onion and mushrooms with the salt for 5-10 minutes or until softened.
Meanwhile, squeeze the spaghetti squash using a clean kitchen towel. Ringing it in batches works best.
If the meat is not already cooked, add it to the pan now and brown.
Add in the spaghetti sauce and mix well.
Turn the heat off and add in tomatoes and basil.
Dump into a large bowl (if your pan isn't big enough) and add in spaghetti squash and then the beaten eggs.
Pour into the prepared pan and top with pepperoni.
Bake for 45 minutes.