Inexpensive SMALL UPS circuit
Difficult to answer - what are you intending to run on this UPS, and for how long?  It might be worth checking if your intended use case is actually possible... a washing machine, for example, would require a very non-trivial battery to USP for any real amount of time,

In which case, I'd strongly recommend buying a real UPS.  Poking mains power is dangerous.