Folklore of Indonesia

Folklore of Indonesia is known in Indonesian as dongeng (lit. 'tale'), cerita rakyat (lit. 'people's story') or folklor (lit. 'folklore'), refer to any folklore found in Indonesia. Its origins are probably an oral culture, with a range of stories of heroes associated with wayang and other forms of theatre, transmitted outside of a written culture. Folklores in Indonesia are closely connected with mythology.
Indonesian folklore reflects the diverse culture of Indonesia as well as the diversity of ethnic groups in Indonesia. Many ethnic groups have their own collection of tales and folklore that have been told for generations. The stories are usually told to children as bedtime stories and have pedagogical values such as kindness, benevolence, modesty, honesty, bravery, patience, persistence, virtue, and morality. For example, one popular theme is "the truth will always prevail, and evil will always be defeated."
While most Indonesian folkloric stories have happy endings and 'happily ever after' themes, some employ tragedy and have sad endings.
Most Indonesian folklore started as an oral tradition told by storytellers and parents for generations within Indonesian villages. The stories were often sung or chanted in several oral traditions such as pantun, tembang, or children's chants. Some were performed in performing arts such as wayang and sendratari (dance drama). In Malay tradition, some of them are written in scripture as hikayat, while in Javanese tradition, several stories are connected with historical figures and historical records such as babad or older kakawin scriptures such as Pararaton. Indian Hindu-Buddhist epics also influenced Indonesian folklore, especially through wayang and dance drama in Java and Bali. The Hindu epics the Ramayana and Mahabharata have become their own separate versions with Indonesian twists and interpretations that often differ from the Indian versions. The Buddhist Jataka tales also has made their way into Indonesian fables and animal folklore. Jataka stories are found carved as narrative bas-reliefs on ancient Javanese candis, such as the Mendut, Borobudur and Sajiwan temples; telling animal fables about the virtues of Buddha, who performed exceptional acts of kindness in his animal incarnations before being reborn as a Boddhisattva and the future Buddha.
These stories have been collected and used in the Indonesian education system, in small cheap books, usually tied in with a district or region of Indonesia. Many stories explain events or establish moral allegories using iconic or symbolic characters of the past. They also seek to explain the origins of names of people and places from Folk etymology.
During the Suharto era, there were sections of the Indonesian Department of Education and Culture that researched and wrote reports on collected cerita rakyat.
There are several genres of Indonesian folklore.
The story of the struggle of a common protagonist to finally achieve happiness despite facing many problems.
The stories that try to explain the origins of certain places, names and/or things.
Heroic tales of struggles, battles and war. The story of a hero's adventure and their exploits.
Animal tales, featuring animals that behave like humans or interact and speak with humans.
Witch, demon, spirit or ghost tales, based on urban legends or supernatural phenomena.