You need a power source, a way to level convert the driver pins, and some protection in case something goes wrong with the circuit ... he was able to control the relay using 3.3V, 5V, or 12V.
Finally, there is usually (but not always) a ‘zero-crossing detection circuit’. This causes the relay to wait until ... control the ‘on’ time of the input signal, the zero-crossing ...