Pyaz ke pakode is definitely one of the top favourites for chai time in the evening and on rainy days in most of North Indian household. It is a popular Indian street food.
By slicing the onions thinly you get that crispiness when the pakodas are fried. I have added some rice flour into this recipe, just to give a little extra crispiness. I've used red onion but you can use brown too, red is usually used in India.
This recipe is incomplete without chutney, so I made some green chutney with it. You can dull down the spiciness of the green chutney by adding yoghurt/curd or coconut yoghurt for vegans. Chutney is obviously optional, you can just eat it with tomato ketchup too.