Self-healing hydrogels may find uses in industry, including better plastics, as well as in medicine, such as the treatment of stomach perforations and ulcers. Sophie Bushwick reports