Choose a library

Developers building packslip into their own code have four libraries to choose from. By the end, you know which one fits your job and where its guide is. To verify or install from a shell, use the CLI instead: see Verify a release or Bootstrap a tool.

Compare the libraries

The libraries serve different jobs and deliberately do not expose the same API.

LibraryGuideUse it toMain entry pointsNeeds
Rust crate packslipUse the Rust crateVerify releases and release lists, keyless or key-signed, and hold them to stored pins and signer fingerprints. Select an artifact and its resources. Optional features create and sign statements.verify_forge, verify, verify_release_list, select_artifact, select_resourcesRust 1.93 or newer
Go module github.com/jdx/packslip/goPublish from GoCreate, validate, and sign release/v1 statements keylessly in a publisher written in Go. It does not verify bundles.Build, Statement.Validate, AmbientIDToken, IdentityFromToken, ProductionKeylessOptions, SignKeylessGo 1.25.8 or newer
npm package packslipVerify from JavaScriptVerify a keyless bundle and the files you downloaded from your own Node.js code, such as a JavaScript GitHub Action. It does not create or sign statements.verifyRelease, findArtifact, verifyFileDigestNode.js 22.22.2 or later in 22.x, 24.15.0 or later in 24.x, or 26 or newer
Committable verifier packslip-verify.mjsCommit a verifier into your projectVerify a keyless bundle and the files you downloaded with one file you review and commit. Run it as a command, or import it as a module.node packslip-verify.mjs, verifyRelease, verifyFileNode.js 20 or newer, no dependencies

The two Node.js options get Sigstore's trust root differently. On each call, the npm package checks Sigstore's TUF repository for the current one through the sigstore package. The committable verifier makes no network requests: it checks against a snapshot embedded in the file, which you update when Sigstore rotates a key.

Neither Node.js option handles key-signed releases, release lists, or signer fingerprints; the Rust crate and packslip verify do. What each consumer enforces compares them.

Match versions across packages

The CLI, the GitHub Actions, the Rust crate, the npm package, and the Go module share one release version, so vX.Y.Z names the same release in each: