Skip to content
Public template

About

Template for a Noyau plugin: tool, view, widget, setting, route, sandboxed page and offline collection.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Noyau plugin template

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.

Start

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"}'
  1. Change id, name, description and author in noyau-plugin.json, and name in package.json. Ids starting with noyau- are reserved.
  2. Declare only the permissions you use. Noyau shows them before installation, and the plugin cannot do anything else.
  3. Try it in Noyau: Administration › Plugins › Install › Git with your repository URL, or Archive with the file from npm run pack.

Files

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.

Publish

When a commit is ready, add it to the Noyau plugin catalogue with a pull request. The catalogue pins that exact commit.

Licence

MIT. Change it to any OSI-approved licence for your plugin.

About

Template for a Noyau plugin: tool, view, widget, setting, route, sandboxed page and offline collection.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages