Main.js Introduction
Main.js is the core entry point for any expansion. It has exclusive access to the internal API features provided by Nexo Maker, making it the central file where your expansion's behavior is defined.
This file is critical because it determines:
Which components, modules, or features are registered.
What information or functionality is sent to Nexo Maker.
Key Points
Only
Main.jscan interact fully with the internal API (Modular.js has partial access), ensuring secure and consistent integration.All registrations (e.g., buttons, routes, overlays, ...) must be defined here.
Best Practices
Keep
Main.jsorganized and clearly document each registration.Ensure that all changes in
Main.jsare tested within Nexo Maker before publishing the expansion.
Last updated