Skip to main content
Create a plug with createPiece. It returns the object that the build packs and the sandbox loads. Export it as plug from src/index.ts.

Fields

The name and the version of the plug come from package.json, not from the code. The build needs a valid name and an exact version such as 0.1.0. Names are unique per instance. See Publish and versions.
Last modified on October 26, 2026