Peel onion, carrot, and garlic cloves and dice them finely. You can also use a food processor for this step. Dice the green onions as well
Add 2 tbsp of butter (or lard or tallow) to a pan and let it heat over medium/high heat. Once the fat is melted and the pot hot add the diced vegetables and let it sauté for about 5 minutes stirring occasionally. Set aside to cool off
Prepare the meat. Cut beef (unless using ground meat) and liver into 1- or 2-inch chunks. You can use partially frozen meat and liver to facilitate cutting and grinding. Place all the meat in a clean, refrigerated bowl while you set your grinder up
Preheat the oven to 375 degrees F
Grind meat and liver using a medium die
Combine ground meat and liver, sauteed vegetables, 2 eggs, 4 tbsp of coconut flour, salt, spices, herbs, and 3 tbsp of ketchup or tomato paste (if desired). Mix using your clean hands until all the ingredients are well combined
Place the meatloaf mixture into 1 big or 2 small loaf pans and bake for 30 minutes in preheated oven
(Optional) remove meatloaf from the oven and spread 4 tbsp of ketchup or 4 tbsp of tomato paste mixed with 1 tbsp of brown sugar evenly all over the top
Bake for another 40 minutes, or until the meatloaf is cooked through. Broil for 2 minutes if desired
Remove the meatloaf from the oven and let it sit for about 5 or 10 minutes before slicing and serving