NOVELTY - Hydrogen generation apparatus comprises: (1) boiler; (2) pump delivering a feedstock; (3) reactor for producing hydrogen from the feedstock; (4) burner in thermal communication with the reactor; (5) waste gas outlet in full communication with the burner; (6) reactor pressure sensor; (7) second stage delivering a purified product gas to a product outlet and a raffinate to a raffinate outlet; (8) combustion gas inlet; and (9) computer controller.    USE - For preparation of hydrogen (claimed).    ADVANTAGE - A purified hydrogen gas is efficiently produced by managing heat within the apparatus at small scale. The catalytic combustion of feedstock in the presence of the combustible gas based on the computer controller facilitates operation. The catalytic burning of feedstock in the presence of a combustible gas enhances apparatus efficiency. The electricity need only be used for powering of sensors and a control computer during steady state and optionally igniter heating in the course of apparatus startup.    DETAILED DESCRIPTION - Hydrogen generation apparatus (A1) comprises:    (1) boiler (b1);    (2) pump delivering a feedstock into (b1);    (3) reactor (r1) for producing hydrogen from the feedstock;    (4) burner (b2) in thermal communication with the reactor (r1), (b2) receiving a catalytically combustible mixture of feedstock and a combustible gas, the feedstock is metered to (b2) by a first control valve (v1);    (5) waste gas outlet in full communication with the burner (b2);    (6) reactor pressure sensor (s1) monitoring a reactor pressure within (r1);    (7) second stage delivering a purified product gas to a product outlet and a raffinate to a raffinate outlet;    (8) combustion gas inlet delivering the combustible gas to (b2); and    (9) computer controller receiving data from (s1) and controlling (v1).    An INDEPENDENT CLAIM is included for a process (P1) for forming hydrogen from a feedstock involving:    (1) providing a preheated feedstock to an exothermic reaction reactor;    (2) allowing sufficient resonance time for the feedstock to undergo an endothermic reaction to yield hydrogen and an endothermic reaction product;    (3) transferring the hydrogen and the endothermic product to a secondary stage water gas step membrane reactor operating at a lower temperature than the reactor; and    (4) collecting from secondary stage a purified hydrogen flow and a raffinate gas stream.