Starting point for a Noyau plugin. Click Use this template on GitHub, then rename the plugin.
It shows each kind of contribution: an MCP tool, a view built from blocks, a home widget, a setting, an HTTP route, a page in a sandboxed iframe and a collection that works offline.
npm install
npm run validate # checks noyau-plugin.json
npm test # runs the plugin without Noyau
npx noyau-plugin dev --call=tool:greet --args='{"name":"Sam"}'- Change
id,name,descriptionandauthorinnoyau-plugin.json, andnameinpackage.json. Ids starting withnoyau-are reserved. - Declare only the permissions you use. Noyau shows them before installation, and the plugin cannot do anything else.
- Try it in Noyau: Administration › Plugins › Install › Git with your repository URL, or Archive with the file from
npm run pack.
| File | Role |
|---|---|
noyau-plugin.json |
Manifest: identity, permissions, what the plugin adds to Noyau. |
server.js |
Tools, routes, actions, views, widgets and offline collections, run in an isolated process. |
ui/ |
Page shown in a sandboxed iframe; it talks to Noyau with postMessage. |
test/ |
Tests with testPlugin from the SDK: storage per account, simulated network and permissions. |
When a commit is ready, add it to the Noyau plugin catalogue with a pull request. The catalogue pins that exact commit.
MIT. Change it to any OSI-approved licence for your plugin.