How Does a Glow Stick Make Light Without Becoming Hot?
A glow stick converts chemical energy directly into visible light, avoiding the extreme heat required by a flame or incandescent bulb.
Inside the plastic tube are two liquids kept apart. One usually contains hydrogen peroxide inside a fragile glass vial. The surrounding liquid contains an oxalate ester and a fluorescent dye.
Bending the stick breaks the inner vial. When the liquids mix, a chemical reaction produces an unstable, energy rich intermediate. That energy is transferred to the dye, exciting its electrons. As the electrons return to their normal state, they release the energy as visible light.
Different dyes produce different colors. The reaction creates little heat because much of its released energy leaves as light, a process called chemiluminescence. The chemical reaction itself does not determine the final color. The chosen fluorescent dye determines which wavelength of light is released.
Temperature changes the speed. A warm glow stick shines more brightly but uses its chemicals faster. A cold one appears dimmer but lasts longer. This is why putting a glow stick in a freezer can preserve some remaining glow, although it cannot reverse the reaction.
Once the reactants are consumed, the glow ends permanently. The snap does not switch on a hidden battery. It breaks a barrier and allows two stored chemicals to meet.
Source: The Chemistry of Lightsticks, Journal of Chemical Education - What Are Glow Sticks? Chemical and Engineering News

Eastern span of the San Francisco–Oakland Bay Bridge, 2013
Source: Frank Schulenburg