Pumpkin Plugin API
Use @pumpkin-plugins/pumpkin-api when a standalone TypeScript plugin needs to call Pumpkin's host API. The package's pinned WIT contract defines the host ABI your server must support; the npm package version and host ABI version are separate, so check compatibility before choosing a server.
Guides
- Set up and build a plugin to configure the package, generate WIT declarations, and build a component.
- Register lifecycle callbacks to handle startup, shutdown, and host callbacks.
- Check ABI and runtime support to match the pinned host interface to your Pumpkin server and engine.
- Read about API evolution and migration, including the guide for migrating from
@pumpkinmc/pumpkin-api-ts.
When you need a specific symbol or signature, look it up in the generated API reference.