Preheat your oven to 350°F. Grease and line an 8-inch round or square baking pan. Set the pan aside.
In a medium-size, heat-safe mixing bowl or measuring cup, place the boiling water and brewed coffee and the cocoa powder, and whisk until well-combined. The cocoa powder will resist combining, so just keep whisking.
Add the (optional) chopped chocolate, and mix until melted and smooth. Add the mayonnaise, sugar, salt, and vanilla, and whisk until well-combined.
In a large bowl, place the flour, xanthan gum, cornstarch, baking soda, and about 5 ounces of the (optional) chocolate chips, and mix to combine and coat the chips in the flour.
Create a well in the center of the dry ingredients, and add the wet mixture. Mix until very smooth and well-combined. The batter will start off very thin, but will thicken a bit as you stir. Keep mixing until that happens.
Transfer the cake batter to the prepared pan, and smooth into an even layer using a moistened spatula or broad, flat knife.
Sprinkle the remaining (optional) chocolate chips evenly over the top, and bang the cake a few times on the counter to help the chips adhere.
Place the pan in the center of the preheated oven and bake for about 30 minutes, or until done. A round cake will be thicker, so it will take a bit longer to bake than a square cake. Begin checking a square cake at 25 minutes.
Doneness should be determined by a few things: the cake should be puffed and rounded at the edges. It also shouldn’t jiggle when moved back and forth, and a toothpick inserted in the center should come out mostly clean (and certainly not wet).
Remove the cake from the oven, place the pan on a wire rack and allow to cool completely in the pan. To make it easier to slice, you can chill the cake, still in the pan, in the refrigerator.
For the topping.
Place the chopped dark chocolate in a small, heat-safe bowl.
Place the coconut cream in a small, heavy-bottom saucepan and melt over a low flame. Pour the hot cream over the chopped chocolate.
Allow the chocolate and hot cream to sit, undisturbed, for about 5 minutes before whisking until completely smooth.
Pour the glaze directly over the cooled cake, and allow it to set at room temperature.
To whip the chocolate ganache into frosting, allow it to cool at room temperature, then cover and refrigerate it until beginning to set (about 20 minutes).
Using a handheld mixer or a stand mixer fitted with the whisk attachment, whip the frosting until lighter in color and relatively fluffy (about 3 minutes).
Frost the cakes as desired, then slice into 9 equal pieces and serve.
Video
Notes
Flour blend notes My favorite gluten free flour blends are made with superfinely ground rice-flour that's well-balanced with other ingredients. I recommend Better Batter's original blend, Nicole's Best multipurpose blend with 1/2 teaspoon xanthan gum added, or Bob's Red Mill 1-to-1 (in the blue bag). Bob's isn't my absolute favorite because it has an aftertaste and can make crumbly baked goods, but it's inexpensive and readily available and has improved a lot recently. If you'd like to make your own blend, please see my all purpose gluten free flour blends page. For the brewed coffee. You can use decaffeinated coffee. You can replace the brewed coffee with more water.For the coconut cream in the topping. If you don’t have to be dairy-free, use heavy whipping cream in the same amount. If you do use the coconut milk, do not use “light” coconut milk, which is just thick coconut milk with water added.Cake recipe adapted heavily from The New York Times chocolate snack cake. Originally published on the blog in 2021. In 2022, more text and resources added to the post; recipe unchanged.