Researchers have created synthetic hydrogels that mimic living systems by replicating heartbeat-like pulsing and photosynthesis.