Skip to content

About

SDK to write and test Noyau plugins: definePlugin, blocks, testPlugin and the noyau-plugin CLI.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

@noyau/plugin-sdk

Write and test Noyau plugins.

npm install --save-dev github:getnoyau/noyau-plugin-sdk#v0.1.0

Noyau provides this SDK to installed plugins, so it stays a development dependency.

Export Use
definePlugin(definition) Default export of the plugin's server file: tools, routes, actions, views, widgets, hooks, offline.
blocks Declarative blocks for views and widgets (view, text, stat, list, button, form…). Noyau renders them; plugins never send HTML.
storedCollection(key) Offline collection with revisions and conflict detection.
testPlugin(definition, options) Runs a plugin without Noyau: storage per account, simulated network and Noyau API, permissions checked like on the server.
@noyau/plugin-sdk/manifest validateManifest, the same check Noyau and the catalogue run.

Command line:

npx noyau-plugin validate          # check noyau-plugin.json
npx noyau-plugin pack              # build an archive to install in Noyau
npx noyau-plugin dev --call=tool:greet --args='{"name":"Sam"}'

Start from noyau-plugin-template. The full guide is in the Noyau repository: docs/plugins-guide.md.

This repository is generated from the Noyau source; open issues and pull requests on getnoyau/noyau.

Licence

MIT

About

SDK to write and test Noyau plugins: definePlugin, blocks, testPlugin and the noyau-plugin CLI.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages