AcmeUK wrote:@rooppoorali says:-I do not see this design fit for ESP8266
I agree
It is not mains isolated, and the originators target was to supply a total power consumption less than 50mA at 5V.
That is just not adequate for the ESP8266.
When an ESP8266 awakes it draws around between 70-250mA .
It is no wonder the diodes burnt out.