Slice onions then, and caramelize low and slow with olive oil and a pinch of salt, about 3 hours. Do not rush! There are only 3 ingredients, so each one matters.
Preheat oven to 400 degrees
Thaw puff pastry for about 30 minutes, so you can work with it. Then cut into 1" squares.
Gently pull each square on each side evenly, as shown in video on instagram, to make it thinner. You want it to be about half the thickness it started as. You can roll it out thinner before you cut it, but I find it bounces back and is easier to be consistent when you thin out individually
Grease a mini muffin pan with butter, avocado oil, or other neutral oil. Place puff pastry squares into the cups, it should make 30
Into each puff pastry cup, add enough caramelized onion to fully cover the bottom, then top each cup with crumbled feta.
Cook for 15-20 minutes, until puff pastry and feta have both turned golden brown at the top.