BaseX offers two mechanisms to make new packages accessible to the XQuery processor:
# With {{Version|7.2.1}}, we offer a simple [[Packaging#Packaging|packaging]] mechanism to directly install single XQuery and Java modules and JAR files to the repository.
# The [[Packaging#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.