# Module Events

These events are triggered around the lifecycle of BoxLang modules.

| Event Name                 | Data | Description                     |
| -------------------------- | :--: | ------------------------------- |
| `afterModuleRegistrations` |      | After all module registrations. |
| `preModuleRegistration`    |      | Before a module registration.   |
| `postModuleRegistration`   |      | After a module registration.    |
| `afterModuleActivations`   |      | After all module activations.   |
| `preModuleLoad`            |      | Before a module is loaded.      |
| `postModuleLoad`           |      | After a module is loaded.       |
| `preModuleUnload`          |      | Before a module is unloaded.    |
| `postModuleUnload`         |      | After a module is unloaded.     |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://boxlang.ortusbooks.com/boxlang-framework/interceptors/core-interception-points/module-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
