@notty/plugin-api
v1.0.0
Published
Plugin API and testing toolkit for Notty CMS extensions
Readme
@notty/plugin-api
Public SDK for building Notty plugins.
Current Status
- Plugin authoring workflow is available through
definePlugin()anddefinePluginFactory() - Includes manifest types, admin/backend extension contracts, and
validateManifest() - The API is usable now, but should still be treated as early-stage and evolving
- Distribution remains restricted to the
@nottynpm scope
Usage
import { definePlugin } from '@notty/plugin-api';
export default definePlugin({
manifest: {
name: '@acme/plugin-example',
displayName: 'Example Plugin',
version: '0.1.0',
kind: 'plugin',
engines: { notty: '>=0.16.0' },
},
register(ctx) {
ctx.routes.get('/status', () => ({ ok: true }));
},
});For scaffolding, use create-notty --plugin.
License
MIT
Part of Notty CMS
