A compact spraying device (10) connectable to a surface and for spraying a fluid comprises a housing (16) with an inlet (20), a pump (28) in fluid communication with the inlet (20), a retractable nozzle (24) in fluid communication with the pump (28), a nozzle cover (22) and a drive system (30). The retractable nozzle (24) selectively extends forward relative to a front side of the housing (16) into a spraying position for spraying the fluid and retracts inside the housing to a retracted position when not spraying. The nozzle cover (22) is selectively moveable from a closed position in which the cover (22) covers the nozzle (24) when the nozzle (24) is in a retracted position, to an open position in which the cover (22) moves to allow the nozzle (24) to extend into the spraying position. The drive system (30) moves the retractable nozzle (24) and the nozzle cover (22) and operates the pump (28).