There are plenty of HHO generators for sale - plans, kits and the finished items. Often mis-understood as "run your car on water scams" which they are NOT. You cannot run any vehicle on the HHO that the alternator can produce. Very basic kits just produce HHO with no safety considerations, advanced kits have electronics to manage HHO production according to throttle position/road speed/flame traps/gas drier/turn off at idle/use the manifold Oxygen sensors/etc etc.
They produce Hydrogen and Oxygen gas which is then piped to the inlet manifold, sucked into the engine. The water is split by using electrolysis, from the "excess" electrical power from the alternator - which may or may not be true. A 70Amp alternator can consume upto 10HP - which consumes fuel. Most of the HHO generators produce small quantities of gas which is used immediately so (again in theory) there is a low risk of explosion.
The gases help reduce fuel consumption by more completely burning the fuel (diesel or petrol), which in theory is correct as internal combustion engines never burn the fuel as completely as they should. Leyland Trucks fiddled with oxygen injection back in the 60s or 70s - which is roughly the same theory of increasing the burn by using oxygen.
I read about an Indian coal powered electricity generator who is installing HHO generators into its boilers to reduce emmissions and fully burn the coal. They were claiming 30% (I think) savings in coal consumption.
There are a series of problems -
the HHO is hot which reduces the density of the charge air, so often an intercooler is required to cool the air back to the optimum 28C before you get the promised fuel savings. An intercooler increases the risks by storing a few litres of the HHO gas.
Price versus savings - you'd need to do the numbers - if you do 200,000kms a year it would pay back in a few weeks, 15,000kms a year and it would take for ever.