Skip to content

@pumpkin-plugins/pumpkin-api ​

npm downloadslatest npm releasenpm license

TypeScript facade for PumpkinMC plugins. The package preserves the v0.1.1 API surface as its compatibility baseline and pins the upstream Pumpkin WIT source in wit.lock.json, including the exact Git commit and package subdirectory. The builder fetches the locked source on first use and caches it outside installed packages.

The npm package version and host ABI version are independent. The active compatibility matrix records the exact WIT revision, ABI package, and Pumpkin release currently under audit. The builder generates guest declarations from the fetched WIT; generated declarations are not checked in as a second source of truth. The first fetch, and any lockfile change, requires Git and network access unless that exact lock digest is cached already.

pnpm test runs the unit suite, including local-Git coverage for WIT fetching and caching. The type generation test reads the pinned WIT from the repository .cache, so the suite fetches it before the tests start when that lock digest isn't cached yet. Run pnpm test:upstream to fetch the pinned Pumpkin WIT commit into a temporary cache and verify its compatibility digests against upstream; that check always needs Git and network access.

See the Plugin API guide for setup, lifecycle behavior and ABI alignment, and the migration guide to move from @pumpkinmc/pumpkin-api-ts. The complete v0.1.1 item inventory is in compatibility/v0.1.1.json.

See the tool guide and API reference on the documentation site.

pumpkin-plugins documentation