Vastu shastra (vāstu śāstra) is a traditional Hindu system of architecture which literally translates to "science of architecture.  These are texts found on the Indian subcontinent that describe principles of design, layout, measurements, ground preparation, space arrangement and spatial geometry. Vastu Shastras incorporate traditional Hindu and in some cases Buddhist beliefs. The designs are intended to integrate architecture with nature, the relative functions of various parts of the structure, and ancient beliefs utilizing geometric patterns (yantra), symmetry and directionalalignments.

Vastu Shastra are the textual part of Vastu Vidya, the latter being the broader knowledge about architecture and design theories from ancient India. Vastu Vidya knowledge is a collection of ideas and concepts, with or without the support of layout diagrams,that are not rigid. Rather, these ideas and concepts are models for the organization of space and form within a building or collection of buildings, based on their functions in relation to each other, their usage and to the overall fabric of the Vastu. Ancient Vastu Shastra principles include those for the design of Mandir (Hindu temples)  and the principles for the design and layout of houses, towns, cities, gardens, roads, water works, shops and other public areas.

There exist many Vastu-Sastras on the art of building houses, temples, towns and cities. One such Vastu Sastra is by Thakkura Pheru, describing where and how temples should be built. By 6th century AD, Sanskrit manuals for constructing palatial temples were in circulation in India. Vastu-Sastra manuals included chapters on home construction, town planning and how efficient villages, towns and kingdoms integrated temples, water bodies and gardens within them to achieve harmony with nature. While it is unclear, states Barnett as to whether these temple and town planning texts were theoretical studies and if or when they were properly implemented in practice, the manuals suggest that town planning and Hindu temples were conceived as ideals of art and integral part of Hindu social and spiritual life.

The Silpa Prakasa of Odisha, authored by Ramacandra Bhattaraka Kaulacara sometime in ninth or tenth century CE, is another Vastu Sastra. Silpa Prakasa describes the geometric principles in every aspect of the temple and symbolism such as 16 emotions of human beings carved as 16 types of female figures. These styles were perfected in Hindu temples prevalent in eastern states of India. Other ancient texts found expand these architectural principles, suggesting that different parts of India developed, invented and added their own interpretations. For example, in Saurastra tradition of temple building found in western states of India, the feminine form, expressions and emotions are depicted in 32 types of Nataka-stri compared to 16 types described in Silpa Prakasa. Silpa Prakasa provides brief introduction to 12 types of Hindu temples. Other texts, such as Pancaratra Prasada Prasadhana compiled by Daniel Smith and Silpa Ratnakara compiled by Narmada Sankara provide a more extensive list of Hindu temple types.

Ancient Sanskrit manuals for temple construction discovered in Rajasthan, in northwestern region of India, include Sutradhara Mandana’s Prasadamandana (literally, manual for planning and building a temple) with chapters on town building. Manasara shilpa and Mayamata, texts of South Indian origin, estimated to be in circulation by 5th to 7th century AD, is a guidebook on South Indian Vastu design and construction. Isanasivagurudeva paddhati is another Sanskrit text from the 9th century describing the art of building in India in south and central India. In north India, Brihat-samhita by Varāhamihira is the widely cited ancient Sanskrit manual from 6th century describing the design and construction of Nagara style of Hindu temples.

These ancient Vastu Sastras, often discuss and describe the principles of Hindu temple design, but do not limit themselves to the design of a Hindu temple. They describe the temple as a holistic part of its community, and lay out various principles and a diversity of alternate designs for home, village and city layout along with the temple, gardens, water bodies and nature.