Starting a Expansion
How to start making your expansion
π§© What Are Expansions?
Expansions are JavaScript-based modules that extend the functionality of Nexo Maker. They can execute commands, send and receive data, and dynamically modify or add content to the platform.
Each Expansion interacts with the core platform through the Nexo Maker API, giving developers a powerful way to create custom tools, automations, and UI integrations.
π Where Do Expansions Live?
Nexo Maker automatically detects Expansions by scanning the following directory:
For an Expansion to be recognized, it must meet the following requirements:
Be placed inside its own subfolder under
Expansions/
Contain a
main.js
file as the entry point
π Example Structure:
π Creating Your First Expansion
Navigate to
Documents > NexoMaker > Expansions
Create a new folder with your expansionβs name (e.g.
MyAwesomeExpansion
)Inside that folder, create a
main.js
file
This main.js
file should export your logic using the module.exports.init
method. This is the entry point Nexo Maker will run when the Expansion loads.
π Basic Template
Once structured correctly, Nexo Maker will automatically recognize and execute your Expansion. Metadata ID is required to load and match with your registered project in the Developer Portal. Metadata Version is also required to specify which version is installed and recognize updates.
π‘ Accessing the API
To interact with Nexo Maker, use the provided API functions available on api.nexomaker
. For convenience, you can create a shorthand reference:
This allows you to call API methods more easily:
Last updated