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.
| Library | Guide | Use it to | Main entry points | Needs |
|---|---|---|---|---|
Rust crate packslip | Use the Rust crate | Verify 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_resources | Rust 1.93 or newer |
Go module github.com/jdx/packslip/go | Publish from Go | Create, validate, and sign release/v1 statements keylessly in a publisher written in Go. It does not verify bundles. | Build, Statement.Validate, AmbientIDToken, IdentityFromToken, ProductionKeylessOptions, SignKeyless | Go 1.25.8 or newer |
npm package packslip | Verify from JavaScript | Verify 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, verifyFileDigest | Node.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.mjs | Commit a verifier into your project | Verify 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, verifyFile | Node.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:
- The npm package's version matches the release tag: release
vX.Y.Zispackslip@X.Y.Zon npm. It is published with npm provenance, so npm shows the repository and workflow run that built each version. go get github.com/jdx/packslip/go@vX.Y.Zfetches the Go module of releasevX.Y.Z. Publish from Go explains its tags.- The committable verifier has no package: copy it at a release tag or commit you reviewed. See Copy the verifier.