Spanish Total.js
English
Documentation For AI agents
Contents

Plugin folder

The files and folders of a plugin.

.md GitHub
On this page

Every folder in plugins is one plugin. Pluginable loads all of them on start. The sample Products plugin looks like this:

plugins/products/
├── index.js
├── schemas/
│   └── products.js
└── public/
    ├── index.html
    └── detail.html

index.js

Describes the plugin: its name, icon, position in the menu, routes, permissions and settings. Required. See Plugin options.

schemas

The server actions of the plugin, one or more .js files with NEWACTION(...). The ROUTE lines in index.js make them available to the screens.

public

The screens of the plugin:

  • index.html: the main screen, opened from the menu at /admin/<folder>/.
  • Other .html files: extra screens listed in exports.routes, such as detail.html. See Add a detail page.

Built-in plugins

FolderWhat it does
adminSign-in page, admin account and account menu.
settingsThe Settings screen.
products, profilesSamples. See Sample plugins.
Made in Europe