I have been working for a couple of months on an IoT project that controls AC through a triac. The project works quite well but to shrink it, I took apart a Raspberry Pi, 5V 2Amps power supply and soldered the input to the AC line and the output to the logic of the device, with excellent results. This works quite well for prototyping but now I want to scale production and tearing apart power supplies is not an option. So I am looking for the schematics of a power supply that works in a similar way of the ones that are used to charge phones/tablets, power single board computers, and similar stuff. Any help?