The whole core structure of Pagy is very simple: it is organized around 3 small modules of just ~100 lines of code in total:
||The small class that keeps track of the variables involved in the pagination||source, documentation|
||The optional module that you can include in your controllers in order to automatically create the Pagy instance||source, documentation|
||The module to include in your views in order to get a few helpers for the HTML output||source, documentation|
However, besides these files, you can explicitly require optional extras that can handle special features, collections or environments.
See also: Global Configuration