arup shared his USB DIY Li-ion battery charger circuit in the project log forum.
The circuit uses both op-amps of an LM358 to control the charging of a single cell lithium ion battery. Charging automatically stops when the battery is full, and it is possible to charge batteries that have gone below the undervoltage limit. Power is provided through USB or any other 5V source.
Via the forum.