01 - Melt butter in a small skillet over medium-low heat. Add sliced onion, sugar, and a pinch of salt. Cook gently, stirring occasionally, until onions are deeply golden and caramelized, about 12 to 15 minutes.
02 - Transfer caramelized onions and any pan juices to a blender. Add 2 tablespoons milk and blend until completely smooth. Strain through a fine-mesh sieve for a silky purée.
03 - Brew 2 shots espresso and divide evenly into two serving cups.
04 - Stir 1 tablespoon of strained onion purée into each cup of espresso to fully integrate flavors.
05 - Heat the remaining milk until steaming. Froth using a milk frother or whisk until creamy and foamy.
06 - Pour frothed milk over the espresso-onion mixture. Sweeten each cup with honey or maple syrup if desired. Gently stir and serve immediately.