The Tripitaka is the formal term for a Buddhist canon of scriptures. Many different versions of the canon exist throughout the Buddhist world, containing an enormous variety of texts. The most widely-known version is the Pali Canon of the Theravada school.
Tipitaka Scripture
Divisions of the Tipitaka
Vinaya Pitaka
The first category, the Vinaya Pitaka, was the code of ethics to be obeyed by the early sangha, monks and nuns. Some rules and practices were regarded by the Buddha as essential and foundational to the pursuit of his philosophical teachings. Others were invented on a day-to-day basis as the Buddha encountered various behavior problems with the monks.
The second category, the Sutra Pitaka (literally "basket of threads", Pali: Sutta Pitaka), consists primarily of accounts of the Buddha's life and teachings. The Sutra Pitaka has numerous subdivisions: it contains more than 10,000 sutras.
The third category is known to the Theravada school as the Abhidhamma Pitaka. It is a collection of texts in which the underlying doctrinal principles presented in the Sutra Pitaka are restated and explained in a more systematic framework. In Mahayana and Vajrayana tripitakas, this pitaka often contains treatises that are referred to as shastras.