Harivamsa is an important work of Sanskrit literature. It is a kind of appendix to the Mahābhārata, that runs to 16,375 verses and focuses specifically on the life of Lord Krishna.
The Harivamsha (also Harivamsa; Sanskrit: Harivaṃśa, "the lineage of Hari (Vishnu)") is an important work of Sanskrit literature, containing 16,374 verses, mostly in Anustubh metre. The text is also known as the Harivamsha Purana. This text is believed to be a khila (appendix or supplement) to the Mahabharata and is traditionally ascribed to Veda Vyasa. The most celebrated commentary of the Mahabharata by Neelakantha Chaturdhara, the Bharata Bhava Deepa also covers the Harivamsha. According to Adi Parva, the Harivamsha is divided into two parvas or books and had 12,000 verses. The manuscripts found in the 19th century in different parts of India included three books and are also known as puranas - the Harivamsha Purana, the Vishnu Purana and the Bhavishya Purana. These books are included with the eighteen Mahapuranas of the Mahabharata.
The first book of Harivamsa Parva describes the creation of the cosmos and the legendary history of the kings of the Solar and Lunar dynasties leading up to the birth of Krishna. Vishnu Parva recounts the history of Krishna up to the events prior to the Mahabharata. Bhavishya Parva, the third book, includes two alternate creation theories, hymns to Shiva and Vishnu, and provides a description of Kaliyuga. While the Harivamsha has been regarded as an important source of information on the origin of Visnu's incarnation Krishna, there has been speculation as to whether this text was derived from an earlier text and what its relationship is to the Brahma Purana, another text that deals with the origins of Krishna.