Hi,
im kinda new to thiss stuff, so please don't mind any dump questions

I'm currently designing a product which is extremely limited by size (max 35 x 35 x 18 mm. The logic stuff and the product itself will take like 22 x 22 mm.
So there is not that much place for an 230 VAC to 5V DC power supply, which should be able to deliver ~ 20 mA of current.
Since im limited in size i thought about an transformerless design since transformers are normally relativ bulky and the thing itself will be fully enclosed in thick plastic.
What about this minimal transformerless (capacitive) design?

Maybe i can du a full bridge rectifier with 4 diodes.
What do you think?
Thanks in advance,
markus