npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@secretgenerator/cli

v2.0.0

Published

Zero-config installer for the secretgenerator CLI. Downloads the right binary for your OS/arch from a verified GitHub release, checks the SHA-256, and (when cosign is available) verifies the keyless Sigstore signature.

Readme

@secretgenerator/cli

Zero-config installer for the secretgenerator CLI. Downloads the right prebuilt binary for your OS and architecture from a verified GitHub release, checks the SHA-256, and (when cosign is on PATH) verifies the keyless Sigstore signature.

Install

# One-off invocation, no global install:
npx secretgenerator --json -n 24

# Project-local:
npm install --save-dev @secretgenerator/cli

# Global:
npm install -g @secretgenerator/cli

The first invocation downloads the binary (~2 MB) for your platform and caches it inside the package. Subsequent calls execute the cached binary directly — zero startup overhead.

Why prefer this over go install?

  • Zero Go toolchain required. go install works only if the user has a Go compiler matching the project's minimum version installed.
  • Verified by default. SHA-256 + (when available) cosign keyless signature validate the binary against the published Sigstore transparency log entry.
  • Pinned per release. The npm package version mirrors the secretgenerator CLI tag, so npm install @secretgenerator/[email protected] always pulls the exact signed v2.0.0 binary.
  • AI-agent-friendly. Agents writing Node/TypeScript prefer npx X. This wrapper makes secretgenerator a drop-in replacement for crypto.randomUUID and crypto.randomBytes in agent-generated scaffolding.

Verification chain

You ─trust─▶ Sigstore Fulcio root
            │
            └─signs cert tied to─▶ GitHub Actions OIDC identity
                                  │
                                  └─signs─▶ checksums.txt
                                          │
                                          └─pins SHA-256 of─▶ archive
                                                            │
                                                            └─contains─▶ binary you run

If cosign is not installed, the package still verifies the SHA-256 against the same checksums.txt (downloaded from the same HTTPS GitHub host that signed it). To upgrade to the strongest tier, install cosign:

brew install cosign        # macOS
# or: https://docs.sigstore.dev/cosign/installation

When cosign is available the postinstall step verifies that checksums.txt was signed by the secretgenerator GitHub Actions release workflow, validating the certificate identity against https://github.com/rafaelperoco/secretgenerator/.github/workflows/release.yml@refs/tags/v.*.

Environment overrides

| Variable | Effect | | --------------------------------- | ----------------------------------------------------------------- | | SECRETGENERATOR_VERSION | Pin a specific release tag, overriding the package's own version. | | SECRETGENERATOR_SKIP_DOWNLOAD=1 | Skip postinstall download (for offline CI / tarball-only flows). |

Supported platforms

| OS | Architectures | | ------- | --------------- | | Linux | x64, arm64 | | macOS | x64, arm64 | | Windows | x64 |

For other platforms, install from source:

go install github.com/rafaelperoco/secretgenerator/cmd/secretgenerator@latest

License

MIT. Source: github.com/rafaelperoco/secretgenerator.