BaseX offers two mechanisms to make new packages accessible to the XQuery processor:
* The [[Packaging|EXPath Packaging]] system provides a generic mechanism for extending XQuery processors with new packages.
A package is defined as a {{Mono|.xar}} archive, which encapsulates one or more extension libraries.