Preheat your oven to 350°F (175°C).
- In a medium-sized bowl, whisk together the eggs, maple syrup (or brown sugar), cinnamon, nutmeg, ginger (if using), vanilla extract, and salt until smooth.
- Add the pumpkin puree and heavy cream (or coconut cream) to the egg mixture. Whisk until fully combined and smooth.
- Pour the mixture into individual ramekins or a greased 9-inch baking dish.
- Place the ramekins or dish in a shallow pan and fill the pan with hot water halfway up the sides of the ramekins (this creates a water bath to prevent the custard from cracking).
- Bake for 30–35 minutes if using ramekins, or 45–50 minutes for a larger dish, or until the custard is set around the edges but still slightly jiggly in the center.
- Allow the custard to cool to room temperature, then refrigerate for at least 2 hours (or overnight) before serving.
- Serve chilled, topped with fresh whipped cream if desired.