The MapStruct code base is thoroughly documented via JavaDoc. You can find the latest docs here. The individual pages contain generated class diagrams showing type hierarchies and package contents.
To get yourself acquainted with the code base, you could start by taking a look at the docs of the MappingProcessor which give a high-level overview of the general architecture. Then check out the org.mapstruct.ap.internal.model and org.mapstruct.ap.internal.processor packages.
If you have any questions don’t hesitate to ask in our GitHub Discussions or StackOverflow, we are here to help!