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

hf-local

v0.1.0

Published

Local-first SDK for deterministic evidence generation and dataset anchoring for [Hash Factory](https://hf.veraanchor.com). Part of the [Vera Anchor](https://veraanchor.com) ecosystem.

Downloads

120

Readme

hf-local

Local-first SDK for deterministic evidence generation and dataset anchoring for Hash Factory. Part of the Vera Anchor ecosystem.

Raw data never leaves your machine. Only derived evidence packages are submitted to Hash Factory when you choose to do so.

Installation

npm install hf-local

Requires Node.js with ESM support.

What it does

hf-local builds deterministic evidence packages on your machine composed of SHA3-512 hashes, Merkle proofs, bundle manifests, fingerprints, and receipts. It then optionally submits that evidence to Hash Factory for registration, HCS anchoring, and certificate issuance.

Two operating modes:

  • Local only — build evidence, inspect it, keep raw files private. No network calls.
  • Local then submit — build evidence locally, then send the evidence package to Hash Factory.

Dataset flow

For directory-backed datasets.

Local only

import { executeDatasetAnchorLocalOnly } from "hf-local";

const result = await executeDatasetAnchorLocalOnly({
  identity: {
    dataset_key: "<org_id>.<program>.<name>",
    program: "my_program",
    version_label: "v1",
  },
  root_dir: "/path/to/dataset",
  evidence_pointer: "file:///path/to/dataset",
});

console.log(result.local.receipt);
console.log(result.local.evidence);

Local then submit to Hash Factory

import { executeDatasetAnchorLocalThenSubmit } from "hf-local";

const result = await executeDatasetAnchorLocalThenSubmit(
  {
    baseUrl: "https://hfapi.veraanchor.com",
    auth: { apiKey: process.env.HF_API_KEY },
  },
  {
    identity: {
      dataset_key: "<org_id>.<program>.<name>",
      program: "my_program",
      version_label: "v1",
    },
    root_dir: "/path/to/dataset",
    evidence_pointer: "file:///path/to/dataset",
    display_name: "My Dataset",
    publish_visibility: "unlisted",
    set_active: true,
  }
);

console.log(result.local.receipt);
console.log(result.remote.receipt);

Verify

import { verifyDatasetAnchorRemote } from "hf-local";

const result = await verifyDatasetAnchorRemote(
  {
    baseUrl: "https://hfapi.veraanchor.com",
    auth: { apiKey: process.env.HF_API_KEY },
  },
  {
    receipt,   // from a previous run
    bundle,    // from a previous run
    root_dir: "/path/to/dataset",  // optional local consistency check
  }
);

Ingest flow

For generic evidence objects — file_set, file, text, or json.

Local only

import { ingest } from "hf-local";

const result = await ingest.executeIngestLocalOnly({
  request: {
    mode: "merkle_only",
    identity: {
      object_key: "my_object",
      object_kind: "file_set",
      program: "my_program",
      version_label: "v1",
    },
    material: {
      kind: "file_set",
      root_dir: "/path/to/input",
      rules: { follow_symlinks: false },
    },
    evidence_pointer: "file:///path/to/input",
  },
});

Local then submit

import { ingest } from "hf-local";

const result = await ingest.executeIngestLocalThenRegisterAndAnchor(
  {
    baseUrl: "https://hfapi.veraanchor.com",
    auth: { apiKey: process.env.HF_API_KEY },
  },
  {
    request: {
      mode: "register_and_anchor",
      identity: {
        object_key: "my_object",
        object_kind: "file_set",
        program: "my_program",
        version_label: "v1",
      },
      material: {
        kind: "file_set",
        root_dir: "/path/to/input",
        rules: { follow_symlinks: false },
      },
      evidence_pointer: "file:///path/to/input",
      domain: "hf:ingest|org",
      proof_date: "2026-03-23",
    },
  }
);

Example scripts

The package includes runnable example scripts:

| Script | Description | |---|---| | scripts/example-dataset-local-only.mjs | Local-only dataset evidence generation | | scripts/example-dataset-local-submit.mjs | Local build + submit to Hash Factory | | scripts/example-dataset-verify.mjs | Verify a receipt and bundle | | scripts/example-ingest-local-only.mjs | Local-only ingest evidence generation | | scripts/example-ingest-local-submit.mjs | Local ingest + submit to Hash Factory | | scripts/example-ingest-verify.mjs | Local ingest + submit to Hash Factory |

Run a dataset submit example:

HF_API_KEY=your_key \
HF_BASE_URL=https://hfapi.veraanchor.com \
TEST_ROOT_DIR=/path/to/dataset \
TEST_DATASET_KEY=<org_id>.<program>.<name> \
TEST_EVIDENCE_POINTER=s3://your-bucket/path \
node scripts/example-dataset-local-submit.mjs

Hash Factory

hf.veraanchor.com — live deployment.

Hash Factory is the web interface where users onboard, manage evidence packages, view HCS anchors, and receive HTS certificate NFTs on Hedera.

License

MIT — see LICENSE.