USB-C Charging/Discharging module - MOST COMPACT?

Hi all.

Currently modelling and 3D printing a new battery compartment to convert my DT8 from 1x 18650 to 2x18650 (in parallel).
In the process I plan on integrating a USBC charging circuit into the new battery compartment.

My understanding is that I can’t do this without isolating the charging circuit and batteries from the existing driver and light engine - so I also plan on integrating a dedicated toggle switch that switches batteries from the USBC charger circuit, to the driver.

What I’m searching for is the most compact USBC charging circuit. Would be really ideal if it could also discharge so the torch can act as a powerbank.

Any advice is well appreciated.

Cheers

No need to insulate the charging circuit from the driver, that’s just going to add unnecessary complexity, and you will be unable to use your light while charging. The easiest battery charging IC to implement is the TP4056, no fancy features, just a plain old linear regulator designed for charging Li-ion batteries, plus some status outputs.