I found that a sd for a Raspberry Pi gets corrupted a lot when it isn't shut down properly and was looking for a better power solution, preferably already made though also looking into building something.
I prefer to have a small rechargeable lithium battery connected, with whatever connecting hardware being able to signal the Pi to power down when power is lost, maybe with a minute gap to recover or switch power sources. I'd probably include a buzzer if I build something to let me know power was lost.
Power would be plugged into the battery hardware to keep it charged while running the raspberry pi, though not necessary.
Any suggestions?