Line your tin: Place mini muffin liners in a mini muffin pan.
If you only have a standard muffin pan, use fewer liners and make larger cups.
Melt the chocolate: In a heatproof bowl, add chocolate and coconut oil. Microwave in 20–30 second bursts, stirring between each, until smooth. You can also use a double boiler.
Add vanilla (optional): Stir in vanilla for a softer, rounder chocolate flavor.
Make the base layer: Spoon about 1 to 1.5 teaspoons of melted chocolate into each liner.
Tilt the pan or use the back of a spoon to push some chocolate slightly up the sides to create a shell.
Chill the base: Place the pan in the freezer for 10 minutes to set.
Start the caramel: In a small saucepan over medium heat, melt the butter. Add the sweetener and cook, stirring, until dissolved and lightly golden. With allulose, you’ll see a smooth syrup; with erythritol, it may look slightly grainy—keep stirring.
Finish the caramel: Lower the heat.
Slowly whisk in the heavy cream (it may bubble). Add vanilla and a pinch of salt. Simmer 2–4 minutes, stirring, until the caramel thickens slightly and coats a spoon.
For extra thickness, whisk in a tiny pinch of xanthan gum at the end. Remove from heat and let it cool 5–10 minutes; it will thicken more as it cools.
Fill with caramel: Add about 1 to 1.5 teaspoons of caramel to each chocolate base. Don’t let it touch the liner edges—leave space for the top chocolate to seal.
Top with chocolate: Spoon enough melted chocolate over each to fully cover the caramel.
Gently tap the pan on the counter to smooth the tops and remove air bubbles.
Salt and set: Sprinkle with flaky sea salt. Chill in the fridge for 45–60 minutes, or freezer for 20–25 minutes, until firm.
Serve: Peel away the liners and enjoy. For the best texture, let them sit at room temperature for 5 minutes if stored in the freezer.