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

@verifyfetch/cli

v1.0.0

Published

Generate SRI hashes and chunked verification for resumable downloads. Works with WASM, AI models, and any binary files.

Downloads

916

Readme


Quick Start

# Generate hashes for your files
npx @verifyfetch/cli sign ./public/*.wasm ./models/*.bin

# Output: vf.manifest.json

Commands

sign — Generate SRI Hashes

npx @verifyfetch/cli sign <files...> [options]

| Option | Description | |--------|-------------| | -o, --out <file> | Output manifest path (default: vf.manifest.json) | | -a, --algorithm <alg> | Hash algorithm: sha256, sha384, sha512 (default: sha256) | | -b, --base <path> | Base path for URLs (default: /) | | -u, --update | Update existing manifest instead of replacing | | -c, --chunked | Generate per-chunk hashes (for resumable downloads) | | --chunk-size <bytes> | Chunk size in bytes (default: 1MB) |

Examples:

# Single file
npx @verifyfetch/cli sign ./public/app.wasm

# Multiple files with custom output
npx @verifyfetch/cli sign ./dist/*.js -o ./public/manifest.json

# Use SHA-384
npx @verifyfetch/cli sign ./models/* -a sha384

# For large files: enable resumable downloads
npx @verifyfetch/cli sign --chunked ./large-model.bin

enforce — Verify in CI/CD

npx @verifyfetch/cli enforce [options]

| Option | Description | |--------|-------------| | -m, --manifest <file> | Manifest path (default: vf.manifest.json) | | -s, --strict | Fail if extra files exist in directories | | -p, --base-path <path> | Base path to resolve files from |

Example CI usage:

# GitHub Actions
- name: Verify integrity
  run: npx @verifyfetch/cli enforce

Exits with code 1 if any file hash doesn't match — perfect for CI pipelines.

init — Project Setup

npx @verifyfetch/cli init [options]

| Option | Description | |--------|-------------| | --next | Initialize for Next.js | | --vite | Initialize for Vite |

Manifest Format

v1 (simple):

{
  "version": 1,
  "base": "/",
  "artifacts": {
    "/app.wasm": {
      "sri": "sha256-uU0nuZNNPgilLlLX2n2r+sSE7+N6U4DukIj3rOLvzek="
    }
  }
}

v2 (with --chunked for resumable downloads):

{
  "version": 2,
  "base": "/",
  "artifacts": {
    "/large-model.bin": {
      "sri": "sha256-fullFileHash...",
      "size": 4294967296,
      "chunked": {
        "root": "sha256-rootHash...",
        "chunkSize": 1048576,
        "hashes": ["sha256-chunk0...", "sha256-chunk1...", "..."]
      }
    }
  }
}

Related

License

Apache-2.0