@splcode/create-plugin-driver
v3.0.0
Published
Scaffold Podcart plugin drivers against the injected event-bus contract
Readme
@splcode/create-plugin-driver
Scaffolds a new Podcart plugin driver with optional UI. Run it inside an empty folder to generate a working plugin with the current backend and frontend contract.
Usage
mkdir MyPlugin && cd MyPlugin
npx @splcode/create-plugin-driverThe generator prompts for:
- Driver class name
- Plugin UI type (
None,Vanilla, orMantine) - Custom element tag name for custom UIs
- UI tab name
Generated contract
- Drivers extend
PodcartAbstractDriver. - Cross-driver and plugin events use
this.eventBus. - Schema-driven plugins still return
getUiLayout(). - Custom UI plugins still return stable
/plugin-ui/...entry URLs.
Host and client contract examples
- examples/driver-event-bridge.js shows the backend listener pattern.
- examples/plugin-client-bridge.tsx shows the frontend event bridge pattern.
Build commands
- Schema-driven and vanilla plugins do not require a build step.
- Mantine plugins support
npm run buildandnpm run watch.
