Heidi is a work of children`s fiction published in 1881 by Swiss author Johanna Spyri , originally published in two parts as Heidi: Her Years of Wandering and Learning and Heidi: How She Used What She Learned It is a novel about the events in the life of Johanna Spryi