I've been thinking about making an online UPS with a LiFePo4 battery. "Online" means the load is running on the inverter even when mains power is available.
To show the general idea, there's a diagram of one below based on a lead-acid battery. The 120VAC mains power on the left drives the...