Plugin API
Use @pumpkin-plugins/pumpkin-api as the runtime API in a standalone TypeScript plugin. Install it with the build tool:
sh
pnpm add @pumpkin-plugins/pumpkin-api @pumpkin-plugins/buildStart with the guide that matches what you need to do:
- Set up and build a plugin: configure the package, generate WIT declarations and build the component.
- Register lifecycle hooks and handlers: implement startup and shutdown behavior and register callbacks.
- Find a host operation: browse the Pumpkin WIT interface areas and understand how they differ from WASI capabilities.
- Check ABI and runtime support: match the host ABI to your Pumpkin server and check engine-specific limits.
- Review compatibility or migrate: understand API versioning and move from
@pumpkinmc/pumpkin-api-ts. - Browse the generated API reference: look up exported symbols and their JSDoc.
The npm version of @pumpkin-plugins/pumpkin-api and the Pumpkin host ABI version are separate. Check the ABI and runtime guide when choosing a server release; generated TypeScript declarations alone don't confirm that the server or selected engine supports an operation.