This directory contains local plugins for next-workflow-builder.
Each plugin adds an integration (e.g. Slack, GitHub, Stripe) with its own credentials, actions, step handlers, and optionally custom API routes and UI components.
Scaffold a new plugin with the CLI:
npx nwb create-pluginThis generates a plugin directory with the required files:
plugins/
my-service/
index.ts # Plugin definition + registration
icon.tsx # SVG icon component
credentials.ts # Credential type definition
test.ts # Connection test function
steps/ # Step handlers (one per action)
After creating your plugin, register it in plugins/index.ts:
import "./my-service";Then run discovery to generate registry files:
npx nwb discover-pluginsWhen creating plugins for the community:
- Follow the plugin structure documented in the official guide
- Prefer
fetchover SDK dependencies to reduce supply chain attack surface - Always import
"server-only"in step files - Use
withStepLoggingfor execution tracking - Include a connection test function
- Test with the example app before publishing
For complete guides on plugin development, configuration fields, output display, custom routes, and more:
- Plugins Overview — how plugins work, structure, config field types, output templates
- Creating Plugins — step-by-step guide to building a plugin from scratch
- API Reference — plugin registry functions and types
- Contributing — development setup and submission guidelines