Cobalt sulfide nanoparticle impregnated nitrogen and sulfur co-doped graphene nanosheets synthesized in water-based media equip Zn–air batteries with good cycling stability.