@tammymakesthings
So... that is indeed one hell of a rabbit hole. The reason why there isn't one standard solution is because the implementation depends a lot on the details of what you want to achieve.
To simplify things. Lets break this problem into two problems. One is charging the battery, and the other is powering the electronics.
(I am out of characters I will continue in the next reply)
@tammymakesthings
If I am understanding your situation correctly, you want the electronics to still work, if there is no battery, but there is USB power.
This means that you are going to need to either bypass the battery (which will be a bit of a pain) or find a battery charger which doesn't just shut down when there is no battery connected. This could be any constant voltage, constant current power supply (you can probably find a buck converter that does this)
(more is coming)
@tammymakesthings
The scary part here, however, is the fact that you now have a charging circuit, without any battery protection circuitry. So look for a lipo with overvoltage, undervoltage, and preferably also overcurrent protection built in.
Then, to power your electronics, depends on what voltage they need. If the voltage is below the lipo range, you can use a buck converter or ldo, if it is above the lipo range, you need a boost converter.
@tammymakesthings
If it is within the lipo range, you need a boost-buck converter.
(I am sorry, this explanation turned into a mess)
@tammymakesthings
Oh, just one more thing, though you probably already know this: don't underestimate the dangers of lipo batteries. If it is an option, get a lipo with a good built-in battery protection circuit. If that isn't an option, use an external battery protection circuit.
This kind of protection circuitry isn't always a perfect catch-all solution, but it sure helps eliminate a lot of the risks.
@tammymakesthings
Also, if you don't need the device to work without a battery, get an existing battery charger IC / module. That way you have all the built in protections from a circuit like that.
But in either case, make sure your charging circuitry can deliver enough current, to power the electronics, and still deliver a bit of charge to the battery.
@tammymakesthings What I’ve been doing lately is using ESP32 modules that have the charger circuitry built in. The battery is only 3.7 volts, so I can’t power a 5V circuit off of it, but with an upconverter you could get that. The benefit is that you get 3.3V that can be used for small circuits, and when you plug in it charges, and there is no gap between when the power is plugged in or unplugged.
The bonus is that you also have a small CPU that you can use in your circuits, often with WiFi, Lora, BlueTooth, etc. But even if you don’t code, these modules can be cost effective at under $10 each.