On headlamps driven by 1 Li-Ion battery it is common to see 3.5mm 'barrel' socket to plug the charger (of course you can just take out your battery and charge it in external charger, but using internal is easier).
I've just take the cheap Li-Ion charging controller PCB and added 3.5mm plug, and made the box to glue it alltogether.
charger.scad | 2.1KB | |
charger.stl | 1.6MB |