BaseX offers two mechanisms to make new packages accessible to the XQuery processor:
# With {{Version|7.2.1}}, we offer a simple [[P#Packaging|packaging]] mechanism to directly install single XQuery and Java modules to the repository.
# The [[#EXPath Packaging|EXPath Packaging]] system provides a generic mechanism for adding XQuery modules to query processors. A package is defined as a {{Mono|.xar}} archive, which encapsulates one or more extension libraries.