@amolith@masto.nixnet.xyz
It's a LiPo charging module, similar to these cheap ones on ali: https://www.aliexpress.com/item/4000061318186.html
I wanted to have a smaller board as my first pcb design, so thought this would be nice as this circuit will also be part of my larger tamafoxi pcb.
5v in either through USB-C or the pins at the top
charges the lipo connected with the JST-PH connector
two ic's at the bottom are for over-current and over-discharge sensing, which will cut off the battery gnd if detected
left middle pins are for sensing the voltage at the ESP/arduino side, thru the voltage divider to bring it down to 3.3v, right middle pin can be used with a pull-up to detect if the chip is in charging state. Those are features the ali modules don't have