The Palace Library (; in Vietnam: ç§ÂæÂ¸æÂÂ, Bàthð sá»Â) was a central government agency in Imperial and monarchical China, Korea, and Vietnam generally in charge of maintaining and archiving the collection of the monarch's documents.
The office was in existence for the most part from the mid-200s CE (Cao Wei) to 1380 (Ming dynasty). Over the millennia there were five names for this office:
In addition to preserving the emperor's official documents, the agency was sometimes also tasked with compiling or editing historical records and state calendars. Before the Sui dynasty, it also handled documents flowing into and out of the imperial palace, making it interchangeable with the Secretariat. During the late Tang dynasty (after early 700s) and the Song dynasty, the office was largely non-functional and staffed by eminent officials for sinecure purposes.
The office during the Tang dynasty was headed by one director (ç§ÂæÂ¸ç£) and two vice directors (ç§ÂæÂ¸å°Âç£), and during the Song dynasty by one director and one vice director. The office was also staffed with assistant directors (ç§ÂæÂ¸ä¸Â) and assistants (ç§ÂæÂ¸é or ç§ÂæÂ¸éÂÂä¸Â). During the Yuan dynasty, the office was headed by four chief ministers (ç§ÂæÂ¸å¿), two directors (ç§ÂæÂ¸å¤ªç£), two vice directors, and two assistant directors (ç§ÂæÂ¸ä¸ or ç§ÂæÂ¸ç£ä¸Â), all eunuchs.
Modeled after the Chinese institution, the office also existed in Goryeo dynasty under several names:
In general, the office was staffed by 1 supervisor (å¤äºÂ; "pansa"), 1 director (ç£ or 令), 1 vice director (å°Âç£ or å¯令), 2 assistant directors (ä¸Â) and 1 assistant (éÂÂ).
The Palace Library Office (Hán-Nôm: ç§ÂæÂ¸æÂÂ, Bàthð sá»Â) of the Nguyá» n dynasty was one of the four sá» of the cabinet of the Nguyá» n dynasty. It was first established under the reign of the Minh Mạng Emperor under the name Palace Library Section (ç§ÂæÂ¸æÂ¹, Bàthð tào) and would retain its final form during the reign of the Thiá»Âu Trá» Emperor. The Palace Library Office of the Southern Court took care of the copying of poems and documents, preserving important documents, such as official correspondence with other countries, national maps, and public bibliographies.