Installing Frontend Modules
A frontend module extends the modAI browser application. Depending on what it does, it can add new pages and routes, contribute items to the sidebar, provide services that other modules consume, or replace a built-in UI component entirely. The steps below walk through cloning a module and wiring it into the module configuration.
Frontend modules are compiled into the Docker image at build time. Installing a module always requires rebuilding the frontend image. Runtime installation without a rebuild is not supported.
Step 1: Clone the Module Repository
Clone the module repository into the frontend modules directory using the external- prefix:
Example:
The result should look like this:
Step 2: Update modules.json
Open your public/modules.json (or create a custom one based on a preset). The module's documentation will list the exact entries to add.
The simplest approach is to use includes so you only need to add the new module entries on top of a built-in preset:
public/modules.json (example):
Refer to the module's documentation for the exact path value and any required dependencies.
Step 3: Rebuild and Redeploy
Step 4: Verify
Open the application in a browser and confirm the module's page or feature is visible.
If the module does not appear, check:
- The repository was cloned under the correct
external-prefix. - The
pathand module IDs inmodules.jsonexactly match the module's documentation. - The Docker image was rebuilt after cloning — not before.
Updating a Module
Removing a Module
- Delete the cloned directory:
- Remove its entries from
modules.json. - Rebuild and redeploy.